<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1233557686751204&amp;ev=PageView&amp;noscript=1">

Brilliant source code comments

All developers use comments within their code for a number of different reasons.

These can range from developer flags, to notes on what a section of code performs.

Below are some of the best comments by developers and designers we have ever encountered in source code, developers can have fun too!

If you have any others let us know!

I'm not sure what I did
stop(); // Hammertime!
//I am not sure why this works but it fixes the problem.
// TODO: Implement this function!
/* Please work */
// This only exists because Scott doesn't know how to use const correctly
/* You are not meant to understand this */
// Autogenerated, do not edit. All changes will be undone.
//this formula is right, work out the math yourself if you don't believe me
// sometimes I believe compiler ignores all my comments
// 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.
-- Comment this later
// Abandon all hope you who needs to debug this
// somedev1 -  6/7/02 Adding temporary tracking of Login screen
// somedev2 -  5/22/07 Temporary my ass
 // drunk, fix later
/**
* 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.
*/
// Magic. Do not touch.
// 
// 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 = 42
//

All taken from Stack Overflow

New call-to-action