Подборка коментариев
12.10.2009Иногда нашему брату приходится разгребать чужой код, и коментарии, которые оставили для себя, приукрашают трудный рабочий день другому страдальцу.
Вот несколько примеров:
#1
// drunk, fix later
#2
// Magic. Do not touch.
#3
// I'm sorry.
#4
//This code sucks, you know it and I know it. Move on and call me an idiot later.
#5
try {
} finally { // should never happen
}
#6
//I am not sure why this works but it fixes the problem.
#7
// This only exists because Scott doesn't know how to use const correctly
#8
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
#9
//Please work
#10
// I am not responsible of this code.
// They made me write it against my will.
#11
# To understand recursion, see the bottom of this file
At the bottom of the file:
# To understand recursion, see the top of this file
#12
// I am not sure if we need this, but too scared to delete.
#13
/**
* Always returns true.
*/
public boolean isAvailable() {
return false;
}
#14
//Mr. Compiler, please do not read this.
#15
return null; //Not really null
#16
// Hard to explain
#17
i++; // increment variable i
Источник: http://msug.vn.ua/wikis/ithumor/54.aspx