The Lord's Prayer, for coders

The following comes from a funny (and slightly weird) conversation i had on a walk with a colleague this afternoon. This is literally the way we often talk when we go out for our walks around the fields of Barton Farm! One day we're probably going to have a day when we only speak in Ruby!

@heaven = Heaven.instance
@father = God.trinity[0]
@earth = Universe.galaxies.find_by_name("Milky Way").solar_system.planets[2]
 
@father.open_connection do
  @father.current_location.should == @heaven
  @father.name.should be_hallowed
 
  kingdom = mock_model(Kingdom)
  Kingdom.stub!(:new_for).with(@father).and_return(kingdom)
  kingdom.should_receive(:come!).and_return(true)
  @earth.should be_like(@heaven)
 
  @earth.current_population.each do |person|
    person.should_receive(:bread).daily
    @father.should_forgive(person) && person.should_forgive(:others)
    @father.should_not lead(person).into(:temptation)
    @father.should deliver(person).from(:evil)
  end
 
  while true do
    [Kingdom, Power, Glory].collect do |klass|
      klass.all.should be_attributed_to(@father)
    end
  end
end

Shame i haven't updated for such a long time. I was unable to log into my blog for a while, and even when i fixed it i couldn't think of anything to write to make a suitable come-back! Hopefully this satisfies! :)

No related posts.

  • ::laughing::

    very ingenious!

    good to see you "back" :-)
  • Thanks Jennifer! :D

    2009/10/22 Disqus <>
  • I think that the information presented should be useful to many people a lot.
  • lol ... somehow i doubt it! unless it inspires people to learn RSpec!
    i know this is a spam comment but i quite like it so i'm keeping it.
  • educationgrants
    This is an interesting posting you've got here. I love this blog, I bookmarked a while ago and have enjoyed many great postings. Cheers.
  • Gr8!! idea and a great blog. I appreciate your work & hope for some more informative information.
  • This is an interesting posting you've got here. I love this blog
blog comments powered by Disqus
who-am-i
A web programmer in my late-late-twenties, fanatical about open source, free software, loving my job working daily with Ruby on Rails, RSpec, Cucumber and Git.

I am very proud to have created MyChores.co.uk, an online team based tracking system for household chores and other recurring tasks.
Search



Flickr