Tuesday, April 18, 2006

A Geek's Version of a Joke

If you have Ruby and Watir installed, here is my "Geek's Version of 'How far do you want to go for a deep joke'". Enjoy


require 'watir'

ie = Watir::IE.start("http://www.sbpoet.com/2006/01/how_far_would_y.html")
while link = ie.link(:text, /(blond)|(joke)|(this one is great)|(>CLICK<)/)
link.focus
link.click
end


Personally I don't find it THAT great, but like Steve Boswell always says, "I digress".

3 comments:

Dave Hoover said...

Nice. Great joke. :-)

Michael Bolton http://www.developsense.com said...

I don't get it. I think I found an endless loop bug, though.

---Michael B. (surprisingly: brown hair, balding)

Anonymous said...

It took me two clicks, then I had a good laugh. =)