@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 days agoThe meaning of thislemmy.mlimagemessage-square62arrow-up1513
arrow-up1513imageThe meaning of thislemmy.ml@bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish • 2 days agomessage-square62
minus-square@xiii@lemmy.worldlinkfedilink6•edit-219 hours agoI was working on a C code base with classes, inheritance, and polymorphism, all done by hands and macros. Something like typedef struct s_some_class { void (*method)(this *s_some_class); } t_some_class; Overall, learning C was the best enabler in my whole career. For instance I was learning Python by tinkering with CPython VM, so when I see these ‘WAT’ quircks I know exactly what’s up.
minus-square@bestelbus22@lemmy.worldOPlinkfedilink2•18 hours agoInteresting, how did they do inheritance? Something like void *super? Also why not switch to CPP if you wanna do OOP?
I was working on a C code base with classes, inheritance, and polymorphism, all done by hands and macros.
Something like
Overall, learning C was the best enabler in my whole career. For instance I was learning Python by tinkering with CPython VM, so when I see these ‘WAT’ quircks I know exactly what’s up.
Interesting, how did they do inheritance? Something like
void *super
? Also why not switch to CPP if you wanna do OOP?