News for hackers. Stuff that matters.
Re:Technical Debt: Why it'll ruin your software by asiachick on Friday October 23, 2020 @02:43PM (#24872504)
I'd call React and Redux both massively over engineered. There's a ridiculous amount of lines of code being executed to do the simplest of things. You do something like `a.b = c` and really `a` is a proxy so that setting `b` the setting gets tracked going through 100+ lines of code all of which has tracking structures that get setup and torn down between components. They claim this will make your life easier but when the facade breaks you end up having to design your entire app around the fact that `a.b = c` is not simple, it's complex and so you have to avoid it as much as possible my piling on more complexity.
Re:Technical Debt: Why it'll ruin your software by danenania on Friday October 23, 2020 @03:06PM (#24872724)
A simple react/redux app is definitely much harder to understand than a simple vanilla js app. But a large, complex react/redux app is far easier to understand than 99% of large, complex vanilla js apps.
Re:Technical Debt: Why it'll ruin your software by yoz-y on Friday October 23, 2020 @02:59PM (#24872670)
All GUI frameworks hide a lot of what’s happening in the insides. There is a scale to it but personally I think that reasoning about a “reactive” program is quite easier than untangling a ball of callbacks written in say, GtK.

Reactive frameworks indeed hide a lot of complexity but that does have positive impact on the user code. (IMO)

Re:Technical Debt: Why it'll ruin your software by barryhoodlum on Friday October 23, 2020 @07:33PM (#24875532)
Neither React or Redux use proxies or setters at all. Are you thinking of a different framework?
Re:Technical Debt: Why it'll ruin your software by asiachick on Saturday October 24, 2020 @04:06AM (#24877698)
some lib recommended to remove all the redux boilerplate of react, uses proxies. It's mostly irrelevant though, the point is there's too much code running to do what should be simple things.