When refactoring Ruby code, getting a fresh perspective on the data model can help drive out a cleaner design.
Global settings can cause havoc when threads are introduced. Learn when and how to use Ruby's thread-local variables instead.
In which we confront a mythological creature lurking in our code.
In today's special guest episode, Tom Stuart shows us the benefits of using enumerators as immutable collections.
In today's episode we explore methods for unindenting text. Along the way, we'll learn some tricks and play some code golf.
Today we look at the humble String#gsub method, and learn that it has some surprising tricks up its sleeve.
ActiveRecord has become practically synonymous with SQL database access in Ruby, but it's not the only way to talk to SQL stores. Today we'll explore Sequel, a wonderfully rich tool …
Today's episode introduces the concept of thread-local variables, and shows how they can be put to use in an ActiveRecord-like library.
In this, the final (for now) episode of the Rake miniseries, we take a look at how to speed up Rake runs by taking advantage of multiple cores.