367

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.

you are viewing a single comment's thread
view the rest of the comments
[-] Wirlocke@lemmy.blahaj.zone 7 points 9 hours ago

If you don't prematurely optimize your code you'll never optimize your code.

I know people are advised against premature optimization because it risks you wasting time on something that ends up unused.

But let's be honest, once you get something into a working state will you ever be afforded the time to go back to it? Even if you are, are you really gonna choose to uproot code and do a refactor on it and potentially everything relying on it?

Rather than waiting until your hacks and workarounds run out and you absolutely have to do a refactor, I would prefer spending more time upfront to make sure it is efficient and flexible before moving on.

this post was submitted on 25 Oct 2026
367 points (95.1% liked)

Programmer Humor

33809 readers
1539 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS