Ask HN: Code that made you smile for a moment :)
I'm curious about some code that made you smile, while coding.
Example:
try{
//some code in c#
}catch(Exception up) {
//log exception
throw up;
}Example:
try{
//some code in c#
}catch(Exception up) {
//log exception
throw up;
} public void somefunc(int ip)
{
....
//act like the program is doing some heavy
//calculations
Thread.sleep(2000);
....
}Makes me chuckle every time :P