HackerTrans
TopNewTrendsCommentsPastAskShowJobs

crvst

no profile record

comments

crvst
·vor 12 Tagen·discuss
Meanwhile, your counterargument is well supported by data and facts.
crvst
·vor 12 Tagen·discuss
Ah yes, the classic gotcha: why doesn’t the world’s largest economy, spanning a continent, look exactly like a country of 9 million that fits inside West Virginia? Truly a mystery. Next up: why doesn’t the US have Monaco’s per capita yacht ownership?
crvst
·vor 3 Monaten·discuss
Cool story bro. Of course it’s true if it made it to HN. Who needs proofs.
crvst
·vor 2 Jahren·discuss
Virtually every country in this region was drawn up by the British and French with little regard for ethnic or religious boundaries. What are you talking about?
crvst
·vor 2 Jahren·discuss
I'm jealous, then. I've seen all kinds of deranged Rube Goldberg machines built using useEffect
crvst
·vor 2 Jahren·discuss
Plastics are rigid, while rubber (elastomers) is elastic.

You might say this is nitpicking, but not everything that's potentially harmful in its dispersed form is plastic. Asbestos, coal dust, and sand dust are not plastics.

For me, it's like calling any shiny metal 'silver' or calling any clear stone a 'diamond' - they may look similar, but they're completely different materials.
crvst
·vor 2 Jahren·discuss
That’s probably the main real-world use case for useEffect. Dedicated third-party libraries like React Query obviously use useEffect under the hood as well
crvst
·vor 2 Jahren·discuss
That’s true. Just to note, I never claimed otherwise. See, useEffect is an evil remark. This is more based on my experience working with an average React codebase.

As for your question, “Why does everyone suddenly try to use it for spreading butter or peeling eggs?”

I guess part of the reason is that many people rely on older tutorials and patterns where the usage of useEffect was much more tolerated or even encouraged as a catch-all solution. There’s still a lot of inertia from the old componentDidThis/componentDidThat paradigm, with useEffect being its direct replacement.

I feel it is only a recent tendency to finally abandon the overuse of effect hooks.

Just open an average Stack Overflow React question, and you’ll see how many useEffects are crammed in there.
crvst
·vor 2 Jahren·discuss
React is far from performant for SSR, and it simply can’t be, as it wasn’t designed with backend needs in mind. The fact that it works at all is more of a happy accident or side effect. Current approaches are more like workarounds than proper solutions for making it function effectively on servers.

Most importantly, it’s also not particularly performant on the client side in real-world scenarios.

For evidence, here’s a guy testing major websites using his awesome react-scan tool: https://x.com/aidenybai/status/1861442057598062653
crvst
·vor 2 Jahren·discuss
Cannot agree more! Mastering React is ridiculously hard for what it is. There are so many “buts,” “it depends,” and subtle differences to navigate, like useEffect vs. useLayoutEffect. But don't forget useEffect is an evil in the first place and so on, and so on.

It feels like a clever proof of concept with a leaky abstraction at its core, one that no amount of effort can truly fix, no matter how much they throw at it. They’re even building their own compiler. A compiler. For something that’s supposed to represent the V in MVC.

As a SPA framework, it’s questionable. But using React to build server-side apps? That’s beyond absurd for me, it’s like Electron for the backend, only worse. And yet, the industry loves to pretend otherwise, so here we are.
crvst
·vor 2 Jahren·discuss
Yet, it is still not literally a plastic by definition. I feel the term “plastic” is already demonized enough, and now it often serves as a generic umbrella term for alarmist purposes.
crvst
·vor 2 Jahren·discuss
Rubber is not a plastic
crvst
·vor 2 Jahren·discuss
Sorry, it just sounds like a seemingly reasonable and eloquent, yet highly emotional speculation.

“There,” “here,” psychological obliteration—what is this but sciency reasoning, on par with boomers claiming, “Games make kids violent”?

“Your entire whole self is destroyed.” Jeez.
crvst
·vor 2 Jahren·discuss
"Leave the multibillion dollar company alone!"