Re:For Donald Knuth, good coding is synonymous with beautifu...
by stjohnswarts on Friday April 17, 2020 @05:59PM
(#22903369)
You might also try to get your QA process to require removal of debug print messages or at the very least an "off" flag as an environmental variable or config file element
So a little while ago we needed to log some info to figure out where 2 parallel sets of calculations were going wrong. So I wrote some logging that output the info to a file instead of the main log, and then wrote a simple parser to read them in and display them side-by-side in a nice hierarchical tree structure. It made something that normally takes us a week to work out only take a few hours. It's something we'll never ship to customers, but helps us enormously.
I'm finding myself writing more and more stuff like that these days.