Hacker News new | ask | show | jobs
by smackeyacky 715 days ago
It’s quite a big issue. It’s actually a bit worse than the article makes out if you throw static objects into the mix and get race conditions where you don’t know which objects get constructed first. C++ has to be approached with caution even by experienced devs.
3 comments

I agree with the parent - global initialisation order is a once-bitten-never-again, and the reality is that working in most codebases doesn't require understanding all of these rules - knowing the quirks is usually only required by one or two people and the rest can work with what they've got.
that is a novice issue, it is easily avoided
experienced (and even the not so much) devs know the perils of static initialization and avoid it.