4 ms·
Small thought from someone that's spent lots of time messing with embedded C. I feel like classic OOP is a mistake because you're binding data objects with fun
by Gibbon1 4y ago
Small thought from someone that's spent lots of time messing with embedded C.
I feel like classic OOP is a mistake because you're binding data objects with functional objects. The latter being a collection of functions that performs operations on the former.
If you break them up you can have multiple widgets for dealing with a data object. Each of them with whatever dependencies they need and nothing else. I feel like this style of programing has become more important because it fits in the the idea of computing as an assembly line. Passing data through a data pipelines. Steps which often happen on different processes or machines.
Dependency injection is also really really useful for clean C code.