Language features, syntax, and gotchas.
Category: Language

Episode #682
682 Is it defined?
Constants, globals, locals, instance variables, methods... Ruby has a lot of namespaces. Let's learn about a Ruby power tool for reflecting on these names no matter what space they come …

Episode #681
Setter Return
A surprising Rubocop warning inspired this video about an obscure bit of Ruby semantics. Find out why you never need to worry about return values in Ruby setter methods!

Episode #680
Hash Splat Merge
In today's video, learn a concise and expressive syntax for merging several Ruby hashes into one!

Episode #652
Null-Terminated Record
Before YAML, before JSON, there were null-terminated records. See how this simple, pragmatic technique greases the pipes between UNIX command-line tools---and how you can harness it in your Ruby one-liners!

Episode #648
Output Record Separator
Did you know Ruby has a `print` method in addition to `puts`? Did you know it's for record-oriented output? Do you know how to control the formatting of records in …

Episode #645
Grep, Sort, Uniq
As we continue exploring Ruby one-liner alternatives to UNIX command-line operations, today we tackle a common case: a combination of grepping through multiple files, and collating the results.

Episode #642
Line Ending Processing Mode
Want line terminators in input text to just Go Away? Ruby has a mode for that!