News for hackers. Stuff that matters.
Re:React is a fractal of bad design by weatherlite on Wednesday March 08, 2023 @06:47AM (#35067871)
> It's easy to hire people, onboard people

Yes they'll know the React part. It's the Redux/Mobx/React Router/whatever snowflake libraries you chose part that will be more difficult. I really don't like incomplete solutions personally.

Re:React is a fractal of bad design by amrocha on Wednesday March 08, 2023 @09:19AM (#35069221)
Well, don't use those. Pure React is enough 95% of the time, and then an additional 4.9% can be handled with jotai in a couple of places.

React + GraphQL + jotai is my preferred stack

Re:React is a fractal of bad design by aelzeiny on Wednesday March 08, 2023 @10:45AM (#35070395)
> Don't use those...then an additional 4.9% can be handled with jotai...

Needing Jotai on top of React's defacto state management is the issue. TFA talks about an ecosystem of libraries that attempt to fix React's shortcomings. Pure React does have undeniable shortcomings like proper, non-brittle routing.

Re:React is a fractal of bad design by amrocha on Wednesday March 08, 2023 @12:19PM (#35071824)
I agree with you about routing. Something so core about building web apps should be treated as a first class citizen of the ecosystem.

I don't think jotai adds a lot of complexity though, and like I said most of the time you don't need it. It just makes syntax a bit nicer to read and write, but you could do it with context if you really wanted to.

Re:React is a fractal of bad design by NayamAmarshe on Wednesday March 08, 2023 @02:13PM (#35073419)
Jotai is literally like a single file.

Here's a video on how to use Jotai by writing your own in minutes: https://youtu.be/gg31JTZmFUw

Re:React is a fractal of bad design by sa46 on Wednesday March 08, 2023 @05:02PM (#35075359)
Jotai may be small and focused, but is definitely not a single file: https://github.com/pmndrs/jotai/tree/main/src/
Re:React is a fractal of bad design by NayamAmarshe on Thursday March 09, 2023 @02:12AM (#35078960)
Yes, sorry my bad, the project isn't a single file. I was just talking about the implementation.
Re:React is a fractal of bad design by alvarlagerlof on Thursday March 09, 2023 @07:00AM (#35080401)
They intentionally didn't provided that to let the ecosystem explore different solutions.
Re:React is a fractal of bad design by jdmg94 on Wednesday March 08, 2023 @12:32PM (#35072024)
Its all about preferences, I tend to prefer seasoned devs who have had the chance to try different things and form their own opinions. Someone who has relied on framework magic they don't understand through their careers tend to be less resilient to change
Re:React is a fractal of bad design by weatherlite on Wednesday March 08, 2023 @03:26PM (#35074294)
Why do you assume they do not understand the single framework "magic" yet others do understand React's ecosystem?
Re:React is a fractal of bad design by Zealotux on Thursday March 09, 2023 @04:29AM (#35079650)
>Redux/Mobx/React Router

All of these libraries are standard and easy to approach; when I was freelancing, my onboarding on React projects was incredibly quick, and I pushed bug fixes and features within the first few hours of joining a project. React's productivity boost is often overlooked; most developers should easily understand a fairly well-written React component connected to a Redux store.