TLDR Web Dev · ARTICLES & TUTORIALS
SQUASHING MY DUMB BUGS AND WHY I LOG BUILD IDS
Summary from the TLDR Web Dev newsletter
A bug was introduced by a misplaced negation when handling user-agent headers in a C++ project. This mistake, caused by a copy-paste error while refactoring code to use "if scope" for error handling, resulted in user-agent data not being captured for a specific build. To clear up confusion for users and pinpoint the faulty data, the author added a visual "fingerprint" that represented the build's git commit hash to the reporting page, allowing users to quickly identify data affected by the buggy version.