Ask HN: How did web development become so bizarrely complex?
67 points| mathewsanders | 4 years ago
We’re using a headless CMS with content in the page broken into hundreds of individual elements, where a React client app renders the data from the CMS API to our users.
In addition we seem to be grabbing the PDFs from the server, converting to Base64 and then rendering as an object in the react app (rather than just linking to the pdf file directly).
The team (4 developers, 1 automation/QA, 3 designers, scrum expert, product owner and product manager) is in their second quarter working on the site, and aiming to release this MVP next quarter so around 9 months to build 15-to-20 page site.
When I started my career 20 years ago, this is the type of project where maybe 2-3 people would build out over a few weeks.
When Content Management Systems were first introduced, one of their selling points was that it reduced reliance on developers for ongoing BAU content updates as ‘business people’ could make content updates and potentially even some sort of workflow to have reviewed or signed off (perhaps by compliance etc) with our set up the CMS is so complex that we’ll have any requests for changes submitted to team and have a developer make the update.
What benefit do we get from this complexity compared to just having static HTML pages that someone would update manually?
There are no concerns from our project sponsors around how long this is taking or the costs involved.
How on earth did we get to this stage where such bizarre complexity is accepted as normal?!
[+] [-] yongjik|4 years ago|reply
A more objective take would be simply that "they don't know better." Hire a bunch of junior developers right out of college, and throw them in a pool of layers, and they'll think this is how "a real job" is done - they've never seen anything better. It doesn't help that their go-to example of best, most polished websites (imagine google docs) are built by hundreds of engineers, with as many layers.
Once it becomes an ingrained culture, it would be extremely hard to turn around.
[+] [-] tkiolp4|4 years ago|reply
- company A is using WordPress to deliver the website OP is talking about. PHP and HTML. I have heard that was very used in the 2000s, but I don’t see any company out there hiring for such skills. Besides all the tech conferences I have attended haven’t talked about PHP at all
- company B is using cool Next.js, GraphQL and Amazon serverless. Now we are talking! Last summer I attended to a GraphQL conference and it was awesome! The host seemed very cool and showed us a demo that looked amazing. Besides, I just checked LinkedIn and there are tons of jobs that require Next.js skills. I think it’s better to work for company B; they seem to know their stuff because they use up to date tools. Also, company B pays way more!
The decision is straightforward, isn’t it?
[+] [-] tcbasche|4 years ago|reply
It becomes kind of a zealotry devoid of reality. They've been hired to make the company money by solving problems, and I think that's often the missing piece of the puzzle - that connection with the problem you are solving (and why!)
[+] [-] swiley|4 years ago|reply
[+] [-] air7|4 years ago|reply
[+] [-] runawaybottle|4 years ago|reply
Now, types in Typescript for every little thing means you are a good developer. Not necessarily judicious use of types and small type footprints, but insane obsessive, compulsive, exhaustive list of types for even the most basic function signature. This is what it means to be a good developer.
What we lack as a group is the ability to have a sit down in the current and say ‘some of this is not needed, we tried it, it’s always worth a trying, but perhaps we can cut down on some of this granular component composition, perhaps we can only use a little bit of typescript, perhaps we can reduce state management’.
We don’t have the mechanism to self-reflect, so our only form of healing is to keeping barreling forward. In other words, lie to ourselves, and run from the problem.
[+] [-] risk000|4 years ago|reply
[+] [-] kilroy123|4 years ago|reply
Just yesterday, I needed a function that consumed some data from an endpoint, and did one of two things:
- Open a window with a PDF in so the user can print.
- Focus a god damn input field in a form.
That was it.
My manager, who isn't even a "front-end" guy, took my PR. Then changed it to some overly complex mess with an entire separate file. Huge comments. Overly built for a hundred different use cases and did it "the react" way.
We're literately opening up a new window or focusing an input.
I tried to push back but it went nowhere. He's right and I'm wrong. Never mind my 10+ years in the industry. He's the manager.
[+] [-] nojvek|4 years ago|reply
[+] [-] kyawzazaw|4 years ago|reply
[+] [-] bjourne|4 years ago|reply
We can assume that alienation is rife in the software industry. Someone writing a module for some extension interface for some in house editing tool for the accounting department may not care much. So they prioritize other things. An engineer wants to learn new programming languages because it looks good on their cv and a manager wants to lead large groups because it also looks good on their cv. Thus overcomplicated projects written in newfangled programming languages is in both their best interest. Especially if they are contractors. Then the simplest solution is almost always the wrong one.
[+] [-] jimmygrapes|4 years ago|reply
- Wendell Berry, The Unsettling of America: Culture & Agriculture
[+] [-] tored|4 years ago|reply
Specialization led to splitting teams in frontend and backend teams, thus these teams started develop different coding culture & solutions, like separate build steps and whatnots. No longer could one team finish a feature instead it had to be a cross team cooperation if they could sync their schedules that is. If one team was failing their part the other team either couldn't or wouldn't fix it and the delays increased even more.
[+] [-] jaredcwhite|4 years ago|reply
It's actually worst practice for all but the largest companies and teams. We as an industry need to start doing a much, much better job communicating to all relevant parties that the best way to build most web sites/apps most of the time will look radically different from how Big Tech does it, and that's actually expected and reasonable.
[+] [-] tacostakohashi|4 years ago|reply
> What benefit do we get from this complexity compared to just having static HTML pages that someone would update manually?
In the good old days, HTML was simple because it was just text + <h1>, <p>, <b>, etc markup and HTML forms, and web authors were ok / expected that the web browser would do the heavy lifting and render it appropriately for the client OS using native toolkits / widgets.
These days, the publisher wants 100% control over everything, so all that rendering / toolkit that was previously left to the browser is re-invented in JS.
Ask your superiors why you need to embed a PDF viewer in your page instead of just linking the to PDFs and letting the client open it in their local browser / Acrobat / PDF-viewer of choice. They'll probably mumble something about a consistent experience, what if the user doesn't have acrobat installed, etc.
[+] [-] david927|4 years ago|reply
[+] [-] chrisrickard|4 years ago|reply
Ajax spawned "Web 2.0", which in turn spawned the batteries-included-JS-frameworks (which overtook simpler libraries & plugins). Resume driven development then made them the standard, and we now have a generation of programmers who think a GET request only returns JSON, and were never taught it can also return HTML ;)
[+] [-] AkshitGarg|4 years ago|reply
Can't relate more to this. I sometimes find it difficult to accept that some of my peers in the college thought that fetch is the only way to submit a form. Those were the same people who fetched json to render a static blog post
[+] [-] cblconfederate|4 years ago|reply
> The gateway to the law is open as it always is, and the doorkeeper has stepped to one side, so the man bends over to try and see in. When the doorkeeper notices this he laughs and says, "If you're tempted give it a try, try and go in even though I say you can't. Careful though: I'm powerful. And I'm only the lowliest of all the doormen. But there’s a doorkeeper for each of the rooms and each of them is more powerful than the last. It's more than I can stand just to look at the third one.”
[+] [-] alex504|4 years ago|reply
Technologies have improved, and requirements have gotten more complex. It sounds like the team you are working on is either doing things in an awful way or the requirements are such that there is a lot that needs to be done.
20 years ago it was very difficult to build anything remotely complex. 2-3 people could build a very simple, static site over a few weeks. If you showed web developers 20 years ago what a modern web app looks like today they would be impressed.
It is certainly possible to use a bunch of technologies that complicate things unnecessarily but even then it shouldn't take 9 months for four engineers to build a simple site.
[+] [-] umbrellaguy|4 years ago|reply
[+] [-] ipaddr|4 years ago|reply
Now a days it's a few hours.
[+] [-] david927|4 years ago|reply
Good architectures (think both software and construction, both) only use what they need. They are complete not when there is nothing left to add, but nothing left to take away. Good architectures make changes and extensions effortless.
Instead, as Alan Kay says, "Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves." He said that a while ago and it's getting worse.
[+] [-] csomar|4 years ago|reply
HTML has become complex to account for new features that users want. So did CSS (which makes you rely on SASS) and so did JavaScript (and now you complex apps require a strong-typed language like TypeScript).
A few years ago, HTTPS was used by prominent websites only. Now, it's required for even the simplest website. Implementing HTTPS can be simple (if you use Cloudflare) or a bit complex. (if you are running Nginx). But the complexity level did definitively increase.
[+] [-] midrus|4 years ago|reply
At my last job I was horribly looked down at when suggesting doing simpler things. People want to master a single gold hammer and use it for everything, no matter what the business problem is. React is THE WAY, Go is THE WAY, kubernetes is THE WAY and now it doesn't matter (we don't even think about it!! what's the actual f**ng business problem we're trying to solve). We just use THE WAY tools because otherwise we're doing "legacy".
It's sad, really sad.
[+] [-] tcbasche|4 years ago|reply
The problem I found is when less experienced developers build hacks in and then all of the above attributes fly out the window. All the custom glue code kinda renders the use of a framework more of a hindrance.
But yes, fully agree. Don't start with the technology, start with the problem that is to be solved.
[+] [-] is_true|4 years ago|reply
They all worked in marketing an their company had them do a react course.
[+] [-] anakaine|4 years ago|reply
[+] [-] BitwiseFool|4 years ago|reply
https://en.wikipedia.org/wiki/Holy_grail_(web_design)
I'm kinda glad I'm back-end only.
[+] [-] tcbasche|4 years ago|reply
[+] [-] ryalb|4 years ago|reply
I just quit a full time job in a Huge-Non Profit where my main project was to make a simple CRM, based on about 10 simple but intertwined tables. This CRM would have saved the hours of hundreds of overworked/burned out people.
The frontend was made entirely with Bootstrap. A functional, life-saving MVP without any dynamic content could have been made in a month with a team of 3 developers.
However, all of the feedback we constantly got was only to make it look more modern and dynamic (and debatably worse from a UX standpoint).
Mid-development we were forced to add Vue.js to our tech stack. I quit because my conflicts with the business side were becoming hopeless, the project has still not seen an MVP, 1.5 years and two avoidable burnouts in the making.
My thinking is that people feel the need to deliver something as modern and sexy as possible to get more credit. Completely losing track of the functional aspects of things.
[+] [-] cosmodisk|4 years ago|reply
The correct answer should have been to go with Salesforce Non profit cloud, or select one of many competitors. To develop a CRM from scratch is always a bad idea.
[+] [-] sbacic|4 years ago|reply
The second, and my preferred theory, is that the modern web stack has not adequately followed increasing user requirements, forcing us to take much longer to develop what seems like trivial new features. It's not that i18n, or larger images or maintaining state in the browser is some huge, insurmountable problem that can't be solved. It's just that our tools are so woefully immature that we spend more time wrestling with them than we do actually working on the features we're being paid to work on.
And for what? For some vague illusion of choice that for the vast majority of people doesn't even matter? I don't care if I use Redux or one of the bazillion different variations on the idea. Ditto for Sass, Tailwind or what have you. The web layer needs to solidify already, give us a decent bedrock to build our apps and websites on and just get out of the way.
[+] [-] schwartzworld|4 years ago|reply
Plus sass is a dev dependency. Even if my team wasn't using it, I could write SASS on my machine and compile before committing the code.
[+] [-] relaunched|4 years ago|reply
There are probably a handful of sites that needs this level of engineering. But, for everyone else, that isn't running at a huge scale, it's hugely taxing.
[+] [-] ipnon|4 years ago|reply
[a] React, Angular, Vue [b] EC2, Droplets, VPS [c] Request, Axios
[+] [-] midrus|4 years ago|reply
[+] [-] sergiotapia|4 years ago|reply
We're also going to use esbuild to compile our very minimal alpinejs code. Most interactivity will be built using phoenix liveviews.
We're hitting the eject button on this whole ecosystem. There is a rot in node/npm that I think will never really go away as it's baked into the culture.
[+] [-] tkiolp4|4 years ago|reply
In a more serious tone: I like to write web apps in Go. I understand the appealing of using Go or Phoenix or React or whatever that smells like new. My decision to use Go is not totally rational, but hey, I like it!
[+] [-] midrus|4 years ago|reply
[+] [-] Graffur|4 years ago|reply
It forces the developer to break things into components which is essential for any maintainable UI.
Since React is the the most popular JS library it is easier to hire for.
SPAs that are done well are a better user experience because the page 'loads' once and then feels faster. That is what users expect.
If a company has multiple sites, it makes sense to be consistent with tech across those sites.
It's ready for future requirements. If you didn't use React and you kept getting requirements for the next few years you would be more likely to end up with a ball of mud if you were doing plain HTML and JavaScript.
One part that I agree seems complicated is the build and dev environment.
[+] [-] ipaddr|4 years ago|reply
2 years and a huge team cost this company a million dollars. Doing this in html would take $5,000 at most. Hiring for react is expensive. Hiring for basic html very cheap with large pools of candidates.