The Why Of Ruby

1,162
-1

Published on

Simple introduction to Ruby and what it can do for you, not just technically, but professionally. Promotional presentation for our user group.

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

  • Be the first to like this

No Downloads
Views
Total Views
1,162
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • The Why Of Ruby

    1. 1. why ruby? cs 320
    2. 2. programming is fun.
    3. 3. you just don’t know it yet.
    4. 4. I was a designer. I hated programming.
    5. 5. my clients wanted interactive websites...
    6. 6. I learned Ruby in 2005 and fell in love...
    7. 7. want to make a desktop app that runs on Mac, Windows, and Linux?
    8. 8. Shoes.app do para "Item name" @name = edit_line button "Add to list" do @names.append do para @name.text end @name.text = "" end button("Clear the list") {@names.clear} @names = stack :width=>"100%", :height=>"90%" end
    9. 9. how about a simple iPhone-enabled site?
    10. 10. require 'sinatra' require 'pathname' get "/" do dir = "./files/" @links = Dir[dir+"*"].map { |file| file_link(file) }.join erb :index end helpers do def file_link(file) filename = Pathname.new(file).basename "<li><a href='#{file}' target='_self'>#{filename}</a></li>" end end use_in_file_templates! __END__ @@ index <html> <head> <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> <style type="text/css" media="screen">@import "/stylesheets/iui.css";</style> <script type="application/x-javascript" src="/javascripts/iui.js"></script> </head> <body> <div class="toolbar"> <h1 id="pageTitle"></h1> </div> <ul id="home" title="Your files, sir." selected="true"> <%= @links %> </ul> </body> </html>
    11. 11. want to make CSS easier to read and use?
    12. 12. @the-border: 1px; @base-color: #111; #header { color: @base-color * 3; border-left: @the-border; border-right: @the-border * 2; } #header { color: red; a{ font-weight: bold; text-decoration: none; } } #footer { color: (@base-color + #111) * 1.5; }
    13. 13. got a great idea and want to get it out there quickly?
    14. 14. got a big site that’s hard to maintain?
    15. 15. Want to change your life?
    16. 16. Don’t just do something...
    17. 17. ...do something you love to do.
    18. 18. Ruby makes us happy.
    19. 19. so... if you have an interest in this and you want to learn...
    20. 20. ...we’ll help you get there.
    21. 21. Open House • Dooley’s Pub • 5:00 to 7:00 Thursday, October 1st • Presentations, prize drawing
    22. 22. @ecruby on Twitter
    23. 23. Thanks for your time!
    1. A particular slide catching your eye?

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

    ×