// And now ladies and gentlemen, we need a volunteer from the audience!
// Yes, you there, please come up.
...allocate dynamic memory...
// Now our lovely lady from the audience will enter this mysterious box!
...do something with allocated memory...
// We spin the box around!
... do more stuff ...
// And when we open the box, we see she has vanished!
... deallocate memory ...
Amusing, I guess, but it really didn't contribute understanding to the code. This was in the middle of a gigantic avionics simulation program that was almost entirely uncommented and extremely hard to understand in the first place. The same code base also had an MP3 recording of this song checked into it:if(thingthatshouldneverhappen) {alert('Oh shit!');}
Guess what happened in the middle of a regional training?
At least it was easy to find for debugging...
>One Google engineer from back then says the most remarkable thing about the co-founders' code was that when it broke, users would see funny error message: "Whoa, horsey!"
http://www.businessinsider.com/larry-page-sergy-brin-are-lou...
"It is awful!"
It was awful. I hated working on that damn thing. But it made me smile when I found that little Easter egg.
Said framework also looking at lot like one big blob of hacked together tangle of PHP and HTML.
app <- -> exports.setup = it
in LiveScript seems to compile to
(function(it){ return exports.setup = it; })(function(app){})
which is pretty crazy.
Another one, just above some code making many deep monkey-patches to the Sequilize db driver:
/* HOLY FUCK THIS IS THE SKETCHIEST THING EVER */
made me smile.