jQuery in Action, 3rd edition
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
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 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

Joined: Jul 22, 2000
Posts: 9059
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
I agree. Here's the link: http://aspose.com/file-tools
subject: Debugging code: comment or remove?
It's not a secret anymore!