Why Use Rails by Dr Nic

  • 2,846 views
Uploaded on

Ruby on Rails is a leading web development framework, yet is only a few years old. Here's why...

Ruby on Rails is a leading web development framework, yet is only a few years old. Here's why...

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,846
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
42
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. They Laughed When I Learned Ruby on Rails But When I Started to Build Web Applications... Dr Nic Williams
  • 2. • 10 000 users • 3 months • Re-used their global authentication system
  • 3. • 600 users of 1500 RailsConf attendees • First release in 5 days
  • 4. Websites are just text
  • 5. Google homepage <html> <head> <title>Google</title> </head> <body> <img src=quot;/intl/en_ALL/images/logo.gifquot;> <form action=quot;/searchquot; name=f> <input name=q title=quot;Google Searchquot;> <input name=btnG type=submit value=quot;Google Searchquot;> <input name=btnI type=submit value=quot;I'm Feeling Luckyquot;> </form> </body> </html>
  • 6. Browsers don’t care what server you use
  • 7. Browsers don’t care what operating system
  • 8. Browsers don’t care what programming language
  • 9. Browsers don’t care. They just want text
  • 10. Pick what you like best
  • 11. Real-world Developer problem
  • 12. Developers are humans
  • 13. Happy developers do more good things
  • 14. Why Rails?
  • 15. Convention over Configuration
  • 16. class Book < ActiveRecord::Base validates_presence_of :title has_many :orders belongs_to :author, :class_name => quot;Userquot; end
  • 17. class StoreController < ApplicationController def show @book = Book.find_by_permalink(params[:id]) end end http://mysite.com/store/drnic-book-on-rails
  • 18. DRY Don’t Repeat Yourself
  • 19. class Book < ActiveRecord::Base end Where are the attributes? Where is the configuration?
  • 20. Change is instant
  • 21. Use it, break it, fix it, trash it, change it
  • 22. Why is Rails special?
  • 23. Ruby (no more Java) Introspection Open classes Execute code in class definitions
  • 24. #9 popular language http://www.tiobe.com/index.htm?tiobe_index
  • 25. One language for everything ActiveRecord Controller HTML helpers Ajax
  • 26. Open Source. • 2200 participants • commiters, patchers, commenters, +1ers http://dev.rubyonrails.org
  • 27. app models Every controllers application views looks the config same db test vendor
  • 28. Flexibility is overrated
  • 29. Constraints are liberating
  • 30. All this creates happiness, plus better applications
  • 31. Downsides?
  • 32. Bad architecture is still bad architecture Its just for websites Java is evolving Groovy and Grails, + Open sourced Java
  • 33. Getting started • www.rubyonrails.org • www.peepcode.com - $9 videos • www.drnicacademy.com - Australian training