@TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml • 10 months agoSwitching to OCaml boislemmy.worldimagemessage-square90fedilinkarrow-up1422
arrow-up1422imageSwitching to OCaml boislemmy.world@TheDuffmaster@lemmy.world to Programmer Humor@lemmy.ml • 10 months agomessage-square90fedilink
minus-square@el_abuelo@lemmy.mllinkfedilink14•10 months agoHuh? I’ve worked with TypeScript + React for the last 5yrs and the only time I see OOP is when someone’s done something wrong. Maybe you’re thinking of old react with class based components?
minus-square@toastal@lemmy.mllinkfedilink2•10 months agoProving that adding the class keyword to the ECMAScript spec was a mistake that leads folks down a path they should not travel 🙃
minus-square@el_abuelo@lemmy.mllinkfedilink2•10 months agoI completely agree. I taught JS/TS for 5yrs and I always emphasised that the ‘class’ keyword was just syntactic sugar for what was already available in prototype inheritance of JS.
Huh? I’ve worked with TypeScript + React for the last 5yrs and the only time I see OOP is when someone’s done something wrong.
Maybe you’re thinking of old react with class based components?
Proving that adding the
class
keyword to the ECMAScript spec was a mistake that leads folks down a path they should not travel 🙃I completely agree. I taught JS/TS for 5yrs and I always emphasised that the ‘class’ keyword was just syntactic sugar for what was already available in prototype inheritance of JS.