I have seen many interesting code comments; some made me smile knowingly, some simply made me laugh my head off, and some are even hidden in source code. Let's take a look at these "jokes" together.
1. I used to know what I was writing, but now only God knows.
This comment was written by the excellent mathematician Karl Weierstrass. The only thing I want to ask is whether he was referring to the same math problem before and after. If so, then why? I really want to know.
2. I dedicate all my code and all my work to my wife Darlene, for she raised me and our three children, and a dog that goes crazy around people.
Well, props to this guy for his sense of humor! Even if it wasn't a burst of humor, it's still admirable courage. Anyway, reading this, I was moved to tears.
3. I'll fix it when I'm drunk.
I picked this one because I really want to know how this guy writes code after getting drunk. Of course, if you can do it, that's pretty impressive. But most drunk people can't even think properly. Regardless of whether it's true or not, this quote is pretty funny when you think about it.
4. Danger here, retreat quickly.
5. This code is bad, you know it without me saying. If you can fix it, call me a fool and I'll accept it.
This one is arguably the most sincere of these 9 comments. The first step in development is being able to admit your own shortcomings. This statement speaks for most programmers; the words are blunt but the truth is there, haha.
6. Don't come to me about code issues! Even though I wrote it, it grew crooked by itself.
This guy probably did it to escape his boss's blame. But I guess he's been fired by now.
7. 0 cannot be a divisor, so I had no choice but to use a very close value instead: 0=0.00000000000001
8. If you see this, it means you are now in charge of my previous project. I am very sorry. God bless you.
This is a classic phrase. Many programmers leave this message for the next person on tasks they gave up halfway.
9. If this code works, it was written by Paul DiLascia. If it doesn't, then I have no idea who wrote it.
Some programmers like to leave this kind of sentence, probably because they are quite sure they will never touch this task again, and of course some are not. I just want to say these guys have admirable courage!
Source: http://www.codeceo.com/article/9-funnest-code-comments.html
English: http://www.itaxsmart.com/9-funniest-code-comments-by-programmers/