3 ms·
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;
}
- ploggingdev 10y agoI remember coming across a Java program which accepted user input, did some simple data transformation and printed an output. It had the following comment: public void somefunc(int ip) { .... //act like the program is doing some heavy //calculations Thread.sleep(2000); .... }
- recrudesce 10y agothis: http://www.forgetfoo.me/images/blog/code-brackets-90452345.png http://www.forgetfoo.me/images/blog/code-brackets-90452345.p... Makes me chuckle every time :P