O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Ruby on Rails Introduction

909 visualizações

Publicada em

Ruby on Rails intro presentation given for Peat IT, 17 September 2008.

Publicada em: Tecnologia

Ruby on Rails Introduction

  1. 1. Ruby on Rails Peak IT, 17 September 2008
  2. 2. Joost Hietbrink? www.linkedin.com/in/joosthietbrink
  3. 3. www.yelloyello.com
  4. 4. source: http://en.wikipedia.org/wiki/Ruby_(programming_language)
  5. 5. • Birthday: 24 February 1993 • v1.0: 25 December 1996 • “more powerful than Perl, and more OO than Python” • 99.9% Object Oriented
  6. 6. Yukihiro ‘Matz’ Matsumoto, creator of Ruby.
  7. 7. try ruby! (in your browser) http://tryruby.hobix.com/
  8. 8. • Birth: July 2004 • Shipped with OSX Leopard • Latest: 2.1.1: 4 September 2008
  9. 9. David ‘dhh’ Heinemeier Hansson
  10. 10. Ruby on Rails vs. Java PHP .NET ColdFusion Django ...
  11. 11. Websites on Rails
  12. 12. Companies using Rails
  13. 13. The Framework source: http://flickr.com/photos/charlesbodi/236037049/
  14. 14. • Convention over Configuration • Agile Programming principle • DRY
  15. 15. app controllers helpers models views config environments initializers db doc lib tasks log public images javascripts stylesheets script performance process test fixtures functional integration unit ...
  16. 16. ModelView Controller Framework (MVC)
  17. 17. Models source: http://flickr.com/photos/74982136@N00/252447564
  18. 18. ActiveRecord source: http://media.rubyonrails.org/presentations/pursuitofbeauty.pdf
  19. 19. Fat Models
  20. 20. ActionController source: http://flickr.com/photos/sameli/261307204/
  21. 21. RESTful Resources
  22. 22. HTTP verb Controller Action CRUD Action URL GET show READ /products/1 /products/1.xml POST create CREATE /products PUT update UPDATE /products/1 DELETE destroy DESTROY /products/1 GET new /products/new GET index /products GET edit /products/1/edit source: http://rubyenrails.nl/articles/2006/11/02/restful-rails
  23. 23. ActionView source: http://flickr.com/photos/bocavermelha/66759796/
  24. 24. action.mimetype.renderer show.html.erb index.rss.builder edit.iphone.haml
  25. 25. Generate instead of Create
  26. 26. DRY vs. DRO
  27. 27. source: http://media.rubyonrails.org/video/rails_take2_with_sound.mov
  28. 28. Demo?!
  29. 29. ? Joost Hietbrink Joopp (joopp.com/blog.joopp.com) joost@joopp.nl 06 14 89 65 41
  30. 30. More info • rubyonrails.org • railscasts.com • peepcode.com • rubyenrails.nl • slideshare.net: • http://www.slideshare.net/mattb/coding-on-the-shoulders-of-giants
  31. 31. Other interesting stuff.. • http://www.slideshare.net/daveman692/ supporting-the-open-web-oscon-2008 • http://microformats.org/ • http://www.dataportability.org/ • http://git.or.cz/
  32. 32. How to create a MP3 Playing Alarm Clock in Ruby?
  33. 33. sleep
7.hours %x(open
~/heaven‐sent.mp3)

×