July 01, 2008 at 05:54 PM · Posted under code monkey, poetry · Tagged with code, code poetry, poetry, ruby
about relationships…
retries = 0
begin
# do your thing here
rescue
retries += 1
puts "shame on "+(retries == 1)? "me" : "you"
retry unless retries > 2
end
Ok, I know it is still kind of lame, but you get the point.
Permalink
Leave a Comment