Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby on Rails - CEUNSP

lucas renan
November 17, 2012

Ruby on Rails - CEUNSP

Apresentação sobre Ruby on Rails no 8º Encontro do GURU Sorocaba, realizado no CEUNSP em Salto-SP dia 17/nov/2012

lucas renan

November 17, 2012
Tweet

More Decks by lucas renan

Other Decks in Technology

Transcript

  1. ruby on rails
    ceunsp

    View full-size slide

  2. http://nudesign.com.br

    View full-size slide

  3. http://aiesec.org.br/sorocaba

    View full-size slide

  4. http://slideshare.net/akitaonrails

    View full-size slide

  5. linguagem
    de programação

    View full-size slide

  6. yukihiro
    matsumoto

    View full-size slide

  7. puramente
    orientada a objetos

    View full-size slide

  8. str = "ruby"
    puts str.class # String

    View full-size slide

  9. str = "ruby"
    puts str.class # String
    int = 100
    puts int.class # Fixnum

    View full-size slide

  10. str = "ruby"
    puts str.class # String
    int = 100
    puts int.class # Fixnum
    puts nil.class # NilClass

    View full-size slide

  11. framework
    web apps

    View full-size slide

  12. david
    heinemeier
    hansson

    View full-size slide

  13. ruby é lento?

    View full-size slide

  14. produtividade e
    felicidade

    View full-size slide

  15. Model
    View
    Controller

    View full-size slide

  16. $ gem install rails

    View full-size slide

  17. ~ 45 mil
    bibliotecas

    View full-size slide

  18. framework
    modular

    View full-size slide

  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"

    View full-size slide

  20. active record
    bancos relacionais

    View full-size slide

  21. infraestrutura

    View full-size slide

  22. web server
    nginx, apache

    View full-size slide

  23. app server
    unicorn, passenger,
    puma

    View full-size slide

  24. Test
    Driven
    Development

    View full-size slide

  25. 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))
    end
    end

    View full-size slide

  26. "Describe an order."
    "It sums the prices of items."

    View full-size slide

  27. como
    aprender?

    View full-size slide

  28. GURU Sorocaba

    View full-size slide