Instruments ruby on rails
Upcoming SlideShare
Loading in...5
×
 

Instruments ruby on rails

on

  • 2,286 views

 

Statistics

Views

Total Views
2,286
Views on SlideShare
2,286
Embed Views
0

Actions

Likes
1
Downloads
21
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Instruments ruby on rails Instruments ruby on rails Presentation Transcript

  • 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.
  • Instruments of Ruby on Rails Overview
    • For last several years we saw significant changes in web frameworks.
    • Developers strive for:
    • quality of code,
    • speed of development processes,
    • reliable code.
    • Ruby on Rails in corporate all of these.
  • Ruby on Rails incorporate all of these.
      It's modular.
    • With supplied plugins and gems you can build multi-level application. Just add source. http://gems.rubyforge.org/
    • http://gems.github.com/
    • Beside you own gem/plugins can be included into the project. Or even you can contribute to Rails if find some bugs.
    • RVM, gem Bundler.
    • RVM allows to install several Ruby versions on one machine and switch them by one command.
    • Bundler allows to manage dependencies within different gems and install them into the system ether freeze into the project.
    Instruments of Ruby on Rails
  • Instruments of Ruby on Rails rvm list, rvm install vim Gemfile bundle install
  • Instruments of Ruby on Rails
      Don't create just generate
    • With rails generators you can generate any part of application or full fledged web page with integrated CRUD operations:
    • rails g scaffold articles title:string body:text
  • Instruments of Ruby on Rails
      Data layers
    • Bunch of different ORMs can expand any popular database you like.
    • (Postgres, MySQL, MongoDB, Redis)
    • and many others.
    • ORM saves SQL code and allows to retrieve any instance associations from models. (Polymorphic, Single Table Inherited, eager joins etc.)
    This association generate 2 level join from Users table
  • Instruments of Ruby on Rails
      Rails console
    • You can load all project environment and debug application in console
  • Instruments of Ruby on Rails
      Test driven and Behavior driven development
    • Rails was designed to build your application in test or behavior driven style.
    • You will always sure that you didn't break anything. And all features work as well.
    • Rspec Cucumber WebRat
  • Instruments of Ruby on Rails
      Deploy or create featured script tasks.
    • Rake and Capistrano
  • Instruments of Ruby on Rails Conclusions
    • Ruby is not slow
    • Rails is agile
    • Rails is powerful and easy learning framework
    • Top - 50 Rails sites:
    • http://twitter.com/ [Ruby on Rails, Scala] 190 mln users 65 mln tweeting
    • http://www.slideshare.net/ 600 mln registered 45 mln month
    • http://basecamphq.com/ 1mln
    • http://www.courseadvisor.com/ 3.3 million unique visitors per month
    • http://www.adtaily.com/ 12 mln users and 65% market in poland
  • Instruments of Ruby on Rails Thanks for attention. If you have any Questions. Mailto: [email_address] Skype: pavlomashchak