Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Stupid comments in code, who never done it?  (Read 1506 times)
0 Members and 1 Guest are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« on: July 29, 2008, 02:15:46 AM »

So, i was looking trough some of the code of an application i've wrote some time ago ( http://www.engineeringser...12/28/tenant-application/ ) and I noticed that for some reason I wrote some really useless comment in my code. Check this:

Code
GeSHi (java):
  1. //Since i don't have a printer here i cant write and test a printer application..
  2. //so i wrote a CLI letter.
  3.  
  4. public void printWaitingLetter(){
  5. System.out.println("");
  6. System.out.println("*************Printing waiting letter*****************");
  7. System.out.println("Name:\t\t " + nameResult);
  8. System.out.println("Adress:\t\t " + adressResult);
  9. System.out.println("Postcode:\t\t " + postcodeResult);
  10. System.out.println("Phone:\t\t " + phoneResult);
  11. System.out.println("Renting:\t " + rentingResult);
  12. System.out.println("");
  13. System.out.println("Details: your request is confirmed and waiting.");
  14. System.out.println("*****************************************************");
  15. }
Created by GeSHI 1.0.7.20

Code
GeSHi (java):
  1. JLabel rentingLbl = new JLabel("Already renting?"); // already renting?
  2. String options[] = {"unknown" , "yes", "no"};
  3. JComboBox rentingCbox = new JComboBox(options); //combo, weeeeeh!
Created by GeSHI 1.0.7.20

Anyone else wrote comment in their code that were totally unneccesary and makes you wanna laugh after reading it a few months later ?  Very nice
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Depress
Junior Member
*

Reputation: 0
Offline Offline
Gender: Female
Posts: 4
Referrals: 0

Awards
« Reply #1 on: August 05, 2008, 01:50:05 PM »

Whoaawh, nice, but what is your point?

For personal use this is funny, but in a professional environment i think it is not appropriate. You are creating something for a customer, he might not like it. Not good;)
Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« Reply #2 on: August 05, 2008, 02:05:03 PM »

Whoaawh, nice, but what is your point?

For personal use this is funny, but in a professional environment i think it is not appropriate. You are creating something for a customer, he might not like it. Not good;)


Just wanted to ask if anyone here made funny comments in their code. I also doubt customers will look in the code directly because they are generally not developers and just want to use whatever software we create for them.

Oh,  and let me be the first to say welcome to the forums   Very nice
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Depress
Junior Member
*

Reputation: 0
Offline Offline
Gender: Female
Posts: 4
Referrals: 0

Awards
« Reply #3 on: August 05, 2008, 05:44:36 PM »

That's a point, but still not totally true.
Often costumers outsource some work to let there own personnel validate our complete the code. For example secret code/projects that need to be fitted in.

I use comments to explain some code or divide the code into sections. Jokes are for the pub;)
So i don't do jokes in code;)
Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« Reply #4 on: August 05, 2008, 06:01:05 PM »

That's a point, but still not totally true.
Often costumers outsource some work to let there own personnel validate our complete the code. For example secret code/projects that need to be fitted in.

I use comments to explain some code or divide the code into sections. Jokes are for the pub;)
So i don't do jokes in code;)

I guess so, however I did work on a few professional open source projects with developers all around the world and some of them added funny comments in their code. (although it did reflect the purpose of their code) I guess i'm the only one here that writes unneccesary comments in the sourcecode. I don't do it a lot though but when I see an occasion that calls for laughter i'll do it to have a quick laugh with the team  Very nice
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here