Don't ask to ask, just ask | |
PerlMonks |
Re^3: Balancing Logging and Code Readabilityby ack (Deacon) |
on Sep 17, 2009 at 02:39 UTC ( [id://795753]=note: print w/replies, xml ) | Need Help?? |
Very good suggestion and straegy. That strategy can be extended to several other challenges I've encountered with logging...and with debugging, too. In fact, whether one uses logging or (as I noted to Marshall) just straight prints for debugging, gathering the frequently repeated code(s) into subroutines always makes my code much more readable and much less "cluttered." Excellent observation and suggestion. Thanks, saberworks.
ack
Albuquerque, NM
In Section
Seekers of Perl Wisdom
|
|