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:
  1. piper = Baby.new(:name => 'Piper',
  2.                  :born => '2008-06-09 18:22:00 EDT',
  3.                  :weight => {:lbs => 6, :oz => 8},
  4.                  :length => {:inches => 21.25})
  5.  
  6. skoglunds.children <<piper
  7.  
  8. piper.daily do |p|
  9.   8.times do
  10.     p.eat
  11.     p.poop
  12.     p.sleep
  13.   end
  14. 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)