This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9044
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging code: comment or remove?
 
Similar Threads
changes
Changes in the Cattle Drive
4b - input arg question
when to use of static class ?
How much do you think one's career is tied to programming language?