Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Policy on debug codes



>> Are you talking about a scripting language (like PHP), or a compiled
>> language (like C++)? And open source, or commercial-selling-software, or
>> commercial-written-for-a-client?
> 
> In my case, it is Perl and commercial-written-for-a-client

In that case I'd usually ask the client what they want.

Generally, if you are talking about asserts I'd leave them in unless
they cause a performance problem; if talking about trace statements I'd
inserted to track down bugs I'd usually comment them out (or in C/C++
wrap them in a TRACE() macro so they can be defined away); if talking
about logging you need to document it (e.g. warn the client it'll fill
their disk after N months if they don't rotate it) and provide a setting
to control how verbose the logging is.

Darren



-- 
Darren Cook
http://dcook.org/mlsn/ (English-Japanese-German-Chinese free dictionary)
http://dcook.org/work/ (About me and my work)
http://dcook.org/work/charts/  (My flash charting demos)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links