rails after 5 years

16
Cool Stuff in Rails 3 Cool Things that have happened in the past 5 years

Upload: rob-dawson

Post on 16-May-2015

661 views

Category:

Technology


2 download

DESCRIPTION

Short presentation given on the cool stuff in Rails 3. Impressions coming from a Developer who used Rails up to 0.12.1 and then came back to Rails 3.

TRANSCRIPT

Page 1: Rails after 5 years

Cool Stuff in Rails 3

Cool Things that have happened in the past 5 years

Page 2: Rails after 5 years

What’s this about

• 5 years ago used Rails up to version 0.12.1

• Revisiting now with Rails 3

• (http://railstutorial.org)

Page 3: Rails after 5 years

Heroku

• Deployment used to be really harsh

• Deployment + pain in production killed my rails world

• Heroku is unreal

Page 4: Rails after 5 years

• gem install heroku

• heroku keys:add

• heroku create

• git push heroku master

• heroku open

Page 5: Rails after 5 years

nginx + Passenger

• http://nginx.org/

• http://www.modrails.com/

Page 6: Rails after 5 years

spork

• makes your tests fly - at least run quicker

• uses unix process forking goodness

• doesn’t need to load stuff

• gem install spork + tricks (see rails tutorial).

• http://ruby.railstutorial.org/chapters/static-pages#sec:spork

Page 7: Rails after 5 years

Demo

Page 8: Rails after 5 years

rob@gonzo$ time rspec spec.......................................................................................Finished in 2.46 seconds87 examples, 0 failuresreal0m3.092suser0m0.245ssys 0m0.155srob@gonzo$ time rspec specNo DRb server is running. Running in local process instead ..........................................................................................Finished in 2.12 seconds87 examples, 0 failuresreal0m19.755suser0m5.541ssys 0m1.872s

Page 9: Rails after 5 years

spork

• Some changes require restart (model changes/routes)

Page 10: Rails after 5 years

Bundler

• http://gembundler.com/

• Gemfile

• bundle install

Page 11: Rails after 5 years

Autotest

• Run tests continuously

• watches filesystem for changes

• runs tests when file changes

• autotest + growl on mac is cool

Page 12: Rails after 5 years

Demo

Page 14: Rails after 5 years

• This room

• web

• tutorials

• podcasts

• blogs

• mailing lists

Community

Page 15: Rails after 5 years

• very cool

• understands Ruby

• understands rails

• understands Gems

RubyMine

Page 16: Rails after 5 years

End