timdaub pfp
timdaub
@timdaub.eth
honestly React Hooks and JSX are so fucking annoying. Just let me use god damn JavaScript for fucks sake. All this extra magic with useEffects, new syntax and producing incompatibilities with the regular JS event loop model is soooooo confusing. I now notice because I'm using nodejs a lot where everything is consistent
12 replies
1 recast
5 reactions

timdaub pfp
timdaub
@timdaub.eth
Oh you wanna use localstorage in a React Component. Hold on a second, please first use seven of these esoteric functions in our library to render. Then you render it and it performs like shit. Oh you wanna style a div? 'style="display: block; color: white;"' oh no sorry that won't work please use object syntax WHY?
1 reply
0 recast
1 reaction

timdaub pfp
timdaub
@timdaub.eth
Honestly, this entire arc of moving from regular ass lifecycle component to hooks is the perfect metaphor for everything that is wrong with modern day software development dictated by FAANG. Engineers making 500k salaries without skin in the game producing this crap. They have network but no skills
1 reply
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
When I see that nextjs has a server component where you define server with a template string at the beginning of the function. Burn that shit to the ground and please use the programing language like it was intended. I mean whatever, introduce macros, like do the painful thing and standardize it!
2 replies
0 recast
1 reaction

timdaub pfp
timdaub
@timdaub.eth
"son r u winning?" no dad, Meta hired some god damn academics that introduced ES-incompatible functional programming into react and so now when I use a regular ass web API, I need to be aware of useEffect and state management in react.
2 replies
0 recast
1 reaction

Greg pfp
Greg
@greg
I often yoink hooks from this lib to save myself the frustration of building it myself https://usehooks-ts.com/react-hook/use-local-storage
1 reply
0 recast
1 reaction

notdevin  pfp
notdevin
@notdevin.eth
The hardest part for my newbie ass to figure out is that there are 101 different abstracted ways to do a thing and at no point is it clear what is or isn’t required and what does or doesn’t play nice together. What was the advantage of trading verbosity from Java for abstracted indifference?
0 reply
0 recast
0 reaction