This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) 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

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?
I'm doing 1b, 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

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

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
subject: Debugging code: comment or remove?
It's not a secret anymore!