puts hello ruby on rails                                                         by amol.pujariWhy should you switch to Ru...
Agenda.items.each {|item| puts item}    RoR - Market Trend    Know ruby            Principles            Features    ...
Market Trend - Need for Ruby on Rails    Less “Time To Market”    Quick to build & deploy    Its free    Rapid applica...
Who is using Ruby on Rails
Ruby on Rails – Todays world    Visits/sec    twitter 642    scribd   940                                              ...
So what is Ruby..?
Ruby    A scripting language    Purely Object Oriented    Extreme dynamic    Easy to learn, simple    Influenced by P...
Ruby - Programming is fun, enjoy it    You dont want to fight with the language, feel natural    Be creative
Ruby - concise and succinct    Concentrate on the problems    Its like pseudo-code, simple    Focus on human factor
Ruby - extreme dynamic    eval, meta-programming, reflection, Open Classes
Ruby - features    Dynamic yet strong typing    Regular expressions, symbols, mutable strings    Blocks, Iterators, gen...
if you want to try out all these examples given then    download ruby from http://www.ruby-lang.org/en/downloads/    open ...
ruby on railsextracted by David Heinemeier Hansson from his work on Basecamp, a projectmanagement tool by 37signals
Ruby on Rails: Rapid application development    Web application framework    Free    Very less code    Fast developmen...
Ruby on Rails: Principles - CoC    Conventions Over Configurations    Database table name: books { id(pk), created_at, u...
Ruby on Rails: Principles - DRY    Dont Repeat Yourself
Rails: building blocks    ORM: Active Record    Action Pack            Action Dispatch            Action Controller   ...
Rails: Active Record    CRUD support               migrations    Model level validations    Associations    Callbacks...
Rails: Active Record: Association
Rails: Active Record: Association
Rails: inbuilt caching    SQL Caching    caches_page :index    caches_action :index    Fragment caching => <% cache do...
Rails: Security    Session Hijacking            Stealing a user’s session_id            Use database store and SSL    ...
Ruby on Rails – wider support    Databases              Development                                                    ...
Thanks. :)any queries?
Upcoming SlideShare
Loading in...5
×

Ruby on rails

341

Published on

My first presentation on what is Ruby on Rails

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

  • Be the first to like this

