Подборка забавных комментариев

03.11.2011 20:21:30
Вот несколько примеров довольно забавных комментариев кода:
// drunk, fix later

// Magic. Do not touch.

// I'm sorry.

//This code sucks, you know it and I know it. Move on and call me an idiot later.

try {

} finally { // should never happen


//I am not sure why this works but it fixes the problem.

// This only exists because Scott doesn't know how to use const correctly

//When I wrote this, only God and I understood what I was doing
//Now, God only knows

//Please work

// I am not responsible of this code.
// They made me write it against my will.

# To understand recursion, see the bottom of this file
At the bottom of the file:
# To understand recursion, see the top of this file

// I am not sure if we need this, but too scared to delete.

* Always returns true.
public boolean isAvailable() {
return false;

//Mr. Compiler, please do not read this.

return null; //Not really null

// Hard to explain

i++; // increment variable i

Категории: =)