Comment on Anon tries programming in Java

<- View Parent
LH0ezVT@sh.itjust.works ⁨1⁩ ⁨week⁩ ago

The Linux kernel actually uses quite a bit of OOP ideas. You have models that are supposed to have a clear interface with the rest of the world, and they (ab)use structs to basically work like objects. If you try hard enough, you can even do “inheritance” with them, like with their struct kobject. It is actually somewhat well-thought-out, imo. No need to go full OOP, just pick some of the good parts, and avoid the MappingModelFactoryServiceImpl hell or the madness that is C++.

source
Sort:hotnewtop