The Why Of Ruby
Upcoming SlideShare
Loading in...5
×
 

The Why Of Ruby

on

  • 1,467 views

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

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

Statistics

Views

Total Views
1,467
Views on SlideShare
1,459
Embed Views
8

Actions

Likes
0
Downloads
2
Comments
0

3 Embeds 8

http://coderwall.com 4
http://www.slideshare.net 3
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

The Why Of Ruby The Why Of Ruby Presentation Transcript

  • why ruby? cs 320
  • programming is fun.
  • you just don’t know it yet.
  • I was a designer. I hated programming.
  • my clients wanted interactive websites...
  • I learned Ruby in 2005 and fell in love...
  • want to make a desktop app that runs on Mac, Windows, and Linux?
  • 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
  • how about a simple iPhone-enabled site?
  • 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>
  • want to make CSS easier to read and use?
  • @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; }
  • got a great idea and want to get it out there quickly?
  • got a big site that’s hard to maintain?
  • Want to change your life?
  • Don’t just do something...
  • ...do something you love to do.
  • Ruby makes us happy.
  • so... if you have an interest in this and you want to learn...
  • ...we’ll help you get there.
  • Open House • Dooley’s Pub • 5:00 to 7:00 Thursday, October 1st • Presentations, prize drawing
  • @ecruby on Twitter
  • Thanks for your time!