Re:Object-Oriented Programming in C (2019) [pdf]
by LAC-Tech on Sunday September 05, 2021 @02:08AM
(#28421965)
I'm an OO programmer, and I avoid using classes in C++. The happy path seems to be to treat at C with STL + smart pointers, not C with classes.
[ Parent
| on HN ]
Re:Object-Oriented Programming in C (2019) [pdf]
by ahartmetz on Sunday September 05, 2021 @11:16AM
(#28424943)
About OO: Bundling data and behavior is a fine technique in some situations, nothing wrong with it. Sometimes, even inheritance makes sense.
Re:Object-Oriented Programming in C (2019) [pdf]
by ncmncm on Sunday September 05, 2021 @04:48AM
(#28422582)
If you are not using classes, you are not using OO at all, by definition.
That does necessarily not mean you are programming badly, although you might be. But restricting yourself to STL and smart pointers does very strongly resemble Java Disease. You might as well switch to Java.