Els millors comentaris en els programes
Si esteu davant d’un programa i trobeu un comentari que us fa gràcia publiqueu-lo al fòrum Stackoverflow. Per exemple:
/** * 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. */// // 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 = 32 ////When I wrote this, only God and I understood what I was doing //Now, God only knows// I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public.// drunk, fix later// Magic. Do not touch.return 1; # returns 1// I'm sorry./* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass#define TRUE FALSE //Happy debugging suckers/** * Always returns true. */ public boolean isAvailable() { return false; }//This code sucks, you know it and I know it. //Move on and call me an idiot later.// If this comment is removed the program will blow up