Hacker News new | ask | show | jobs
by knocte 3033 days ago
If you hate heisenbugs, use Functional Programming (or data-race-safe langs such as Rust). It will kill 99.99% of them.
1 comments

That's assuming that heisenbugs are caused by concurrent programming alone. But a ton of heisenbugs happen in boring single-threaded programs.
Tons? In my entire career I haven't found one of those.
Any programming language with pointers such as C or c++ where you can have wild pointers, use after free etc can be a breeding ground or hisenbugs. Consider yourself lucky.