Thursday, June 29, 2006
Adventures with Ruby (part 1)
These are notes I’m taking while reading the Programming Ruby book. It’s excellent.
General Ruby
- use parens in all but the simplest cases
- single quotes for non-escaped strings, double quotes induce more work
- escaped strings replace with binary val
- double quotes also used with expression interpolation #{name}
- the last expression evaluated by a method is the return value; no need for return unless being of utmost verbose
Classes
- classes are never closed. you can always add methods to an existing class by opening the class like you would a folder or file
Cool and unforgettable features
- statement modifiers: ** expression followed by if or while and the condition ** (ex. puts “danger!” if radiation > 3000)
I AM WHAT I DO NOT UNDERSTAND. I AM ARBITARY!
Labels: programming, ruby
Friday, June 16, 2006
Paul Graham
Tuesday, June 13, 2006
It's Time to Go...Again
This past weekend, I spent most of the time packing boxes when not working on the new Pitchfork site. As always, I come across photos, letters, and cards from the recent past. Nostalgia, my best friend.
And then, I find my dream journal. Oh, my long lost friend. How I enjoyed writing in you every morning upon waking. Here are a few lines that I found particularly interesting:
“Sailing the seas… or were we just in a pool. Plan things out carefully, for lightning can strike at anytime.”
“A penguin in a dried up pond. Take it to open waters. But those glasses they wear are only a hoax. The penguins are leading you on by thinking they’re blind. They are not blind.”
What the heck was I dreaming about?? This has provoked me to start writing my dream journal again. I wonder if I could write a story about that penguin. Most of the things I wrote I remembered, almost like it was real life.
Labels: compositions
Monday, June 5, 2006
Fuck the Blackouts!
Labels: music
Subscribe to Posts [Atom]