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

Designing and building software with Ruby on Rails

Designing and building software with Ruby on Rails

In this talk I explained how Ruby on Rails has changed the web and how it influenced other frameworks, also I detailed about the meaning of "On Rails" way and showed that Rails is a solution driven framework.

Rodrigo Boniatti

September 27, 2018
Tweet

More Decks by Rodrigo Boniatti

Other Decks in Technology

Transcript

  1. Talk’s goals • How Rails has changed the web •

    On Rails way • Solution driven
  2. On Rails way • Convention over configuration • Don’t repeat

    yourself (DRY) • Implicit instead of explicit • Opinionated
  3. invoke active_record create db/migrate/create_users.rb create app/models/user.rb invoke test_unit create test/models/user_test.rb

    create test/fixtures/users.yml invoke resource_route route resources :users invoke scaffold_controller create app/controllers/users_controller.rb invoke erb create app/views/users create app/views/users/index.html.erb create app/views/users/edit.html.erb create app/views/users/show.html.erb create app/views/users/new.html.erb create app/views/users/_form.html.erb invoke test_unit create test/controllers/users_controller_test.rb create test/system/users_test.rb
  4. invoke scaffold_controller create app/controllers/users_controller.rb invoke erb create app/views/users create app/views/users/index.html.erb

    create app/views/users/edit.html.erb create app/views/users/show.html.erb create app/views/users/new.html.erb create app/views/users/_form.html.erb invoke test_unit create test/controllers/users_controller_test.rb create test/system/users_test.rb
  5. Convention over configuration • Table name is plural • Primary

    key is called id • Column names are instance attributes
  6. RuboCop rules • Class length • Methods length • Parameters

    list • Unused variable • Indentation