18.11.2011, 09:06
|
#1
|
Активный Участник
Сообщений: 223
Благодарности: 171 в 46 сообщениях
|
улыбка программёра ... :)
10 “Best” Code Comments
http://aboukone.com/2011/11/08/10-best-code-comments/
Цитата:
1. // 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 = 39
2. /** * For the brave souls who get this far: You are the chosen ones, the valiant knights of programming who toil away, without rest, fixing our most awful code. To you, true saviors, kings of men, I say this: never gonna give you up, never gonna let you down, never gonna run around and desert you. Never gonna make you cry, never gonna say goodbye. Never gonna tell a lie and hurt you. */
3. Exception up = new Exception("Something is really wrong."); throw up;
4. // somedev1 - 6/7/02 Adding temporary tracking of Login screen
// somedev2 - 5/22/07 Temporary my ass
5. #define TRUE FALSE //Happy debugging suckers
6. if (/*you*/ $_GET['action']) { //celebrate
7. // If this code works, it was written by Paul DiLascia. If not, I don't know who //wrote it.
8. //When I wrote this, only God and I understood what I was doing
//Now, God only knows
9. // drunk, fix later
10. // Magic. Do not touch.
|
|
|
|