Download pdf - Ruby off Rails

Transcript
Page 1: Ruby off Rails

Ruby off Rails

Monday, September 13, 2010

Page 2: Ruby off Rails

I’ve been using Rails since 2005

Monday, September 13, 2010

Page 3: Ruby off Rails

Have since been an evangelist

Monday, September 13, 2010

Page 4: Ruby off Rails

Until recently...

Monday, September 13, 2010

Page 5: Ruby off Rails

Rails feels a lot like a java framework

Monday, September 13, 2010

Page 6: Ruby off Rails

Feels sluggish, not to mention it has a big memory footprint

Monday, September 13, 2010

Page 7: Ruby off Rails

I got to know Monk + Ohm (and a slew of

other libraries)

Monday, September 13, 2010

Page 8: Ruby off Rails

Monk is a glue framework for web development in Ruby. It’s truly modular by relying on the best tool for each job. It’s also pretty fast thanks to Rack and Sinatra.

http://monkrb.com

Monday, September 13, 2010

Page 9: Ruby off Rails

OhmOhm is a library for storing objects in Redis, a persistent key-value database. It includes an extensible list of validations and has very good performance.

http://ohm.keyvalue.org

Monday, September 13, 2010

Page 10: Ruby off Rails

Parallelisms?

Monday, September 13, 2010

Page 11: Ruby off Rails

ActionController <=> SinatraActionView <=> TiltActiveRecord <=> OhmCucumber + Rspec <=> Stories + Contest

Monday, September 13, 2010

Page 12: Ruby off Rails

gem install railsrails new myapp

gem install monkmonk init myapp

Monday, September 13, 2010

Page 13: Ruby off Rails

rails server

ruby main.rb

Monday, September 13, 2010

Page 14: Ruby off Rails

rails console

irb -r ./main

Monday, September 13, 2010

Page 15: Ruby off Rails

Convenience is overrated?(it maybe just me though :-)

Monday, September 13, 2010

Page 16: Ruby off Rails

LET THE CODE SPEAK!

Monday, September 13, 2010

Page 17: Ruby off Rails

Monday, September 13, 2010

Page 18: Ruby off Rails

Monday, September 13, 2010

Page 19: Ruby off Rails

Monday, September 13, 2010

Page 20: Ruby off Rails

Monday, September 13, 2010

Page 21: Ruby off Rails

Monday, September 13, 2010

Page 22: Ruby off Rails

Monday, September 13, 2010

Page 23: Ruby off Rails

Monday, September 13, 2010

Page 24: Ruby off Rails

Results

Monday, September 13, 2010

Page 25: Ruby off Rails

Results

Monday, September 13, 2010

Page 26: Ruby off Rails

Monday, September 13, 2010

Page 27: Ruby off Rails

Monday, September 13, 2010

Page 28: Ruby off Rails

Some Links:

github.com/antirez/redisgithub.com/soveran/ohmgithub.com/sinefunc/ohm-contribgithub.com/sinefunc/paginationgithub.com/sinefunc/sinatra-securitygithub.com/sinefunc/sinatra-i18ngithub.com/sinefunc/sinatra-supportgithub.com/sinefunc/imagery

Monday, September 13, 2010