Archive for April, 2026
A “design pattern” to avoid
Apr. 15, 2026, under bugfix, good advice, software dev
NEVER write some random piece of bare data to common (system-wide, site-wide, etc.) logs, e.g. in PHP using error_log(), even during “quick” debugging: ALWAYS include some kind of tag identifying the piece of data and why it is being logged.
If you get interrupted and forget you put that logging in, and don’t discover it in the logs until a week later when that task had long since gone out of your mind, you could end up spending easily half an hour chasing the source of the “problem” down.





