RubyFlow The Ruby and Rails community linklog

Refactoring conditionals out of your code

I have prepared some Ruby code to show how conditionals can breed like rabbits, and how to spay and neuter those bunnies before it get’s out of control.

Along with the code, there is a screencast or as I will call it, a RubyLovecast. In the video, I will walk you through several revisions of the code, first showing how conditionals grow, then how to take a weedwacker to them.

continue reading @ rubylove

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in