Blog / Insulate Yourself From Changes

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
Loading...

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.