Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Stop using development mode

Stop using development mode

Rails development mode is easy, useful and fast: we can spin up an app, edit its source, hit reload in a browser and see the result of our changes. But what effect does this workflow have on our code, and does it really help us? In this talk I look at the dark side of development mode — where it falls down, what it does wrong, and how it ultimately encourages us to develop software in the wrong way — and suggest an alternative way of working which avoids these disadvantages.

Given at Railsberry (http://railsberry.com/). There's a video of this talk at http://youtu.be/TQrEKwb5lR0.

Tom Stuart

April 20, 2012
Tweet

More Decks by Tom Stuart

Other Decks in Programming

Transcript

  1. why write tests when you can press reload? the app

    works! now write tests so you don’t feel guilty the app broke! now write tests so it doesn’t break again
  2. write a migration write a model write a controller write

    a template write a route press reload
  3. Development mode doesn’t let you see anything working until you’ve

    completed a full vertical slice through the application.