News for hackers. Stuff that matters.
Re:C++ Patterns: The Badge by astonex on Wednesday June 12, 2019 @04:17AM (#20162691)
>if all dudes involved read the code before chaning it

And that's only ever possible if you're the only "dude", and your codebase is like <10k loc

Re:C++ Patterns: The Badge by eps on Wednesday June 12, 2019 @08:31AM (#20163844)
No, not really. It works quite well for large projects too. Just look at any open source that is C-based.

The only mechanism for safe-guarding access to private parts is using privately defined structs that are passed around in a form of opaque pointers. Some project use it (PGPphone did, the original SSH did, etc.), some don't, e.g. BSD and Linux kernels.

It's really more of a matter of developers exercising some basic thought when using other people's code. And it just happens so that there's more of them outside of the C++ group than in it.