Ruby has both symbolic and English forms of the logical "and" and "or" operators. Which one to choose may seem like a matter of taste, but that assumption can get …
Category: Episodes
Episode #124: Elixir
Today we take a brief sojourn out of Ruby and into the Elixir programming language. I'll show you one of my first programs in Elixir and point out how the …
Episode #123: Removing Debug Output
Have you ever had a project that spat out so much deubg output when it ran that you couldn't tell when it had a legitimate error or warning to report? …
Episode #122: Testing Blocks With Rspec
Last episode we looked at a simple way to test if a method executes a block as intended that will work in any test framework. But if your tool of …
Episode #121: Testing Blocks
Today's episode answers the question: how do you test that a block passed to a method is executed as intended?
Episode #120: Outside-In
In today's episode I tackle the question of how many tests are enough. I'll show how for me, it's all about how long it's been since I last got new …
Episode #119: Intention Revealing Argument
Some techniques for making boolean flag arguments read more meaningfully.
Episode #118: Even And Odd
A small dish today, about some numeric methods I often forget exist.
Episode #117: Client Session Object
In another peek into my ongoing behind-the-scenes work on RubyTapas, today I extract the responsibility for representing a logged-in screen-scraping user-agent session into its own class.