Now that you've learned how to obfuscate your code with Perl-style special variables, learn how to make it readable again!
Tag: variables

Episode #493: Special Variables Part 3: Regex Matching
Learn about one final category of Ruby's Perl-style special variables, and some guidelines for using them.

Episode #492: Special Variables Part 2: I/O
Learn about Ruby's Perl-style I/O special variables, and why they exist.

Episode #483: Extract Default to Method
Some pointers on making your Ruby parameter defaults self-documenting.

Episode #467: Class Variable
An in-depth guide to Ruby class variables, and when to use them.

Understanding Ruby Thread-Local Variables
Global settings can cause havoc when threads are introduced. Learn when and how to use Ruby's thread-local variables instead.

Episode #436: Ruby 2.4 Destructuring Conditional
Ruby 2.4 eliminates an un-intuitive limitation of if-statements.

Episode #427: Subprocesses Part 8: Environmental Isolation
In today's episode we'll see how to discover what environment variables our programs are implicitly relying on.