7 ms·
Yes, OOP is hard to do right. It's not helped by examples and schools largely teaching from real world nouns. Most people in OOP languages are writing procedu
by bcrosby95 16d ago
Yes, OOP is hard to do right. It's not helped by examples and schools largely teaching from real world nouns. Most people in OOP languages are writing procedural code.
For all these reasons I just skip it. I still use OOP languages, but I leave the OOD at the door.
For what it's worth, you can get all that with plain old C. Declare structs up front. Allocate them all as pointers. The C file is the class, and has the actual definition of the structs.
Strangely enough, in a sense, OOP languages makes it harder to do this than in C. Not that C doesn't have other flaws.