35 забавных комментариев

Stackoverflow недавно был поднят вопрос от том, какой самый лучший комментарий в исходном коде встречали респонденты. Всего было дано 534 ответа. Я хотел бы привести некоторые, которые мне просто понравились, без учета их полезности.

sometimes I believe compiler ignores all my comment

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 = 16

drunk, fix later

Magic. Do not touch.

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

I’m sorry.

You are not meant to understand this

I am not sure why this works
but it fixes the problem

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

Dear future me. Please forgive me

I can’t even begin to express how sorry I am

I am not responsible of this code

They made me write it, against my will

I have to find a better job

If you’re reading this, that means you have been
put in charge of my previous project
I am so, so sorry for you. God speed

TODO: Fix this.  Fix what?

Mr. Compiler, please do not read this

if i ever see this again i’m going
to start bringing guns to work

This comment is self explanatory.

this comment included for the benefit of
anyone grepping for swearwords: shit.

NOT FIT FOR HUMAN CONSUMPTION

Houston, we have a problem

This code was written by a genius so don’t
try to understand it with your tiny little brain.

If I from the future read this
I’ll back in time and kill myself.

If you are reading this,
please place a checkmark here [  ]

My lawyer told me not to reveal

no comments for you
it was hard to write so it should be hard to read

I’m sorry, but our princess is in another castle.
but the “real” solution is much more complicated

Honest this works

HACK ! COPY/PASTE this and look for another job

I wish (boss name) could do this by him self

Sorry dirty code

This condition can’t happen. Call the police or something

why the f*** we have to move this here to make it work

Do not continue reading if you dont want to die

*** AAAAAHAHAHAH!!  What is this??


Leave a Reply

You must be logged in to post a comment.

blog comments powered by Disqus