▲ 363 ▼ Anon died on the "clang format bad" hill (programming.dev) submitted 2 weeks ago by danhab99@programming.dev to c/programmer_humor@programming.dev 544 comments fedilink hide all child comments Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.
[–] SpaceNoodle@lemmy.world 0 points 2 weeks ago (1 child) You just reinvented polymorphism with extra jank. permalink fedilink source parent hideshow 1 child comment replies: [–] TheMightyCat@ani.social 0 points 2 weeks ago* How is it jank to put one utility function in a file somewhere you never need to look at again? That is if you even want to do the assert since if the type doesn't have the method it won't compile in the calling function anyway but since you mentioned the strict check it's fully possible. And why isn't it jank to write virtual, final, and override everywhere and have the entire codebase infested with vtables. permalink fedilink source parent
[–] TheMightyCat@ani.social 0 points 2 weeks ago* How is it jank to put one utility function in a file somewhere you never need to look at again? That is if you even want to do the assert since if the type doesn't have the method it won't compile in the calling function anyway but since you mentioned the strict check it's fully possible. And why isn't it jank to write virtual, final, and override everywhere and have the entire codebase infested with vtables. permalink fedilink source parent