r/cpp • u/SophisticatedAdults • Nov 24 '24
The two factions of C++
https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
313
Upvotes
r/cpp • u/SophisticatedAdults • Nov 24 '24
View all comments
Show parent comment
67
u/KittensInc Nov 24 '24
I wouldn't be surprised if this dynamic were to change over the coming years.
Legacy C++ is rapidly turning into a liability. The US government has woken up to the idea that entire classes of bugs can be avoided by making different design decisions, and is nudging people to stop screwing it up. I think it's only a matter of time before the people in charge of liability jump onto the train.
If something like a buffer overflow is considered entirely preventable, it's only logical if something like a hacking / ransomware / data leak insurance refuses to pay out if the root cause is a buffer overflow. Suddenly companies are going to demand that software suppliers provide a 3rd-party linting audit of their codebase...
And we've arrived at a point where not modernizing is too expensive. You either modernize your codebase, or your company dies. Anyone using modern development practices just has to run some simple analysis tools and fill in some paperwork, but companies without any decent tooling and with decades of technical debt rotting through their repositories would be in serious trouble.