login
Blurts on the Art of Software Development

Today | RSS | RDF | Atom | Other Tags
Categories : All | All | CI | .NET | General | Humour | Java | Personal | Reviews | Ruby | SW Eng

Heh. I just spotted this old entry from Jim Weirich's blog:

<paulv>    matthew immediately declared that we were already cracked. :)
<matthew>  yeah, it's all good.  Although, can you prove you're Jim?
<jweirich> yes
<jweirich> ask me a Ruby question
<paulv>    implement the Y-combinator!
<matthew>  heh
<paulv>    then I'll believe.
<jweirich> p proc { |le|
<jweirich>   proc { |f| f.call(f) } \
<jweirich>   .call ( proc { |f|
<jweirich>            le.call (proc { |x| f.call(f).call(x) }) })
<jweirich> }.call(proc { |recurse|
<jweirich>   proc { |n|
<jweirich>     if n == 0 then
<jweirich>       1
<jweirich>     else
<jweirich>       n * recurse.call (n-1)
<jweirich>     end
<jweirich>   }
<jweirich> }).call(5)  
<matthew>  wow.  This is better than gpg keys.
<matthew>  I hope you had that laying around 
<jweirich> nah, did it from memory ;)
<paulv>    this *is* better than GPG keys.



Gotta love that right there.




Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 5 + 10 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://radio.javaranch.com/lasse/addTrackBack.action?entry=1130098606299