I've previously highlighted the geekery that is using pseudo-code for non code related activities (in my case an IM insult) and just though I'd share this lovely example from Null is Love:
RUBY:
-
piper = Baby.new(:name => 'Piper',
-
:born => '2008-06-09 18:22:00 EDT',
-
:weight => {:lbs => 6, :oz => 8},
-
:length => {:inches => 21.25})
-
-
skoglunds.children <<piper
-
-
piper.daily do |p|
-
8.times do
-
p.eat
-
p.poop
-
p.sleep
-
end
-
end
Comments
There have been no comments so far, why not be the first?
Leave a comment
No HTML please, only textile. For code please use [lang]...[/lang] tags (e.g. [html]...[/html] for HTML)