Los meyores comentarios en códigu fonte

El códigu fonte (en llinguaxes como python, php…) ye lo qu’un ordenador interpreta y tú ves en forma d’aplicación. Dalgunes vegaes los desendolcadores ponen guiños a quien esfruta lleendo códigu, vamos ver dalgunos exemplos…

// 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 = 25

stop(); // Hammertime!

// sometimes I believe compiler ignores all my comments

Exception up = new Exception("Something is really wrong.");
throw up;  //ha ha

//When I wrote this, only God and I understood what I was doing
//Now, God only knows

// Magic. Do not touch.

// drunk, fix later

return 1; # returns 1

Catch (Exception e) {
//who cares?

<!-- Here be dragons -->

long long ago; /* in a galaxy far far away */

/* Please work */

// I am not sure if we need this, but too scared to delete.

// hack for ie browser (assuming that ie is a browser)

// TODO: Fix this.  Fix what?

// Catching exceptions is for communists

// If this code works, it was written by Paul DiLascia. If not, I don't know who wrote it

//Mr. Compiler, please do not read this.

// TODO make this work

//I'm sorry, but our princess is in another castle.

//If you're reading this, then my program is probably a success

// Hard to explain

i++; // increment variable i

// TODO - Comment this function

// nobody read comments!

/* You are not expected to understand this. */

Fonte: MuyLinux.

Más en: stackoverflow.

Los comentarios tan zarraos