4 ms·
eternal september; people new people are continually learning new strategies. You're correct, the real issue comes down to 1. making sure those printf stateme
by chrsig 2y ago
eternal september; people new people are continually learning new strategies.
You're correct, the real issue comes down to
1. making sure those printf statements don't wind up in prod, spilling potentially sensitive data or corrupting a data stream
2. making sure that non-printf tooling is built so that only printf debugging isn't used
We tend to get caught up in false dichotomies.
- nxobject 2y agoRe 1: the recent iTerm2 fracas. Yikes. https://news.ycombinator.com/item?id=42579472 https://news.ycombinator.com/item?id=42579472
- chrsig 2y agoouch, i didn't even know about that
- Cthulhu_ 2y agooof, iterm's done a few bad releases recently, first with their AI integration and now this sloppiness. I think they're feeling the heat from competitors like Warp, especially now that it's removed the "create an account" barrier to entry.
- torstenvl 2y agoI use a DBUG() macro that wraps fprintf to stderr when a DEBUG is defined and NDEBUG is not defined, or otherwise is nothing.