Ruby on Rails - UNISO

295 views

Published on

Apresentação sobre Ruby on Rails na Semana de Informática da Universidade de Sorocaba. 29/out/2012

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
295
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ruby on Rails - UNISO

  1. 1. ruby on railsuniso
  2. 2. @lucasrenan
  3. 3. http://nudesign.com.br
  4. 4. http://aiesec.org.br/sorocaba
  5. 5. http://slideshare.net/akitaonrails
  6. 6. linguagemde programação
  7. 7. yukihiromatsumoto
  8. 8. puramenteorientada a objetos
  9. 9. str = "ruby"puts str.class # String
  10. 10. str = "ruby"puts str.class # Stringint = 100puts int.class # Fixnum
  11. 11. str = "ruby"puts str.class # Stringint = 100puts int.class # Fixnumputs nil.class # NilClass
  12. 12. frameworkweb apps
  13. 13. davidheinemeier hansson
  14. 14. produtividade efelicidade
  15. 15. ModelViewController
  16. 16. $ gem install rails
  17. 17. ~ 45 milbibliotecas
  18. 18. frameworkmodular
  19. 19. # application.rb# Pick the frameworks you want:# require "active_record/railtie"require "action_controller/railtie"require "action_mailer/railtie"require "active_resource/railtie"require "sprockets/railtie"# require "rails/test_unit/railtie"
  20. 20. active recordbancos relacionais
  21. 21. infraestrutura
  22. 22. web servernginx, apache
  23. 23. app serverunicorn, passenger,mongrel
  24. 24. TestDrivenDevelopment
  25. 25. RSpec
  26. 26. describe Order do it "sums the prices of items" do order = Order.new order.add_entry(Item.new( :price => Money.new(1.11, :USD) )) order.add_entry(Item.new( :price => Money.new(2.22, :USD), :quantity => 2 )) order.total.should eq(Money.new(5.55, :USD)) endend
  27. 27. "Describe an order.""It sums the prices of items."
  28. 28. comoaprender?
  29. 29. comunidade
  30. 30. GURU Sorocaba
  31. 31. livecoding
  32. 32. obrigado:)

×