5 ms·
I think we can actually blame React and similar frameworks for the issues we see in many modern apps, including the ones mentioned in the article. Part of the
by johnday 7y ago
I think we can actually blame React and similar frameworks for the issues we see in many modern apps, including the ones mentioned in the article.
Part of the issue stems from the "strong data coupling" that's all the rage. Everything on the page should correlate at any given point in time. Add a character to a search box and the search results should be updated. The practical effect of this is that any single modification could (and often does) rewrite the contents of the entire page.
The other thing the article brings up is that developers and designers often disregard input flow. This may be partly driven by not having sufficiently dynamic tooling (Illustrator can hardly be used to design out flow patterns, for example.)
These two issues have a unifying quality: Websites must be "instagrammable", which is to say look good in single snapshots of time, and the dynamics take a serious back seat.
- reidjs 7y agoIf the devs use SSR and code splitting and whatnot loadtime isn't so bad. But yea these frameworks get abused because everyone wants to stay competitive and make a decent salary
- proc0 7y agoYeah but React's popularity is because there is demand and expectations for interactive UIs with tons of features that are taken for granted. Users expect basic amount of interactivity and usability that adds a ton of complexity which React offers a good model for.
- roenxi 7y agoI feel that, for a discussion on a site with the minimalistic design of HN, the demands of that sort of user are sufficiently foreign that you need a citation. Not because I particularly doubt that expectations on the wider web are different to HN. Just that the crowd here isn't going to be able to easily understand the people out there. Anyone who expects interaction was weeded out long ago.
- TeMPOraL 7y agoI think the core point missed by some people on HN and in dev circles in general is that non-tech people don't expect shit. They accept what they're given, mostly unquestionably, because they don't know any better and couldn't know any better. It's not their domain. To get meaningful answers about what kind of UI people prefer, you'd have to sit a lot of them in front of several different interfaces, show them around, and then let them use those interfaces for prolonged amount of time, and then - only then - ask which one they prefer. But this almost never happens in the wild, so the market is completely detached from what people want.
- bryantraywick 7y agoUhh,no. Reacts popularity is because of lazy devs that only know JavaScript and want to use it everywhere. Large companies want to have have one "unified" codebase that runs on all "platforms". It has nothing to do with interactivity or usability because if it did then developers would write native apps with native UIs with much better interactivity, usability, and performance.
- mc3 7y agoUhh,no. React is popular because devs HAVE to use JS & DOM to do web development in the browser, and they want speed, and to use a library endorsed by a big company. And some of those devs (like me) prefer the unidirectional / function paradigm.
- ScottFree 7y ago> and they want speed They won't get it with React. And I'm referring to both how fast the webapp runs and development speed. It gets too complicated too quickly, even for relatively small sites.
- mc3 7y agoWhether or not it seems complicated depends on if you have nailed down the mental model. It's a bit like Git, in that respect.
- ScottFree 7y agoComplexity is a very real and objective thing. When you can't 100% guarantee your program won't go into an infinite loop when you change a single line, it's too complex.
- mc3 7y agoI don't know of any infinite loop problems in React. I would think they are less likely than using MVC / JQuery style patterns.
- cellularmitosis 7y ago> any single modification could (and often does) rewrite the contents of the entire page. I thought the entire point of react was that it _doesn’t_ rewrite the entire page (DOM diffing)?
- johnday 7y agoI said that it rewrites the contents of the entire page, by which I mean ~100% of the things visible to the user may change.