Instruments ruby on rails


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Instruments ruby on rails

  1. 1. Instruments of Ruby on Rails Pavlo Mashchak July 09, 2011 Common facets and principles of Ruby on Rails model. And additional instruments for rapid development.
  2. 2. Instruments of Ruby on Rails Overview <ul><li>For last several years we saw significant changes in web frameworks.
  3. 3. Developers strive for:
  4. 4. quality of code,
  5. 5. speed of development processes,
  6. 6. reliable code.
  7. 7. Ruby on Rails in corporate all of these. </li></ul>
  8. 8. Ruby on Rails incorporate all of these. <ul>It's modular. <li>With supplied plugins and gems you can build multi-level application. Just add source.
  9. 9.
  10. 10. Beside you own gem/plugins can be included into the project. Or even you can contribute to Rails if find some bugs.
  11. 11. RVM, gem Bundler.
  12. 12. RVM allows to install several Ruby versions on one machine and switch them by one command.
  13. 13. Bundler allows to manage dependencies within different gems and install them into the system ether freeze into the project. </li></ul>Instruments of Ruby on Rails
  14. 14. Instruments of Ruby on Rails rvm list, rvm install vim Gemfile bundle install
  15. 15. Instruments of Ruby on Rails <ul>Don't create just generate <li>With rails generators you can generate any part of application or full fledged web page with integrated CRUD operations:
  16. 16. rails g scaffold articles title:string body:text </li></ul>
  17. 17. Instruments of Ruby on Rails <ul>Data layers <li>Bunch of different ORMs can expand any popular database you like.
  18. 18. (Postgres, MySQL, MongoDB, Redis)
  19. 19. and many others.
  20. 20. ORM saves SQL code and allows to retrieve any instance associations from models. (Polymorphic, Single Table Inherited, eager joins etc.) </li></ul>This association generate 2 level join from Users table
  21. 21. Instruments of Ruby on Rails <ul>Rails console <li>You can load all project environment and debug application in console </li></ul>
  22. 22. Instruments of Ruby on Rails <ul>Test driven and Behavior driven development <li>Rails was designed to build your application in test or behavior driven style.
  23. 23. You will always sure that you didn't break anything. And all features work as well.
  24. 24. Rspec Cucumber WebRat </li></ul>
  25. 25. Instruments of Ruby on Rails <ul>Deploy or create featured script tasks. <li>Rake and Capistrano </li></ul>
  26. 26. Instruments of Ruby on Rails Conclusions <ul><li>Ruby is not slow
  27. 27. Rails is agile
  28. 28. Rails is powerful and easy learning framework
  29. 29. Top - 50 Rails sites:
  30. 30. [Ruby on Rails, Scala] 190 mln users 65 mln tweeting
  31. 31. 600 mln registered 45 mln month
  32. 32. 1mln
  33. 33. 3.3 million unique visitors per month
  34. 34. 12 mln users and 65% market in poland </li></ul>
  35. 35. Instruments of Ruby on Rails Thanks for attention. If you have any Questions. Mailto: [email_address] Skype: pavlomashchak