Frameworks
Recently, I came across a couple of posts about the usefullness of JavaScript frameworks, such as React and Vue. Their promise is to simplify the creation of modern web applications. These discussions seem to kick off every now and then in the same way that 20 years ago people debated Java vs .Net and 40 years ago it was probably C vs Perl. The current debate is often centered around the speed of the pages using frameworks, which are bulkier and slower than native rendering.
In the market for lemons, Alex wrote a very good description of how these frameworks are knowingly over selling their benefits (faster development, easier to maintain, better support, access to a arger developer pool). A key takeaway for me was that these frameworks do give significant benefits to large teams able to invest and maintain in them. Smaller teams however, tend to get bogged down in their complexity the moment you go beyond the defaults. It's a bit like the "blog in five minutes" use cases that popped up all over the place when Ruby On Rails turned up 20 years ago. Of course RoR was truly revolutionary at the time and incredibly powerful, but the same was not true for other frameworks of the time.
In response, Laurie posted the case for frameworks in support of React and JavaScript frameworks. His main argument, whilst acknowlegding certain failings of frameworks, is that you're OK because everyone is doing it. This is the 2020s reload of the "no one ever got fired for picking IBM" thinking in the 80s.
But are these frameworks as popular as they seem. Andy takes a look his post the (extremely) loud minority and concludes "not really". Obviously there are thousands of sites using React, but only 3.3% of the top 10 million websites actually use it. The percentage of all websites is probably much smaller. In comparison, Wordpress is used by 43.1% of the top 10 million websites. The reason these frameworks seem more popular than they actually is explained in dev perception by Jeremy.
It is interesting to note that jQuery is still used on over 77% of the top 10 million websites. 16 years after it's first release. It's popularity is only now starting to dip. There are many reasons for it's popularity.
One reason is that jQuery was released at a time when web standards were poorly supported by browsers. This meant developers had to write code for each of the common browsers at the time. jQuery provided a standardising layer, which enabled your code to work well in all browsers.
A second is that it was not released by a big tech company. jQuery was created by one guy, John Resig. Since there was no big company owning jQuery, other companies didn't feel the need to compete and release their own framework. There was no competition and it quickly became the defacto framework used by anyone programming front-end JavaScript.
A third reason is that jQuery was quite simple to get started with. You could sprinkle it lightly throughout your code, or you could base all your code around it.
The reason for it's recent dip: browsers are finally more or less equal in terms of standars support and the use case for jQuery is waning, especially in new projects.
All of this leads me to the actual point I want to make. It's about the most common framework, used by 100% of all websites. A work in progress since 1990. It is of course the browser using standard HTML, CSS and JavaScript. Sure, it doesn't always have the latest bells and whistles like, instead its future support is unparalled. It will never be obsolete.
You can't go wrong choosing it. In fact you can't avoid choosing it!