They Laughed When I
Learned Ruby on Rails
But When I Started to
Build Web Applications...
                Dr Nic Williams
• 10 000 users
• 3 months
• Re-used their global authentication system
• 600 users of 1500
  RailsConf attendees
• First release in 5 days
Websites are
  just text
Google homepage
<html>
  <head>
    <title>Google</title>
  </head>
  <body>
    <img src=quot;/intl/en_ALL/images/logo.gi...
Browsers don’t care
what server you use
Browsers don’t care
what operating system
Browsers don’t care
 what programming
     language
Browsers don’t care.
They just want text
Pick what
you like best
Real-world
Developer
             problem
Developers are humans
Happy developers
do more good things
Why Rails?
Convention
   over
Configuration
class Book < ActiveRecord::Base
  validates_presence_of     :title
  has_many   :orders
  belongs_to :author, :class_name ...
class StoreController < ApplicationController
  def show
    @book = Book.find_by_permalink(params[:id])
  end
end



  ht...
DRY
Don’t Repeat Yourself
class Book < ActiveRecord::Base
end




         Where are the attributes?
         Where is the configuration?
Change is instant
Use it, break it, fix it,
trash it, change it
Why is Rails special?
Ruby
(no more Java)



Introspection
Open classes
Execute code in class definitions
#9 popular language
             http://www.tiobe.com/index.htm?tiobe_index
One language
for everything
   ActiveRecord
     Controller
   HTML helpers
           Ajax
Open Source.

                    • 2200 participants
                    • commiters, patchers,
                       co...
app

        models

                         Every
        controllers

                      application
        views

...
Flexibility is overrated
Constraints are liberating
All this creates happiness,
plus better applications
Downsides?
Bad architecture is still
   bad architecture
 Its just for websites

      Java is evolving
 Groovy and Grails, + Open so...
Getting started

• www.rubyonrails.org
• www.peepcode.com - $9 videos
• www.drnicacademy.com - Australian training
Upcoming SlideShare
Loading in...5
×

Why Use Rails by Dr Nic

2,904

Published on

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

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

No Downloads
Views
Total Views
2,904
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
43
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Why Use Rails by Dr Nic

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

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

×