2 ms·
> I'd like to think heisenbugs are inversely proportional to skill, but maybe it's just luck. Definitely some fraction of heisenbugs can be avoided through def
by rectang 12y ago
> I'd like to think heisenbugs are inversely proportional to skill, but maybe it's just luck.
Definitely some fraction of heisenbugs can be avoided through defensive programming techniques and adherence to best practices.
For example, avoiding mutable global variables reduces the potential for unexpected coupling between modules when they are combined into a larger system. Similarly, limiting concurrency to the smallest possible surface area of the codebase helps a system withstand increasingly chaotic real-world input.
Aggressive injection of randomness into unit tests (using proper random seeding) can also help to detect potential heisenbugs early.