Ten years of JavaScript

Looking back at JavaScript/Web in the past ten years, this is a crazy journey.

Looking back at the past decade of JavaScript and the way the Web has developed, this is a crazy journey.

Although there are 1998 JS books in my library, I didn't write much JavaScript in 2010. I mainly use it in the form of Mootools and jQuery plugins. I may be writing some glue code in JavaScript, but nothing is groundbreaking.

At that time JavaScript was definitely not considered a popular language. Its main use case is work outside of high-level projects with larger budgets (such as GMail, Google Maps, etc.).

For most people, the concept of using JavaScript to write an entire application is undoubtedly unfamiliar.

Fast forward to December 31, 2019. JavaScript is... WOW.

JavaScript is everywhere. In those 10 years, it launched several new versions, including a major version (ES6), and the way we write JavaScript today is completely different from JavaScript in 2010.

Asynchrony and waiting, arrow functions, promises, generators, const/let, classes, template text, etc., undoubtedly make the appearance and behavior of modern JavaScript completely different.

ES modules make larger applications easier to write and maintain.

But it is not only the grammar and new features of the language that have changed.

In my opinion, one of the biggest changes in the past decade is the introduction and widespread adoption of build tools. From Grunt to Gulp to Webpack, Parcel and Rollup, things are developing very fast, and with the development of developers, we have more and more powerful features every day.

The module bundler provides us with very advanced functions, such as tree shaking. From the early days, things have changed, which is really surprising.

Should we mention Node.js? Technically, Node was first launched in the spring of 2009, so this is not part of this decade. It is fair to say that Node did not fully explode in its first year of establishment, but it did explode during this decade.

Now let's talk about the browser. The version of IE in January 2010 is 8, with a market share of more than 50%, and Edge does not exist. Chrome was just one year old (!) when it released 1.0 in December 2008, with a market share of only 5%. Can you imagine? So far, Chrome is by far the most popular browser. I'm looking at some statistics, including 64% for the Internet and 16% for Safari.

Speaking of Safari, in January 2010, we had the iPhone 3GS (I don't. I have Nokia. My first iPhone was the iPhone 4, which was released later that year). I think JavaScript does not run fast on this device. But nowadays, mobile browsers can execute JavaScript at lightning speed, and JavaScript is used to use mobile applications with excellent frameworks (such as Cordova, Ionic, React Native, etc.).

npmLaunched in January 2010, its rise is eye-catching. Born today in a package manager for Node.js modulesnpmIt is also the actual standard for front-end development. In June last year, it passed 1 million software packages, and I'm sure it is the largest software catalog in the world.

Speaking of this, GitHub in January 2010 has a history of 1.5 years. It's interesting to seeHow does it lookAt that time.

In this decade, many amazing projects have been realized. I can think of Ember.js, CoffeeScript, Angular, React, to name a few.

I have the opportunity to participate and enter many different communities, and the reason why JavaScript and the entire ecosystem have grown so fast in this decade is the people who do this work.

With enthusiasm, diligence, dedication and generosity, the open source community and hundreds of truly motivated and visionary companies make today's development world irrelevant.

It's great to look back at how far we have come.

I really can't imagine what the next ten years will bring us.

Download mine for freeJavaScript beginner's manual

More js tutorials: