3 ms·
As an example, SDL is a large C codebase that employs a very OO paradigm, and I find its APIs very well organized. When I was (or am) coding C, a lot of the OO
by deathanatos 11y ago
As an example, SDL is a large C codebase that employs a very OO paradigm, and I find its APIs very well organized.
When I was (or am) coding C, a lot of the OO principles helped me write better C code, as I understood better what the higher level constructs that I was working with was. (i.e., if there's a base class among essentially hiding among my structs that should perhaps be pulled out into a separate struct; do I need a vtable, or perhaps function pointers on the struct; how is a struct initialized, and how is it destructed, etc.)