Ruby on Rails

24
Ruby on Rails developing web applications

description

 

Transcript of Ruby on Rails

Page 1: Ruby on Rails

Ruby on Railsdeveloping web applications

Page 2: Ruby on Rails

NetguruPoznań-based web development and consulting

company

Page 3: Ruby on Rails

• http://codetunes.com

• http://devguru.pl

Page 4: Ruby on Rails

we’re gonna...

• show you some live coding

• give a talk about “why choose rails”

Page 5: Ruby on Rails

web development

• before today

• today and tomorrow

Page 6: Ruby on Rails

web development now

• open-source technologies and tools

• server-side frameworks

• javascript libraries

• shorter development cycles

Page 7: Ruby on Rails

with Rails you focus on

• creating functionality, not creating code

Page 8: Ruby on Rails

Rails is...

• Rails is opinionated

• “If you try to design for the 20 percent of your target audience who are power users, your design may be not usable by the other 80 percent of users”.

• if one feature satisfy 20% of your customers - it’s not worth implementing

• convention over configurations

Page 9: Ruby on Rails

DRY, KISS

• Don’t Repeat Yourself!

• Keep It Simple, Stupid!

Page 10: Ruby on Rails

Code

• the less code you write, the more maintainable and flexible your app is

• you don’t have to ship your product to your customers - show it, get feedback, make it better, deploy a new version, get feedback...

Page 11: Ruby on Rails

most of the things are done for you.

• routing

• database

• MVC

• data, time zones

• CSRF attacks

• ...and many more.

Page 12: Ruby on Rails

developer’s tools for...

• deployment

• testing

• maintaining code

• monitoring your production application

Page 13: Ruby on Rails

deploymentcapistranowebistrano

Page 14: Ruby on Rails

testing

• TDD

• shoulda, factory_girl, cruisecontrol

Page 15: Ruby on Rails

maintaining code

svngit

...and github

Page 16: Ruby on Rails

monitoring production application

hoptoad

newrelic

Page 17: Ruby on Rails

do things faster!

• gems

• plugins

Page 18: Ruby on Rails

community support

• blogs, wiki, railscasts, podcasts, e-books, traditional books, irc channels, discussion boards...

• it’s a great thing. really.

Page 19: Ruby on Rails

The Rails Myths: Rails

• ...is hard to deploy

• ...is hard because of ruby

• ...only speaks english

Page 20: Ruby on Rails

Rails is hard to deploy

• Phusion Passenger

• hosting Rails in Poland? no longer a pain in the ...arm

Page 21: Ruby on Rails

Rails is hard because of Ruby

• just try it yourself.

• http://tryruby.hobix.com

• it takes as much time as it would to learn a framework in language that you already know.

• and then things go faster. and they are easier. and prettier. and better. believe me.

Page 22: Ruby on Rails

Rails only speaks english

• UTF8

• internalization

• time zones

Page 23: Ruby on Rails

downsides of rails?

• convention over configuration

• it’s harder to satisfy geeks and power users

Page 24: Ruby on Rails

Questions, comments?