Peter-Paul Koch on the ever growing overcomplication of web tools:
Why all the cruft?…
Tools don’t solve problems any more, they have become the problem.
Most times I land on a Stack Overflow page with a simple Javascript question, the highest-voted answer is “Just include [framework X] and then call this function,” even though a few posts beneath it is a perfectly suitable, standalone 10-line function.
Sadly, I see this more often than not. I look for a simple answer and the “simple” answer is to include a multi-kilobyte JS framework that adds layers of unnecessary complexity and overhead.
“Just do npm install <package>
it’s easy!”.
I’ve been guilty of this many times before (as I think we all have), but just because it’s easy to do, does not mean you should do it! Yes, it’s easy to write a cool flashy website, but at what cost? The user experience may be horrible, since you require them to load 3MB of JavaScript frameworks and 50MB of video and pictures before even being able to load the content. 1
Before you include that cool framework, take a second to think about it. Do you really need this framework? Or can you get by with the 10-line alternative? It may cost you some time, but your user’s experience should be your first priority.