Meaningless Drivel is fun!*
The moose likes Cattle Drive and the fly likes Debugging code: comment or remove? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Debugging code: comment or remove?" Watch "Debugging code: comment or remove?" New topic
Author

Debugging code: comment or remove?

Dean Funk
Ranch Hand

Joined: Apr 20, 2001
Posts: 42
How do the Nitpickers feel about debugging code: should I excise it from my code before submission to the Nitpickers,
or can I leave it in, commented?
Frexample,
I'm doing 1b Hundred.java, and for debugging I print an 80-char
'scale'. I'd like to leave that code in as comments so I can save it later, without the joy of saving two versions of the same exercise. But of course I'll whack it if the nitpickers say so.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
Take it out before you submit it. It is just more for the nitpicker to read.

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Debugging code: comment or remove?