Not all refactoring is about eliminating duplication. In today's episode we'll refactor some code for the purpose of revealing intent to future readers.
Category: Premium Episodes
Episode #100: Screen Scraping Gateway
Today's episode tackles the problem of talking to a web app which has no published API, using the Mechanize screen-scraping gem. In the process, we'll explore the Gateway pattern for …
Episode #099: String Subscript Regex
Today the focus is on a convenient way to extract substrings using regular expressions. We glossed over this technique briefly in an earlier episode, but now it's front and center.
Episode #098: Gem-Love Part 9
In today's concluding slice of this live-coding session, I wrap up my work on adding users to Gem-Love by TDDing the server side support for API keys. This is a …
Episode #097: Gem-Love 8
As I continue to add the concepts of users to Gem-Love, I tackle the problem of making the client side auth-token aware. This is a live episode, so there is …
Episode #096: Gem-Love 7
In this continuation of episode 95, I finish writing new acceptance test helpers, and get to my first proper test failure. This is a live episode, so no script today. …
Episode #095: Gem-Love Part 6
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. …
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.