Refactoring If Statements

Chris Oliver

April 25, 2013

Frank Webber recorded a great video on removing if statements from your code just recently. The result is a pretty strong refactor that removes the complexity involved with large if statements.

P.S. You might enjoy following me on Twitter.


Comments

Want to stay up-to-date with Ruby on Rails?

Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.