by Jormundir · 13y ago · 0 comments
In your attack on my comment, you're starting to argue against something I'm not talking about or implying.
Good abstractions and code structure are created in a large part by being very careful about what's public. Defaulting to public helps a programming process that tends to ignore abstraction and structure, leading to heavy maintenance costs later. There's really no argument here, this is best practices established decades ago. It's fine to challenge establishments with new findings, but I find this article and your comments completely brain dead and unproductive because you're just lacking understanding of core principles.
class Foo {
public:
stuff;
private:
other stuff;
};
What's the point of private-by-default if everybody overrides it anyways?