Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

The Why Of Ruby

1 648 vues

Publié le

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

Publié dans : Technologie, Formation
  • Identifiez-vous pour voir les commentaires

  • Soyez le premier à aimer ceci

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!

×