Best programmer’s source code comments :-D
Just came over a great collection of programmer's comments on stackoverflow. Well, now I really just can't help myself either! Some favs:
//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 36
//
Ignorant compiler
// sometimes I believe compiler ignores all my comments
Threwn up:
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha
Stop morons from messing up the code:
// Autogenerated, do not edit. All changes will be undone.
Only God knows...
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
Pure poetry:
// Replaces with spaces the braces in cases where braces in places cause stasis
$str = str_replace(array("\{","\}")," ",$str);
Who cares?
Catch (Exception e) {
//who cares?
}
Happy debugging?
#define TRUE FALSE //Happy debugging suckers
Never rely on a comment...
/**
* Always returns true.
*/
public boolean isAvailable() {
return false;
}
Scared
// I am not sure if we need this, but too scared to delete.
Against my will
// I am not responsible of this code.
// They made me write it, against my will.
UNIX Deamon
/* Be a real daemon: fork myself and kill my parent */
Last, but not least: So cute!
/* ____________________ / \ | Jean-Michel Bechet | | 2002-2009 | \___ _______________/ |/ (o_ //\ V_/_ */
More on stackoverflow






3 Kommentare zu "Best programmer’s source code comments :-D"
[...] Best programmer's source code comments | webdesign joomla … bookmark Mit Klick auf diese Icons kann man diese Webseite mit anderen Social Networks verlinken, [...]
Dann spende ich dir mal einen Kommentar :- )
#define TRUE FALSE //Happy debugging suckers
ist mein absoluter Favorit :D
In der wzdftpd-Konfigurationsdatei:
[GLOBAL]
# This is the main config file
# lines begining with a # are ignored, as empty lines
# all lines must be of the form:
# =
# (for windows users: without the ;-)
Kommentieren