Diving back into my Gem-Love project, today I begin the process of adding users to the system. Because this is a larger feature, it will be split across multiple episodes. …
Category: S2 Premium
Episode #094: Bang Bang
Have you ever found yourself looking for a '#to_bool' method in Ruby? This episode explores why boolean conversion isn't needed as often as you might think; as well as how …
Episode #093: Boolean
A common question on Ruby forums and mailing lists is: "why is there no Boolean data type?". This episode attempts to answer that question.
Episode #092: Coincidental Duplication Redux
Katrina Owen contributed an example of coincidental duplication I liked so much I decided to make a second episode about it. Enjoy!
Episode #090: class<<self
Ruby gives as a number of options when it comes to defining class methods. This episode starts by demonstrating three of them, and then gets a bit opinionated.
Episode #089: Coincidental Duplication
The DRY principle teaches us to get rid of duplication wherever we find it. But not all duplication is created equal...
Episode #088: Gem Love Part 5
In this continuation of the Gem-Love project, I complete the end-to-end acceptance test, verifying that the client can talk to the server. Source code here: https://github.com/avdi/gem-love/tree/rubytapas-088 Just a reminder, I'm collecting …
Episode #086: Naked Splat
In this episode we tackle how to override base class methods while cleanly passing through multiple base-class arguments. Notes: Paul Battley on Destructuring Assignment in Ruby