Insulate Yourself From Changes

Chris Oliver

May 13, 2013

As we build software, a lot of us get caught up in Rails. You build your application around Rails' suggestions and before you know it, you're really stuck. Just because Rails gives you controllers, models, and helpers doesn't mean your code needs to be bent to fit inside of them. In fact, in order to build well testable code, you should deviate from this.

Rails developers are often afraid of stepping outside Rail's default boundaries and creating their own plain classes to handle your business logic. Gary Bernhardt's talk has a bunch of good examples and advice for building applications that use Rails as an interface to HTTP and not your entire application.

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


Comments

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

Join 72,152+ 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. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.