minus-squarejorp@lemmy.worldtoProgrammer Humor@lemmy.ml•The C++ learning processlinkfedilinkarrow-up1·edit-28 months agoI don’t think it’s what the person you’re replying to meant, but template metaprogramming in modern c++ allows the use of “duck typing” aka “static polymorphism” where you can code against an interface without requiring inheritance. linkfedilink
minus-squarejorp@lemmy.worldtoProgrammer Humor@lemmy.ml•Little bobby 👦linkfedilinkarrow-up1arrow-down2·11 months agodeleted by creator linkfedilink
minus-squarejorp@lemmy.worldtoProgrammer Humor@lemmy.ml•local warzonelinkfedilinkarrow-up4·11 months agoYeah you can tell there are KPIs tied to bonuses causing this. Corporate culture is trash linkfedilink
I don’t think it’s what the person you’re replying to meant, but template metaprogramming in modern c++ allows the use of “duck typing” aka “static polymorphism” where you can code against an interface without requiring inheritance.