RJKSolutions

Best code comments

Discussion created by RJKSolutions on Jul 15, 2013
Latest reply on Jul 16, 2013 by Ahmad Fattahi

I had to open up some old code of mine yesterday and came across one highly insightful comment on my code that I added in my youth:

 
return 100; // returns 100

 

 

 

 

So then I started to pay attention to some of the stupid, and some funny, comments I've seen in code or read others have put in their code. What funny comments is everyone else guilty of?

 

Here are some random funny ones...

 

 

 
stop(); // Hammertime!
//When I wrote this, only God and I understood what I was doing
//Now, God only knows 
Exception up = new Exception("Something is really wrong."); 
throw up; //ha ha
} catch (PartInitException pie) 
{ // Mmm... pie
// drunk, fix later

Outcomes