News for hackers. Stuff that matters.
Re:React has grown beyond its original promise and it's caus... by ZephyrBlu on Friday February 09, 2024 @04:36AM (#39313130)
> I dunno, I used Redux for a few years, and it was a "pretty tedious and error-prone amount of work in complex web apps" too.

This makes no sense. Redux is extremely simple with a very small API. If the code using it is tedious and error-prone, that's the fault of the people who wrote that code not Redux.

E.g. "everything must be an action and have an associated reducer" is nothing to do with Redux itself.

Re:React has grown beyond its original promise and it's caus... by Sammi on Friday February 09, 2024 @04:43AM (#39313172)
Is this a parody?

Redux splits things up that belong together. Redux makes you write more code. Of course it's more complex.

Even it's creator advised that you probably don't need it.

Re:React has grown beyond its original promise and it's caus... by ZephyrBlu on Friday February 09, 2024 @05:30AM (#39313423)
> Even it's creator advised that you probably don't need it.

This is my whole point. Redux in itself is not complex. The elaborate flows people create with it are complex.

It's not Redux's fault that you're using it when you shouldn't be.

Re:React has grown beyond its original promise and it's caus... by Sammi on Saturday February 10, 2024 @07:44AM (#39325779)
Store, selector, reducer, dispatch, action...

Redux is concept overload. It's abstractions on top of abstractions on top of abstractions...

It makes simple things complex.

Re:React has grown beyond its original promise and it's caus... by coldtea on Friday February 09, 2024 @05:06AM (#39313307)
If you liked Redux, you'll love the old J2EE!