Sometimes Kernel#puts and string interpolation doesn't give us the level of control we want over our program's output. When we need to control numeric formatting and field widths, we need …
Episode #193: Pathname
While the File methods are great for occasional use, for programs that deal extensively in filenames we need to bring out the big guns. Today we'll get an overview of …
Episode #192: Filenames
Ruby provides a lot of tools for breaking filenames into their component parts, but they aren't always well documented. Today's episode combines goes over some basics as well as a …
Episode #191: Virtual Proxy
When loading domain objects from an external service, it can be expensive to load up associated objects with them. Today's episode takes a look at a pattern for transparently lazy-loading …
Episode #190: Gsub
Today we look at the humble String#gsub method, and learn that it has some surprising tricks up its sleeve.
Episode #189: Assisted Refactoring
In today's episode, we'll examine how the availability of tools to aid refactoring can change how we write code.
Episode #188: Fail And Raise
Today's episode is about a semantic convention for error handling that I learned from Jim Weirich.
Episode #187: More Keyword Arguments
Today we go a little deeper into keyword arguments in Ruby 2.0/2.1, covering a few use cases we didn't cover in the last episode.
Episode #186: Keyword Arguments
Today's episode is a guide to transitioning various hash argument idioms to Ruby 2.0/2.1 keywords.