Live Q&A - OOP in C
Nathan Jones - Watch Now - Duration: 23:54
09:35:14 From Nathan O. : How to handle abstraction (like opaque struct or singleton) when writing unit tests ? If I want to write unit tests for the Duck module, I need access to its internal functions. 09:39:33 From Quantum Leaps : Actually, Jean Labrosse *uses* classes and inheritance in his uC/OS design. But it would be better if these design patterns were called out explicitly. 09:40:50 From Julian : In your experience teaching oop c. Is the learning courve too steep for a team who is writing not oop c? 09:41:47 From Quantum Leaps : I'm glad to see OOP in C discussed and popularized among embedded developers. 09:45:26 From Levy Gabriel : Do you know any famous project that uses OOP in C? I consider Linux kernel as an excellent modular code, but can we call that OOP in C? 09:47:01 From Chris Williams : In your opinion is it still worth looking into OOP in C for a project that doesn't allow dynamic memory management, static allocation only? Specifically looking for better project organization, separation and reusability of patterns across a large code base. Can this be achieved at build time? 09:50:12 From Quantum Leaps : The question should be reversed: Is it possible to build a bigger project and call it well organized *without* elements of OOP? 09:52:30 From Quantum Leaps : For static object allocation, the attribute structs need to be exposed, but this is not a big problem. 09:53:59 From Stephane : Thank you Nathan! 09:54:02 From Julian : Thanks! 09:54:11 From Chris Williams : Thank you! 09:55:24 From Alberto Bonetti : Thanks!