Submitting a form to register on Facebook
Hitting the "Done" button when updating your Facebook profile
Clicking the Facebook logo to go back to the Newsfeed
Clicking "Unfriend" on your backstabbing friend's profile.
localhost:3000/
localhost:3000/hello
localhost:3000/foobar
localhost:3000/bye
"hello".length()
2.weeks
3.days.from_now
Use Google + Stack Overflow as you get the hang of things
Eg. "How to iterate over an array"
class Sam
def initialize(coolness)
@cool = coolness * coolness
foobar = coolness * 2 # disappears!
end
def cool
@cool
end
def self.awesome?
true
end
end
me = Sam.new 10
me.foobar # error
me.cool # 10
me.awesome? # error
Sam.awesome? # true