
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Policy on debug codes
Stephen J. Turnbull さんは書きました:
> Nguyen Vu Hung writes:
>
> > After all bugs are fixed, of course TRACE() can be removed.
>
> Since you can't prove that all bugs are fixed, you can't remove
> TRACE() ever. :-)
>
IRL, it will be different :-), customers will define that when all buged
in a specific phase are fixed, we can say that. We don't care about bugs
in the next phases.
> In Perl you can of course define TRACE() to be a do nothing function,
> and it should get optimized away (even Emacs Lisp does that). Your
> compile time will increase slightly, but if that matters you're doing
> something else wrong anyway -- it should always be possible to keep
> compile time down to a negligible fraction of total time in production
> use, and a 10% increase in negligible is still negligible.
>
I found that before putting code into production server, we have first
to test it in a "development server" (a test server) where official
testing will be done here. For the sake of testing/debugging, leave all
the "debug code" in the development server and then remove it when
putting into production is good idea.
Home |
Main Index |
Thread Index