88 points · by swat535 · 4y ago · 145 comments
This question has been on my mind a lot recently and after doing some research, I found a previous discussion on this topic [0]. However, I was wondering if it would be a good idea to ask it again (now that 6 years has passed) to gain some new insights from the community.
To be honest, I was expecting the rat of change to slow down or at least for the ecosystem to mature but this has not happened; in fact it seems like JS is moving in the _opposite_ direction with the sheer number of tools, frameworks, libraries and build packs that are being released daily at this point.
No other language has this problem to my knowledge, so I was wondering if you think this trend will ever stop? Will JavaSript ever evolve to a stable point like other languages (e.g Python, Ruby, Java,..) and if so, how do you envision this coming about?
This kind of reminds me of this tweet:
Backend devs: lol frontend devs love toolchain churn, how do you get anything done
Also Backend devs: Docker Vagrant Packer Kubernetes Linkerd Istio CloudFoundry gVisor kNative Firecracker Chaos Prometheus Ansible Juju Chef SaltStack Puppet CloudFormation Terraform Consul Vault
Assuming your infra already worked for you and you were wring Java + Spring at most you might have migrated to Kotlin + Spring Boot.
If your infra wasn't working for you already you might be using k8s + jib, the end.
So churn has a lot to do with eco-system you are in and it's individual tolerance for churn. JVM, especially Java has very minimal tolerance and won't move unless something is very clearly objectively better in some way or the existing solution is being deprecated.
Infra has seen a larger push than usual this time with the containers/k8s/service-mesh push but it's not that unusual for infra to see large upheavals every now and then.
Waves arms all this churn is in the frontend infra space. Assuming your infra already worked for you maybe you’ve gone from JavaScript/React five years ago to writing Typescript/React today.
JavaScript infra has seen larger than usual push around contain^H^H^H^H^H err around “bundling”, but it’s normal to see large upheavals every now and then
It's insanely dishonest to try palm off bundling as infra, it has absolutely nothing to do with infra just like Java build systems have essentially zero to do with infra. All of the churn in Webpack/esbuild/vite/whatever is entirely on the frontend space and they have no one to blame but themselves for the mess they have created.
The proper solutions have been known for a long time but for various political reasons they have remained untenable to implement. Namely NaCL, WASM and friends. Everyone knows JS is a poor language but it's the only available web runtime (hence why we have so much transpilation) but because of the fractured web engine ecosystem and no standards body with backbone it can't be reasonably fixed right now.
Failing that the least the JS community could do would be find a way to work reasonably with real build systems like Bazel, Pants, Buck etc instead of continually trying to poorly implement build systems themselves that just plain suck (looking at you nx).
Alright, can someone finally explain to me what this is? I see it all the time on HN.
Here’s my personal anecdote - for what it’s worth. I’m writing application and service code in Java and C++, mostly using the same libraries I’ve been using for the past 5-7 years.
All of my storage is using Postgres, and for some data crunching use cases, I’ve been using Kinesis, SQS, and SNS, along with two hosts running Spark.
Most of it is pretty boring, which I think is a good thing.
I was writing web pages in HTML in the late 90s and began using MySQL with PHP for the server by the early 2000s. In the last 20 or so odd years, the front end stack has had endless churn and complexity. I’d like to say C++ is insanity, but it feels tame compared to the expansive web stack… all just to create websites.
Things I've written in php in 2004 still work today.
It took less than 2 hours of effort to update all of the code to work with the latest version.
Most of these are over ten years old.
JS development is often tightly linked to graphic/UI/UX design and marketing in a way that's not so common in Python/Ruby/Go/Rust/Clojure/other language communities. JS developers tend to be quite good at building brands, making logos, and polishing marketing sites around their thing — because it's their job! They're usually also good at promoting things in their networks of sometimes high-profile designer/developer/DevRel types and the huge ecosystem of YouTube channels and podcasts linked to frontend.
This gives JS open source projects an elevated level of buzz relative to those from other programming language communities. Added to the sheer number of people working with JS, as a whole there are more loud things competing for attention in colourful ways, which gives the scene a feeling of constant newness and flux, for better and for worse.
The language tooling is also deeply tied to browser wars and evolution.
Do what works, until it does not work. Then learn something new to make it work again, and work better.
Yes, this is what changed. Things were certainly not like that when the first question was asked. That basically means the churn is over, or at least that we are in a calm period.
Everybody complaining about new tools is missing the point. New tools will always appear. The question is if you have to move like crazy between them or if you can stay put for a long while and reap the benefits of learning them.
Writing typescript is a real pleasure once I figured out the incantations necessary for the tsconfig and package.json files, and Zapatos allows pretty elegant composition of sql fragments that can all be typesafe and injection proof. The way Zapatos can type the return of complex sql seems like magic.
As an outsider I'd say im a fan of what I've seen of the current js ecosystem, although I'm only talking backend stuff, no idea about frontend.
https://gist.github.com/cpursley/e3586382c3a42c54ca7f5fef166... (some maybe useful links at the bottom)
Sounds cool! I code (hobby/fun/learning/career prep) but am really more interested in the world outside of computers (inc. some climbing). I'd love to talk if there are any opportunities with UKC! (I should mention I'm US based and have experience mainly with Python but some Javascript, too.)
If something is changing a lot, that's one sign of high capital investment. If you look at the greatest cities in the world, they're never "done". The ones that don't have high activity are usually dying or only serve one purpose ( tourism ). Likewise with languages.The Javascript ecosystem is the largest and most active in the world. If it were a city of developers it would probably be akin to Sao Paulo, NYC, or Shanghai.
Presumably Spanish should be changing faster than German, given its higher activity in the modern world.
> Will JavaSript ever evolve to a stable point like other languages (e.g Python)
The 1st post on the front page right now [1] is about a new "modern" scheduling library for Python. What's wrong with just using Celery, APScheduler, Huey or even cron? Why do we need a new scheduling library? Why are Python developers always reinventing the wheel? /s
Here's my conspiracy theory: It's a jobs program.
If you been in other areas of software engineering like embedded development, OS development, language development, database development, game development.... then you will see that Web development is the easiest and most accessible. The filter for intelligence in web dev is much less stringent and thus the people in web development tend to reflect that.
Not trying to offend anyone. I've been a web developer most of my career and I switched to embedded development and I have to say, web dev is definitely really easy.
These things are trivial compared to what other fields of software engineering have to deal with (and other fields have to deal with all this stuff too along with extra harder stuff as well)
At the most advanced levels of pure web dev it is still FAR easier then other fields of programming. It only gets a bit harder at massive massive scale, which 99% of developers are shielded from through frameworks or the fact that the company itself doesn't deal with that level of scale.
A Senior frontend engineer at $FAANG I have been talking to recently is struggling with growing into a Staff engineer. They don't want to move away away from user-facing stuff. At the same time, the organization tends to recognize only broad, foundational, cross-team work as Staff-worthy. They are now at a junction: 1) Work on features and stay at current level and in a few years get the "you've been here long enough" promo 2) Build common set of libraries and tools that will be used across multiple teams and get the promo much sooner. Latter is much more aligned with organization's view of "Staff". Although many factors are at play, it's interesting to note that Platform/Infra teams in these companies often more top-heavy than say frontend teams, meaning they have more Staff+ people.
Combining this with what others have been mentioning (stack being approachable, and many people starting their careers in this space) and one can see how anyone with more than a few years of experience in the field is strongly incentivized to build guardrails, and libraries, and whatnot.
Being someone who started as a frontend dev 10 or so years ago and quickly transitioned to backend and finally infra, I will say that fundamental technical challenges on the frontend are little easier to comprehend than the ones in say backend / distributed systems / databases / infra. Combined with huge influx of people, it might just mean there's not enough true problems to solve, so we (re)invent some.
Another thing is that folks who stick around long enough end up acquiring almost archeological knowledge of systems involved which can be a strong incentive to retain them, for example by awarding a promotion even if they don’t tick many of the “Staff boxes”.
Besides that, I have seen attrition being another cause for these types of promotions. When a Staff TL leaves, it will create a void that an organization often fills by promoting the next most tenured Senior engineer.
As always, FAANGs are huge orgs and these generalizations do not reflect any and all experiences folks might have.
2/ Node.js has a barebone standard library for server purposes, in fact you can't parse a multi-part POST request without using a package or writing your own.
3/ while the browser has a big API surface, state management and working with the DOM is a big pain when writing UI, so some kind of helper is often needed.
It’s more helpful to compare JavaScript to other UI technologies, like Swift UI, Android, Java Swing (ew), and other lower level GUI frameworks. In this case, I think the Dev Ex/quality that JavaScript produces is quite high, and good the speed at which you can do cross platform and web development is immense. Hell, you can even share code between frontend and backend. Good luck doing that with another technology.
I will probably get flamed for saying this, but I also think backend is easy. Backends are typically not stateful, and therefore feel like functional programming. You send an input and get an output. Compare that to interactive UIs which need to act as a long lived lifecycle with various state, and it’s clear why frontends are more complex.
- React
- TypeScript
- GraphQL/State management
Nothing else was ever mentioned or investigated more closely.
I think most people would do well for themselves to dig deep on these. Get great at React, understand TypeScript deeply, understand data fetching and state management — you can very likely get great jobs just focused on these technologies.
You could chase every shiny new thing but you probably aren’t all that much more likely to get a job or get paid more at the moment.
JavaScript and the web is a massive, massive ecosystem with millions of developers. With an ecosystem that big, there's always going to be many opinionated ways to solve a given problem. It's easy and frictionless to release new tooling or frameworks for the web.
That being said, today's framework situation is relatively tame. In 2022, same as 2016, people by and large still use React, Vue, and Angular. There's a couple of upstarts with Svelte and whatnot, but the vast majority of tooling still pretty heavily weighted towards the big 3.
In JS, you basically have standard code that you can copy and paste in a Makefile to make things automatically.
Javascript and it's ecosystem is changing so rapidly for one simple reason: Javascript and it's ecosystem is easy.
You heard me correctly. Javascript despite it's eccentricities is a simple, easy to use language. HTML, CSS, JS is a simple (relatively) easy to get into stack.
This leaves an enormous pool of developers who are hungry to make their mark in the world, and with technical skills that frankly outpace the simple world of web development. So they start building abstractions. Abstractions are fun to build, prove the builders competency, and often do provide some benefit to their end user.
The story of Vue.js (and Vite) is more or less this (there's a documentary on YT, go watch it). They were working at Google on experimental web projects in vanilla JS. Decided they wanted to build things people actually use. Decided a view framework for JavaScript would leverage their skillset and be of use to the community. Had the technical ability to throw vanilla JS around with ease. From this, comes a framework.
The froth of frameworks and keeping up with them seems to be maximally important to devs looking for office jobs... once you freelance and have time to roll your own, it's just kinda the same routine over and over. I feel bad for folks who have to spend such an inordinate amount of time just learning and working around new tooling. In the end if you spend the time writing it yourself you end up with a better understanding of its strengths and weaknesses. You never need to consult Stack overflow to find out how to deal with your own MVC stack.
This isn't always a bad thing. It offers maximum control and possibly shallower dependency trees. Personal job security as well. At the cost of slower onboarding.
The older I get the more bog-stanadard and boring I prefer for solutions that I use or build.
That is because js and it’s ecosystem itself is ever changing and improving itself, this makes yesterday’s trade off invalid today. This results in newer improvements requiring a fresh start (churn) or breaking changes
For eg: ESM support in evergreen browsers can’t be leveraged without libraries producing ESM build which requires changes, and in some cases breaking changes. React hooks created a paradigm shift, which while innovative, made existing code legacy.
Next, it works well on the serverside for how sloppy that language is and is the ONLY language that will work in the browser. Thats a huuuuge edge.
Futher, with npm and github, distributing js is free as in free beer. No one has a problem with free beer till it starts hurting.
Also, no one got famously sued or slapped with a huge bill for using javascript without someone's permission.
None of these is likely to change anytime soon. So my guess is it will keep evolving till it becomes boring and people move on, thats a decade or more away if I were to make a free, non-consequential, unsolicited speculation.
Now, js and its ecosystem are two different beasts.. The language itself is fairly hipster, but the frameworks and some of the people writing them are even more so, they like to move fast and break things, and to be honest, there should be corporal punishment for every dependency you pull via yarn or npm, and additional (if lesser punishments) for each dependency they pull.
Drop as much out of that ratrace you can and concentrate on writing your software.
There are a lot of new libraries, but almost nothing gets to the level of React / Redux / NextJS / Webpack. You only really have to respond to change when something big like that happens, which is like once per 10 years.
You can’t go wrong with Next.js, Vue is an equivalent alternative, and Angular sucks. Ignore the rest. It doesn’t matter and nobody outside of Twitter cares.
Same as 4y ago.
Vue on the other hand is much more modular and composable. You can pick and choose what you want to use. For example, there is a routing system, but you don't have to use it. You can build a SPA, or you can build a MPA.
Compare that to other languages, where you need to open a terminal or install special software, figure out how to write commands, install these things called packages, get esoteric errors, etc.
That amount of work to write JS vs other languages is drastically different for new coders.
With this lower bar comes a larger user base. A larger user base leads to more innovation – for better or worse.
It's inevitable to see people reinventing the wheel as they learn, simplified tools targeted at niche users, different needs (high-scale engineers vs designers), etc.
I know engineering communities get exhausted by the library churn of the JS community, but I think it's a symptom of real success. A user base this large is going to create noise, but also produce real gems from time to time.
------
I write about engineering management at [Build the Stage](https://www.buildthestage.com).
Javascript is the one language you can learn and easily deploy anywhere... web, apps, server, etc. This attracts a lot of new devs and the ecosystem tries to fix inherent language limitations with new tools. i.e. It's not the best language to write an app in but you can make it work with a lot of extra tooling. But then the tooling will need to keep evolving to try to keep shrinking the pain points and limitations of the language itself.
Another huge factor is how fast browser and Node standards and APIs change, making older tooling redundant or obsolete. e.g. jQuery isn't really needed as a polyfill in browsers anymore.
The needs of designers creating a marketing site and engineers working on a real web app are different, but they all work with web tech.
I wonder why this wasn't quite the case with something like PHP, then. It had (and in some respects still has) an enormous userbase, the technology had good enough performance, had batteries included for the most common use cases and was also relatively easy to get started with (being not too dissimilar to the CGI approach of having a request and a response, unlike the Java servlet mess at that time).
And yet, Apart from projects like WordPress, Symfony, Laravel and maybe a few others, it feels like it didn't ever get quite as popular, at least from a project/tooling perspective. I mean, XAMPP was nice and the entire LAMP stack worked well for typical configurations but things just kind of stalled there, maybe as other options came along.
Until that changes JS will be the least worst option for folks who need unbounded browser interactivity.
* Real-time, graphics-intensive applications (d3, three.JS, etc.)
* Chrome extensions/PWAs
* Server-side code (NestJS, Express, etc.)
* Server-client-side-hybrid code (SSR)
* Single page apps (React, Svelte)
* Documentation or static site generation (Gatsby, etc.)
* Query language (Mongo)
Further you have a lot of personalities you're supporting: * Frontend devs
* Backend devs
* The complexity-embracing folks (React)
* The complexity-hiding folks (Svelte)
* Marketing teams who don't really want to be coding (Squarespace, jQuery, Alpine)
Even with all that, some tooling is going to be better at doing what it needs to than others. The tooling is all still very young, because we never settled on one right way to do it, probably because the package system in JS is so bananas. The bundlers/minifiers/packagers/transpilers all need to compete and come together still, it hasn't happened yet.React for example, solved problems for folks at Facebook and is useful to the degree your problems are similar modulo the level of resources you have to learn, manage, and deploy it.
But the important thing to recognize is that JavaScript is two (or “JavaScript” means two) things.
It is a programming language and it is an API for XHTML documents — or rather a cloud of API’s that have grown beyond the DOM to servers, embedded devices, etc.
Though the programming language has changed it has only changed in the way programming languages change…actually better than most because it goes through a formal consensus based standards process.
The API side however, is in a constant ad hoc flux and generates a lot of noise around “the latest.”
Newness is not an important property of tools when it comes to problems solving.
It is important for making boring jobs more interesting…there’s much: a developer needs to build a website so they research the latest frameworks. Now they have two problems.
Good luck.
HN is a bit skewed towards new things because HN is full of startups, which are building products from scratch, so can relatively easily choose to use new tools and libraries to do it.
Much of the world still keeps rolling on with a few basic jQuery scripts or relatively mature stacks like Angular.
Yes there are lots of libraries and frameworks but as a language, everything feels quite steady. With each ES version, perhaps there are one or two new helpful methods but nothing massive.
New tools and frameworks are good, it pushes existing libraries and projects to stay current and shows continued innovation, but as lots of other people have said, you could be using the same stack from 5 years ago today and all the pieces to it would still be totally recognizable.
If you're doing web apps, I'd expect React, Redux, and React Router. Maybe you're still killing it with full on client side SPAs, or maybe there's some server side rendering and data fetching.
But the language is very stable and the main libraries and tools are as well. Just cause there's new stuff doesn't mean you have to use it.
So, consider Apple's development environment. It's changing all the time. For example, SwiftUI still isn't mature enough to replace UIKit, yet that isn't stopping Apple from focusing on it in all of its docs going forward. And when you're using Stack Overflow to answer questions like how to send a keyboard press programmatically, you will see anything from Objective-C code to older APIs in older Swift versions. And that's a constant source of confusion for beginners.
Client development just isn't that easy nor are we at a point where there is One True Solution that is settled. It's a domain of constant research and improvement.
So for casual onlooker, things are changing fast as “most popular” moves from one camp to another. While in reality, the camps themselves are quite stable, and progressing forward in a predictable fashion.
Sure there is a churn in bleeding edge camp(react), but that is because it is on bleeding edge, other camps do not have that churn, and real world does not have that level of churn
But this is an inevitable problem in the industry in general, you just have to keep up and learn when required.
New tools have to support old tooling. Want to build a new react competitor? Users should be able to use webpack, babel, esbuild, etc. Users should be able to use sass, less, etc. Each axis that has more options increases the effort to make something new.
I feel this is also the reason there is no rails-like JS framework today.
I mean between two very similar banks, the back office operation (SOP) must be very-very different, making it impossible for any toolings to emerge.
As opposed to frontend where it's clearly that there's button, label, text input, select, checkbox, list, etc.
.. but it works like this:
You have this thing that you can use for all kinds of purposes, called ECMA Script, or JS. As marketing people say, it "adds value to the product"
Problem with it (the JS) is that it is really easy to get started with it.
So, the people that have spent years developing these fancy (value add) "solutions" rightfully fear for their job security, as:
- when the time comes that they should demand a raise, the manager might rightfully reason that the added cost isn't worth it as they could just train a college grad for the job much cheaper.
So, what do they (experienced devs in big corps) do? They build "Barriers To Entry" so called: Teh Frrrrrameworkz! ta-daa
Invent convoluted layers upon layers on top of this very simple yet efficient thing, JS -- layers that grow so complicated that they require significantly more study and practice to master than the very simple tool (JS) that anyone can learn to solve very basic tasks with in an hour.
That way they make "development" a bureaucratic standardized hell of a process in stead of just "getting things done", and the effect is that they increase their own job security.
...and you can still accomplish the same things in vanilla JS, only these "developers" (now as senior as to being the ones doing the employment interviews) spend great effort trying to convince every new/potential colleague that you can't.
End result: all teh Interwebs filled with "spinners" and lazyload and much other user-hostile stuff built to satisfy automated testing, search engines and whatnot - not users. Very little that "just works" ... and a totally recalibrated job market, introducing roles/functions such as DevOps and much other nonsese like it.
But isn't this because they supposedly know which tools to use, and have the agency to choose?
I'm not sure it quite applies to cases where you're a small fish and all the employers are bandwagonning on some tool that you don't agree is any good.
I should get to pick my tooling yet also have baseline knowledge of HTML, JS, & CSS.
Learning a toolset just because it’s trendy and hyped up is backwards and doesn’t take into account that most projects will never be amazing Crystal Palaces or large abstractions.
Programmers love wheel reinventing and web has evolved to be forgiving enough that you can get away with it. If there's 10 ways that work really well, programmers will add 10 more.
Most other languages have some sort of steering committee that guides them in a certain direction, where decisions can be made through organized discussions and such. In the HTML/JS world, it's a free for all with each browser vendor unilaterally making lurches here and there, embracing/extending/extinguishing various parts of the DOM and CSS and JS for their own needs, competing with every other browser vendor all the time. In theory we have the W3C and WCAG, but in practice, Google just does what it wants, Apple tries to fight back, and everyone else just follows along.
Because of that, the DOM and CSS and JS etc. don't have a neat way to progress in an orderly fashion, and ECMAscript iteration is way too slow to keep up with the ever-changing needs of big companies with a ton of devs on hand.
These devs can't really just code in pure HTML and CSS for any remotely complex app, because the underlying system is so janky. So all these FE frameworks pop up to try to improve the developer experience, essentially "overloading" janky vanilla JS to a more featureful, easier to use language that includes typing, state management, routing, cache handling, etc. The JS built-ins (its "standard library", so to speak) are pretty weak and you need to fill it with a ton of third-party frameworks and modules to get that functionality if you don't want to keep reinventing the wheel yourself.
It'd be nice if React, etc. could backport their most useful features to vanilla JS/ECMAscript, but until and unless that happens, the frameworks are competing for developer mindshare the same way the browsers keep competing with user mindshare.
It's a free-for-all in the wild marketplace of software-that-ultimately-transpiles-to-HTML. It won't "mature" or "stabilize" until the needs themselves stabilize, and that's probably not going to happen for a while. The web and its needs are still constantly evolving, so the dev software keeps evolving alongside it.
FWIW, it's not so easy in other ecosystems either. Windows tried to shoehorn in WPF, UWP, Windows App SDK, etc... and how many apps end up just being a webpage wrapped in Electron instead? And Android has gone through how many breaking API changes in the last decade?
The last big thing happened to js was a typescript.
React from major version to version is less and less disruptive (in a good way) etc.
Yes there are still new fancy projects popping up like mushrooms. But only few survive in the long run (as in other languages).
In BE dev, unless you are working at scale, your primary business is to code business logic which also changes but doesnt require much tech churn.
Also, browsers usually tell you when stuff you use is deprecated.
I didn't do frontend development for years, then I got back to it with my old knowledge, ran it once through a browser and could simply modernize my browser API calls in one go.
This is the mindset of JavaScript community.
Unfortunately, this mindset is slowly infecting other communities.
find a good workflow[2], and build stuff. churn is fine, it’s either motivated by necessity or by fun. if it’s neither for you, avoid it. just build stuff.
people who work in JS grew up in the "move fast and break things" culture perpetuated by early FB and others.
a lot of these teams led by young people who don't have experience to make good long term judgement calls.
Every time I open Dev tools there is 20 new features, and look at the release notes for every minor FF and Chrome update....
And frankly because it’s still terrible so there is still so much room for improvement.
Release dates of the current frameworks:
- angular 2010
- react 2013
- vue 2014
- svelte 2016