News for hackers. Stuff that matters.
Re:Why is modern web development so complicated? by ng12 on Wednesday August 07, 2019 @05:11PM (#20639126)
> Someone else mentioned SPAs. I 100% guarantee that no user in the world ever wished for their “back” button not to work as they expected.

This opinion invalidates the rest of your post. If you lack a fundamental understanding what people are building obviously it seems overcomplicated.

Re:Why is modern web development so complicated? by asark on Wednesday August 07, 2019 @05:59PM (#20639588)
> If you lack a fundamental understanding what people are building obviously it seems overcomplicated.

Hi. I have a fundamental understanding of what people are building. Most of it's overcomplicated and the "web app or not?" decision's very often made due to hype, résumé padding, or making a project look more impressive to other internal folks. Some of it's justifiable as a "webapp" is truly a decent choice but still usually performs worse than is reasonable, indicating overcomplication under the hood—look at various Google "webapp"s performance dropping steadily over the years as features remain similar or drop off, and that's not even comparing them to older non-webapp incarnations which are universally much snappier (though usually missing some features, to be fair).

Re:Why is modern web development so complicated? by ng12 on Wednesday August 07, 2019 @06:20PM (#20639805)
You think an _entire industry_ has been built up around a desire to pad resumes? I don't even know how to respond to that.
Re:Why is modern web development so complicated? by asark on Wednesday August 07, 2019 @06:38PM (#20639949)
No, web development overall hasn't. Web apps specifically are largely fad-chasing vanity (manager, organizational level) or that, yeah. Which is cool because there's all kinds of dumb money flying around for them now—that part's been amazing. But it's not serving users well. Peacock feathers.
Re:Why is modern web development so complicated? by ng12 on Wednesday August 07, 2019 @06:42PM (#20639982)
So a thing nobody wants or needs became extremely commonplace because JS devs (and only JS devs, I guess the Java guys have yet to discover this) realized they could invent some new frameworks and managers would gladly pay six-figures a head for them to play around with it?
Re:Why is modern web development so complicated? by asark on Wednesday August 07, 2019 @07:11PM (#20640185)
I don't think the JS devs drove it, at least not primarily. I think they're largely eager to exploit the enthusiasm of others (and probably they should be) and I've seen it happen. I do think it's peculiar to the web. Most other GUI app ecosystems are content not to invent their own visual vocabularies over and over or twist every mundane little program or UI element into an "experience", for instance—I think that has something to do with it. It's the set of norms and (self-imposed, to a significant extent) expectations of the web, of the fear of "falling behind" (see again: peacock feathers). I think the background of the Web in bespoke brochure-type graphic design and marketing has an absolute ton to do with it.

I think a lot of the cost has to do with the underlying tech not really being that great for what it's being made to do, in concert with everyone feeling the need to try to be special in even the tinies little looks and behaviors. It's also where a lot of the audience is so will tend to experience oddities like this more exaggeratedly than other fields.

Your manager or project owner or whoever says "we want a webapp" are you gonna stick your neck out and argue against it? "But it's what google's doing", "but Gartner", but whatever. It's cheaper! OK, sure, here's my bill. It's absolutely follow-the-leader behavior, damn the cliff. And it works well enough that it does get the job done, eventually. It's just not necessarily doing the users any favors, or your bottom line.

Decision makers do strange stuff all the time because they think it makes them look better—and, to the extent and in the way they expect it to, they are probably right more often than not. This is just one example. Whole world's run by guesswork, personal quirks of taste or incentive, and blame-avoidance (follow the trends), more than anything else, from what I've seen. It's just people, running around doing funny people stuff, hoping no-one calls their bluff.

[EDIT] actually, look at Java Applets and, more so, Flash. Folks hated the way lots of those were used, but the worst and least-justifiable uses of them happened anyway, for a long time, because managers wanted the bling. That was, seriously, it. And developers went "oh sweet I can add Flash 5 and Actionscript to my résumé, I've been wanting to play with that". That's exactly what happened then. This is exactly the same thing, just much bigger. And in both cases sometimes the tech was used well.

Re:Why is modern web development so complicated? by ng12 on Wednesday August 07, 2019 @07:23PM (#20640277)
> Your manager or project owner or whoever says "we want a webapp" are you gonna stick your neck out and argue against it?

The question is: what are you going to argue for instead? Not using the web at all is a non-starter, especially in the retail space where you'd get killed by a web-based competitor.

I don't know what your experience is, but historically my bosses haven't given half of a damn what tech stack I use. They care that I deliver on what I promise. Hypothetically, I could still be using PHP/HTML/jQuery but there are a great many reasons I don't and not one of them has to do with padding my resume.

Re:Why is modern web development so complicated? by asark on Wednesday August 07, 2019 @07:37PM (#20640368)
I mean SPAs and near-SPAs. "Web apps". Web sites as in mostly server-rendered sites with HTML, CSS, and some JS sugar on top could sub in for an awful lot of "web apps" and improve UX, performance, maintainability, and development cost.

[EDIT] incidentally I notice you keep arguing against things I've not actually written.

Re:Why is modern web development so complicated? by ng12 on Wednesday August 07, 2019 @08:07PM (#20640559)
It's because I've been trying very hard to understand what your contention is. The bits about peacocking and resume-padding are... unconvincing.

> ...improve UX, performance, maintainability, and development cost.

I don't buy it at all. As mentioned, I've done both professionally and there are reasons I keep picking React (or a hybrid ala Next) that don't involve a bigger paycheck or "peacocking".

Re:Why is modern web development so complicated? by asark on Wednesday August 07, 2019 @10:57PM (#20641442)
It's usually companies or management/product folks paying for their product to have the peacock feathers. See also: flat/material redesigns not to improve usability—in fact it may make it worse—but to avoid "looking old", not because users complained or metrics look bad but because someone with a budget guesses maybe they might. Similar with choices to make fairly simple sites into heavy SPAs with questionable performance.

> It's because I've been trying very hard to understand what your contention is.

I appreciate it. Seriously!

Re:Why is modern web development so complicated? by wolco on Wednesday August 07, 2019 @07:52PM (#20640453)
It's a filter during interviews to filter out the older candidates with a different culture.

Bootcamps are something that grows out of this desire to pad your resume with newer tech.

Re:Why is modern web development so complicated? by buboard on Wednesday August 07, 2019 @09:44PM (#20641077)
sorry, but if a front end interface is not easily understood, it is bad. its entire purpose is to have usability attributes, like predictability. SPAs break back buttons , new tab buttons, scrolling positions etc, the most basic stuff of web navigation
Re:Why is modern web development so complicated? by buzzerbetrayed on Thursday August 08, 2019 @01:31AM (#20642091)
I think SPAss are much like special effects in movies: You only notice them when you bad.

I build SPAs as part of my job. Good SPAs do not break the back button. Insisting they do is silly.

Re:Why is modern web development so complicated? by buboard on Thursday August 08, 2019 @08:24AM (#20643818)
Can i middle-click open in new tab in your app?
Re:Why is modern web development so complicated? by Stoids on Thursday August 08, 2019 @10:11AM (#20644727)
Yes, almost any routing library will expose a Link component wrapper that properly sets those attributes.
Re:Why is modern web development so complicated? by azernik on Thursday August 08, 2019 @04:13PM (#20648186)
Chiming in with "yes". When you can't, it's a bug; routing frameworks like e.g. react-router render to normal HTML, and only intercept left-clicks to override default browser behavior for those specific actions.