No Downloads
Views
Total Views
341
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address] -Ruby has a wealth of other features, among which are the following: Ruby has exception handling features, like Java or Python, to make it easy to handle errors. Ruby features a true mark-and-sweep garbage collector for all Ruby objects. No need to maintain reference counts in extension libraries. As Matz says, “This is better for your health.” Writing C extensions in Ruby is easier than in Perl or Python, with a very elegant API for calling Ruby from C. This includes calls for embedding Ruby in software, for use as a scripting language. A SWIG interface is also available. Ruby can load extension libraries dynamically if an OS allows. Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multithreading, regardless of if the OS supports it or not, even on MS-DOS! Ruby is highly portable: it is developed mostly on GNU/Linux, but works on many types of UNIX, Mac OS X, Windows 95/98/Me/NT/2000/XP, DOS, BeOS, OS/2, etc.
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • [email_address]
  • Ruby on rails

    1. 1. puts hello ruby on rails by amol.pujariWhy should you switch to Ruby? If you are happy with Perl or Python, you donthave to. But if you do feel there must be a better language, Ruby may be yourlanguage of choice. Learning a new language is harmless. It gives you newideas and insights. You dont have to switch, just learn and try it. You may findyourself comfortable enough with Ruby to decide to switch to it.- Matz (Yukihiro Matsumoto), written ruby in 1995
    2. 2. Agenda.items.each {|item| puts item} RoR - Market Trend Know ruby  Principles  Features Ruby on rails  Principles  Building blocks  Caching  Security  Community Support
    3. 3. Market Trend - Need for Ruby on Rails Less “Time To Market” Quick to build & deploy Its free Rapid application development Handle traffic – when needed Huge free libraries with strong community support
    4. 4. Who is using Ruby on Rails
    5. 5. Ruby on Rails – Todays world Visits/sec twitter 642 scribd 940 1041 blingee 1170 1621 327 yellowpages 1734 penny-arcade 2069 78 43things 4190 232 kongregate 4488 158 potchforkmedia 4740 projectpath 5041 Around 4000 companies have RubyOnRails funnyordie 5089 adopted in last 4 years
    6. 6. So what is Ruby..?
    7. 7. Ruby A scripting language Purely Object Oriented Extreme dynamic Easy to learn, simple Influenced by Python, Perl and Lisp Open source and free Cross Platform
    8. 8. Ruby - Programming is fun, enjoy it You dont want to fight with the language, feel natural Be creative
    9. 9. Ruby - concise and succinct Concentrate on the problems Its like pseudo-code, simple Focus on human factor
    10. 10. Ruby - extreme dynamic eval, meta-programming, reflection, Open Classes
    11. 11. Ruby - features Dynamic yet strong typing Regular expressions, symbols, mutable strings Blocks, Iterators, generators Collections, arrays, hashes Interpolation, default arguments Operator overloading exception handling Native threads Custom dispatch behavior (method_missing) Garbage collection
    12. 12. if you want to try out all these examples given then download ruby from http://www.ruby-lang.org/en/downloads/ open console, type irb, and enter have fun …end# so simple often my code requires no comments - amol.pujari
    13. 13. ruby on railsextracted by David Heinemeier Hansson from his work on Basecamp, a projectmanagement tool by 37signals
    14. 14. Ruby on Rails: Rapid application development Web application framework Free Very less code Fast development & client appreciation Quick incremental development model Multiple Databases support Testing support Continues Integration support Deployment support Cloud ready solution
    15. 15. Ruby on Rails: Principles - CoC Conventions Over Configurations Database table name: books { id(pk), created_at, updated_at }:unicode Database migration: app/db/migrate/<ts>_create_books.rb Model: class Book => app/models/book.rb Views: app/views/books/ Controller: class BooksController => app/controllers/books_controller.rb Unit tests: app/test/unit/book_test.rb Fixtures: app/test/fixtures/books.yml Functional tests: test/functional/books_controller_test.rb Routes: resources :books =>
    16. 16. Ruby on Rails: Principles - DRY Dont Repeat Yourself
    17. 17. Rails: building blocks ORM: Active Record Action Pack  Action Dispatch  Action Controller  Action View Active Support Active Model, Active Resource, Action Mailer Railties
    18. 18. Rails: Active Record CRUD support  migrations Model level validations  Associations Callbacks  Query interface
    19. 19. Rails: Active Record: Association
    20. 20. Rails: Active Record: Association
    21. 21. Rails: inbuilt caching SQL Caching caches_page :index caches_action :index Fragment caching => <% cache do %> ...<% end %> ActiveSupport::Cache::Storeconfig.cache_store = :memory_store# :FileStore, :mem_cache_store, :redis,
    22. 22. Rails: Security Session Hijacking  Stealing a user’s session_id  Use database store and SSL Session Fixation  Attacker fixes a session id known to her  Issue a new session identifier (reset_session in RAILS) Cross-Site Request Forgery (CSRF)  Rails includes a security token in non-GET requests SQL Injection  Unauthorized reading/writing  Model.first(:conditions => ["login = ? AND password = ?", entered_user_name, entered_password])  attr_protected :is_admin HTML/JavaScript Injection  h @book.description # => alert(script inside);
    23. 23. Ruby on Rails – wider support Databases  Development  Performance  Security  Ibm db2  Neatbeans  J-meter  Md5, Kerberos  Oracle  Apatana  Yslow, Firebug  Sha1, Sha2  MsSql  Eclipse  Five-runs  Platforms  Mysql  Radrails  New-relic  All flavors of linux  Postgres  Project Management  Http-perf  Windows, MS DOS, Mac  Sqlite  Redmine  Memcache, redis  CMS  Mongodb  Trac  Apache benchmark  Wordpress, Mephisto  Cassandra  Basecamp  Standards  Comatoes, Radiant  BerkleyDB  Spring loop  XML/REST  spree UI  Assembla  MVC/ORM  Testing  HTML 5  Repositories  Deployment  Cuccumber, Rspec  Flash  Svn, cvs  Apache  Factory-girl, selenium  Flex  Github  NGINX  Flavors Scripts  Mercurial  Mongrel  Jruby  Ajax  Visual Source Safe  Glassfish  Iron ruby  Jquery  Continues Integration  phusion-passanger  Rubinies  Prototype  Capistrano  WebSphere  Ruby shoes  Css 3  Cruise Control  Rack  Sinatara  Coffeescript  moonshine  metal  Merb
    24. 24. Thanks. :)any queries?
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×