News for hackers. Stuff that matters.
Re:Why is modern web development so complicated? by goatinaboat on Wednesday August 07, 2019 @04:16PM (#20638460)
Webdevs tend to suffer from an inferiority complex, that they are not considered “real” developers by the rest of the community. So they have responded by making the simple things they do monstrously complicated to try to prove something to the C++ guys, who simply don’t care, until they try to use the dumpster fire that is any modern website, that is. Then it has the opposite of the intended effect!

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.

Calling themselves “full stack engineers” is another symptom of this.

Re:Why is modern web development so complicated? by Jach on Wednesday August 07, 2019 @05:36PM (#20639386)
I might have agreed the inferiority complex existed in the early 2000s, but I don't see it anymore. Rather I think the negative thoughts go the other way, maybe not inferiority from non-webdevs, but jealousy. You can find n00bs who graduated a coding bootcamp and are now making a significantly larger amount of money doing webdev stuff than a bunch of middle aged guys working on legacy native applications who studied the arcane C++ arts and had to get a BS degree to even get an interview.

I'm playing contrarian here a bit, so excuse the unqualified language. It seems these days anyone who isn't a webdev in some capacity* is probably a dinosaur, inflexible, less well-paid, lacks understanding of complex distributed systems, and in any case is irrelevant in the modern conversations around development. Might makes right, after all, there are vastly more webdevs than non-webdevs and the most valuable software companies make their money from distributed systems interfaced with via web browsers... The notable exception is probably the group of native mobile application developers, but that's only become more and more webdev-like since both the iPhone and Android took over, rather than the reverse.

* Even being back-end only for a back-end whose only front-end is web-based. Yeah I am conflating webdev beyond the post's qualified "front-end developer". But the back-end webdev guys get up to the same overly complicated architecture-astronaut crap we like to complain about the front-end webdev guys getting up to. Don't let me go off on J2EE/JavaEE/Spring.

Re:Why is modern web development so complicated? by temac on Wednesday August 07, 2019 @06:27PM (#20639869)
I'm not sure you understand the amount of embedded software that runs the world -- or at least think about it appropriately.

And the amount of system and infra software that is needed to even let the web exist.

An "application" is not just a cute GUI that a consumer or an office worker can interact with. Nor is the interface the most complicated parts in some systems. I found your projection and generalization as ridiculous as if you said: even the EE needs to master the web technology, and they are not very valuable if they don't.

Hey, they are web devs of various levels. It is ok to be one, especially a good one. It is also ok to be, I don't know, a compiler expert, a kernel hacker, a baseband FW engineer?

The thing is: you often forget about what works pretty much correctly and silently, even when you use it all-day long... :P

Re:Why is modern web development so complicated? by Jach on Wednesday August 07, 2019 @07:31PM (#20640328)
I didn't forget about them (my own degree is in CE) and did say I was being somewhat contrarian... And started off impugning on the notion of jealousy (possibly driven by economic value -- I'm not making professional use of my CE degree in part due to $$$) rather than inferiority or even competence in those who stir up the "ugh webdevs am I right?" rhetoric. We probably don't disagree much on the value of people, generally speaking, or the lack of recognition of types of excellence including all the great volunteer work going on in free and open software.
Re:Why is modern web development so complicated? by tim333 on Thursday August 08, 2019 @09:36AM (#20644399)
I think C++ guys make more on average. eg https://www.cwjobs.co.uk/salary-checker/average-front-end-we... vs https://www.cwjobs.co.uk/salary-checker/average-c++-develope... (UK data, 37k vs 57k but I think it's similar elsewhere)
Re:Why is modern web development so complicated? by onorton on Thursday August 08, 2019 @11:58AM (#20645693)
Keep in mind that those samples are tiny and C++ devs probably skew to more senior roles based on the age of the language alone.
Re:Why is modern web development so complicated? by Karawebnetwork on Wednesday August 07, 2019 @05:37PM (#20639407)
> Webdevs tend to suffer from an inferiority complex

Well, that sure is an arrogant way to present stereotypes as fact. At first, I read this as satire.

You can follow the history of web development and see exactly why the current stack is as it is. It's people building solutions to problems.

For example, nobody thought "I should create a front-end build process to impress my peers!". What happened instead is that repetitive tasks were programmed out of existence.

The web industry is young, you can trace every single steps of it without much research. To claim something as ridiculous as "responded by making the simple things they do monstrously complicated to try to prove something to the C++ guys" is silly at best.

Sure, this may be accurate for some of the junior devs. you worked with in your career. However, this is not representative of the industry as a whole.

Re:Why is modern web development so complicated? by goatinaboat on Thursday August 08, 2019 @01:31AM (#20642093)
You can follow the history of web development and see exactly why the current stack is as it is

I have lived this history of web development. I remember when CGI was new and exciting. Now I see modern sites using literally thousands of times the memory and CPU to struggle to do things that were trivial even back in the 90s on a 486 with 8Mb RAM.

A typical document, say a news story might be 2kb-5kb in size. Why does the page need 5Mb of JS to deliver and display it?

So I am 100% confident in my assertion that the web as it is today is massively and needlessly over complicated.

Re:Why is modern web development so complicated? by Raphmedia on Thursday August 08, 2019 @10:34AM (#20644959)
It seems to me that you are describing click-bait blogs and the work of junior trend-driven developers. I have worked with plenty of clients who actually needed SPAs. Custom CRMs and ERPs, etc.

The quality front-end developers are not the ones who make small blogs or small corner store websites. It's agency developers working on huge projects. Those projects have big budgets on optimisation and page speed.

Switch your gmail account to Basic HTML (https://support.google.com/mail/answer/15049) and see how the SPA version isn't any slower but in fact much more pleasant to use.

"The web" isn't an entity. It is a network of websites and applications. Some of them are slow and over-engineered and others are bloated excuses to display adverts. I can assure you that every single front-end developer I have worked with understood those issues and pushed for the right technologies.

Re:Why is modern web development so complicated? by Santosh83 on Thursday August 08, 2019 @08:50AM (#20644001)
You're right about the document sizes exploding but I think the real reason is the suits swooped down when they found that mere hyperlinked documents could actually be monetized into profitability. The rest is history. 4.4Mb for those 5Mb per news article is javascript that exists for ads and tracking, which in turn exist for monetizing.
Re:Why is modern web development so complicated? by buboard on Wednesday August 07, 2019 @09:40PM (#20641065)
> It's people building solutions to problems.

It most definitely doesn't seem so. People build multiple solutions to nonexistent problems, or problems that are only relevant to google (which classifies them as nonexistent problems for everyone else). Then they push those solutions where they don't fit (e.g. SPAs for blogs)

Re:Why is modern web development so complicated? by Accacin on Wednesday August 07, 2019 @04:41PM (#20638783)
Really? No C++/C/Python developers ever over-engineer anything?

I mean, you only need check out all the vulnerabilities in said C++ software for verification of that fact :)

I think what you're trying to say is that you don't consider 'webdevs' to be "real" developers.

Re:Why is modern web development so complicated? by goatinaboat on Wednesday August 07, 2019 @04:45PM (#20638825)
I consider people getting real work done, without caring what anyone else thinks of their chosen tech, even in Excel VBA to be just as “real” as anyone.
Re:Why is modern web development so complicated? by Accacin on Wednesday August 07, 2019 @04:50PM (#20638895)
To be honest, even if you appear a little 'elitist', I agree with your basic premise in that it's overly complicated for little reason and I do hope that one day we come to our collective senses.

I however disagree with the fact that I'm not a developer, and although I do it professionally I have little interest in the web outside of work.

Re:Why is modern web development so complicated? by fma on Wednesday August 07, 2019 @04:39PM (#20638749)
Backend dev here. I tried to create a simple Angular app. I got into some kind of dependency hell on something simple. Going from Angular 7 to 8 broke some junk? Then trying to get Angular Bootstrap to work was hellish as well, especially when some kind of polyfills junk screwed up for IE.

Ended up just linking to it directly to the jquery and bootstrap CDN...

It's been a long time since I did any kind of major front end work. I think it will stay that way. I don't do enough work with it long enough to really "get it" and retain it.

Re:Why is modern web development so complicated? by djstein on Wednesday August 07, 2019 @06:44PM (#20639997)
sorry you felt that way.unfortunately you dealt with the shit-show that is Angular + TypeScript, which is not beginner friendly AT ALL. I would ask you try using create-react-app, https://facebook.github.io/create-react-app/, and drop jQuery. JS is really awesome now and everything that was "in" jQuery can be achieved through standard library.
Re:Why is modern web development so complicated? by vcanales on Wednesday August 07, 2019 @05:25PM (#20639272)
Well, choosing the right tool for the job is part of being any kind of developer. If you could solve the problem with no framework/lib/state manager, why go that way? The fact that those tools exist doesn't mean you _have_ to use them.
Re:Why is modern web development so complicated? by icholy on Wednesday August 07, 2019 @08:33PM (#20640724)
The problem is that there are 100 different tools and they're all hot garbage.
Re:Why is modern web development so complicated? by PunchTornado on Wednesday August 07, 2019 @05:24PM (#20639259)
good, just leave the complex angular stuff for the frontend dev, the real engineers.
Re:Why is modern web development so complicated? by _bxg1 on Wednesday August 07, 2019 @04:40PM (#20638762)
> to prove something to the C++ guys, who simply don’t care

Pahahahahahaha. There is no group in our industry with a bigger chip on their collective shoulder than "C++ guys".

Re:Why is modern web development so complicated? by commandlinefan on Wednesday August 07, 2019 @04:45PM (#20638833)
> they are not considered “real” developers by the rest of the community

Well, a lot of them aren’t - until recently, a lot of front-end developers were actually graphic artists who were more skilled in photoshop than software development (not to knock that skill, it’s a useful one!). It doesn’t help that 23-year-old MBA “unicorn startup” founders have bought into this pipe dream model of software development where a couple of eggheads in the unlit server room develop algorithms that the $10/hour mcweb-developers cut-and-paste into beautiful templates.

Re:Why is modern web development so complicated? by crispinb on Wednesday August 07, 2019 @05:18PM (#20639193)
Well I'm not primarily a web developer, but I've worked alongside many. This neither describes any of them, nor would it be tolerated (or even possible to pull off) in any workpace I've seen. Self-puffery is admittedly endemic to contemporary tech/con-preneurism, but this is a quite ludicrous 'explanation' of a complex reality.
Re:Why is modern web development so complicated? by root_axis on Wednesday August 07, 2019 @05:12PM (#20639142)
Masterfully condescending. I also appreciate the dig at JS via C++, which is perhaps the most complex programming language still widely used in the industry.
Re:Why is modern web development so complicated? by lghh on Wednesday August 07, 2019 @05:29PM (#20639318)
> So they have responded by making the simple things they do monstrously complicated

This is funny because C++ used to be considered a shining example of this. Software is a flat circle.

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.
Re:Why is modern web development so complicated? by jjbiotech on Wednesday August 07, 2019 @04:30PM (#20638632)
Mangling back button functionality isn't inherent of SPAs.
Re:Why is modern web development so complicated? by nfgu on Wednesday August 07, 2019 @05:13PM (#20639149)
Funny thing: in the last couple years I've seen way more back buttons broken because of backend idiossincrasias than anything else.

It is super common to see "Don't use your back button" messages after placing orders on e-commerce websites.

On the other hand, most frontend developers writing SPAs just use react-router or something like that (instead of reinventing the wheel) and it just works.

Re:Why is modern web development so complicated? by ehutch79 on Wednesday August 07, 2019 @05:28PM (#20639309)
It's not....

Yet there was a post about how specifically to do that on dev.to because their users couldn't tell their modal was a modal, and the solution they came up with was to hijack the back button.

Re:Why is modern web development so complicated? by emsy on Wednesday August 07, 2019 @04:40PM (#20638759)
Also, most websites are hardly applications.
Re:Why is modern web development so complicated? by renke1 on Wednesday August 07, 2019 @04:30PM (#20638637)
Who is considered a "real" developer these days?
Re:Why is modern web development so complicated? by relativeadv on Wednesday August 07, 2019 @05:29PM (#20639322)
The person who is writing their own game engine and doing everything from the ground up. They haven't shipped anything yet. They're five years into this with a few more to go.
Re:Why is modern web development so complicated? by wolco on Wednesday August 07, 2019 @07:54PM (#20640468)
With kickstarter campaigns and medium blog insights.
Re:Why is modern web development so complicated? by goatinaboat on Wednesday August 07, 2019 @04:34PM (#20638680)
Developers who don’t care if anyone thinks they’re real developers, I guess!
Re:Why is modern web development so complicated? by renke1 on Wednesday August 07, 2019 @04:43PM (#20638800)
For what it's worth, I can confirm that a lot of backend developers look down to frontend developers, but if you dig a little deeper you often (not always) see that frontend development is simply intimidating to them and they rather stick to what they know. At least in my country/region this leads to a lack of good frontend developers; good developers being those that apply well-known and established (backend) practices to the frontend.
Re:Why is modern web development so complicated? by my_usernam3 on Wednesday August 07, 2019 @07:53PM (#20640462)
> good developers being those that apply well-known and established (backend) practices to the frontend

100% agree with this. From my experience good front end developers are much harder to come by in silicon valley. We use a general coding interview process, and really struggle finding experienced front end developers because its a hard position.

When I have to touch javascript, I break everything, beg for help, then run back into my enterprise java code. This elitist backend attitude to me seems to stem from insecurities of us nerds. I personally feel inferior to front end developers, the ones I know are freaking magicians.

Re:Why is modern web development so complicated? by PunchTornado on Wednesday August 07, 2019 @05:26PM (#20639279)
really? for some years I haven't noticed any difference between frontend and backend. that is because both frontend and backend are in js probably...
Re:Why is modern web development so complicated? by renke1 on Wednesday August 07, 2019 @05:47PM (#20639497)
Most "enterprise" application backends are still written in Java (and probably C#) combined with a frontend based on Angular, sometimes Reacts or older technologies. I am not aware of any Node-based backend at any of our customers (medium/large German companies), except maybe for some smaller parts of the backend (microservices architecure etc.)

Ah, also, not sure if you were joking, but I don't think using JavaScript (TypeScript, that is) in both frontend and backend is a bad idea. Having a shared (domain) model can be a real boon. Admittedly, JavaScript lacks a few things that is offered by Java and the like that makes not yet fit for larger applications though (say DI, modularization and so on).

Re:Why is modern web development so complicated? by thfuran on Wednesday August 07, 2019 @04:38PM (#20638742)
Only me.
Re:Why is modern web development so complicated? by Stoids on Thursday August 08, 2019 @10:13AM (#20644753)
Jonathan Blow and no one else clearly.
Re:Why is modern web development so complicated? by blhack on Wednesday August 07, 2019 @04:34PM (#20638686)
I think this is it more than anything. People wanted to make the web complicated because it made them feel cooler developing it.

Some SPAs are cool. Easyeda.com is pretty cool.

But also: storing information about a page in the URL is pretty cool too. It makes it possible to link to the page, for instance!

Re:Why is modern web development so complicated? by duderific on Wednesday August 07, 2019 @07:54PM (#20640466)
> I think this is it more than anything. People wanted to make the web complicated because it made them feel cooler developing it.

That is patently false. What happened is product managers wanted their websites to feel cooler to their customers, and work more like native apps. Developers then respond to the requests from the product managers. For example, charts that refresh data without a page reload when you click a button. The requirements get more and more complex, and the web was never meant to be an application platform. So you end up with what we have today.

Re:Why is modern web development so complicated? by buzzerbetrayed on Thursday August 08, 2019 @01:44AM (#20642152)
This comment (and so many others on this thread) demonstrates such a complete lack of understanding of web development and SPAs.

Knowing as little as you do about SPAs, why do you think you would be able to understand all the intricacies of the problems they solve. Don't claim that people

> make the web complicated because it made them feel cooler developing it

just because you don't understand the issues.

It would be like me claiming that pro golfers wear golf shoes "just to look cool", when in reality, golf shoes probably offer some advantage that I'm just not aware of.

Re:Why is modern web development so complicated? by robertoandred on Thursday August 08, 2019 @01:19AM (#20642051)
SPAs and useful URLs are in no way mutually exclusive.

I think people who don’t understand the web talk it down to make themselves feel superior.

Re:Why is modern web development so complicated? by BlueTemplar on Thursday August 08, 2019 @09:21AM (#20644235)
Well, I guess it's like Java : you can make a responsive Java GUI, but I only know a few examples...
Re:Why is modern web development so complicated? by buboard on Wednesday August 07, 2019 @09:51PM (#20641107)
that sounds absurd to be true, even though it is also absurd how monstrous the javascript train has grown. And come on, C++ is not that complicated, i think ppl used assembly when they wanted to be obscurantists