博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JavaScript的十年
阅读量:2503 次
发布时间:2019-05-11

本文共 4995 字,大约阅读时间需要 16 分钟。

Looking back at the last decade in JavaScript and how the Web evolved, it’s been a wild ride.

回顾JavaScript的最近十年以及Web的发展方式,这是一个疯狂的旅程。

Despite having JS books that are dated 1998 in my library, I was not writing a lot of JavaScript in 2010. I was using it, mainly in form of Mootools and jQuery plugins. I was probably writing some glue code in JavaScript, but nothing groundbreaking.

尽管我的图书馆中有1998年的JS书籍,但我在2010年并没有编写太多JavaScript。我主要以Mootools和jQuery插件的形式使用它。 我可能正在用JavaScript编写一些粘合代码,但是没有什么突破性的。

JavaScript back then was definitely not seen as a hot language. Its main use case, outside of projects doing very advanced work with big budgets, like GMail, Google Maps, and others.

那时JavaScript绝对不被视为热门语言。 它的主要用例是在预算较大的高级项目(例如GMail,Google Maps等)之外进行的工作。

The concept of writing an entire application using JavaScript was certainly foreign to most people.

对于大多数人来说,使用JavaScript编写整个应用程序的概念无疑是陌生的。

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

快进到2019年12月31日。JavaScript是.. WOW。

JavaScript is everywhere. In those 10 years it got several new releases, including one major one (ES6), and how we write JavaScript today is very different from 2010 JavaScript.

JavaScript无处不在。 在那10年中,它推出了多个新版本,其中包括一个主要版本(ES6),而我们今天编写JavaScript的方式与2010年JavaScript截然不同。

Async and await, arrow functions, promises, generators, const/let, classes, template literals and more, definitely make modern JavaScript look and behave very differently.

异步和等待,箭头函数,promise,生成器,const / let,类,模板文字等等,无疑使现代JavaScript的外观和行为完全不同。

ES Modules make bigger apps way more manageable to write and maintain.

ES模块使更大的应用程序更易于编写和维护。

But it’s not just the syntax and new features of the language that changed.

但是改变的不仅是语言的语法和新功能。

One of the biggest changes of the decade, I think, is the introduction and widespread adoption of build tools. From Grunt to Gulp to Webpack, Parcel and Rollup, things move pretty fast and as developers we have greater and greater power every day that goes on.

我认为,十年来最大的变化之一是构建工具的引入和广泛采用。 从Grunt到Gulp到Webpack,Parcel和Rollup,事情发展得非常快,而且随着开发人员的发展,我们每天都拥有越来越强大的功能。

Module bundlers provide us very advanced features like tree shaking. It’s amazing how things evolved from the early days.

模块捆绑器为我们提供了非常高级的功能,例如摇树。 事情从早期开始就令人惊奇。

Should we mention Node.js? Technically, Node was first launched in Spring 2009, so it’s not part of this decade. But it’s fair to say that Node didn’t quite explode in its first year, but it did explode in this decade.

我们应该提到Node.js吗? 从技术上讲,Node于2009年Spring首次启动,因此这不是本十年的一部分。 可以公平地说,Node在其成立的第一年并没有爆炸,但是在这个十年中确实爆炸了。

Let’s now talk about browsers. IE in January 2010 was at version 8 and 50+% market share and Edge did not exist. Chrome was 1 year old (!) at 5% market share, as 1.0 was released in December 2008. Can you imagine? Today Chrome is the most popular browser, by far. I’m looking at some stats saying 64% of the internet and Safari 16%.

现在让我们谈谈浏览器。 IE在2010年1月的版本为8,市场份额超过50%,而Edge不存在。 Chrome于2008年12月发布1.0时仅占市场份额5%的一岁(!)。您能想象吗? 到目前为止,Chrome是迄今为止最受欢迎的浏览器。 我正在查看一些统计数据,其中互联网的64%和Safari的16%。

Speaking of Safari, in January 2010 we had the iPhone 3GS (I didn’t. I had a Nokia. My first iPhone was the iPhone 4, released later that year). JavaScript didn’t run that fast on that device, I think. But today mobile browsers can execute JavaScript at lightning speed, and JavaScript is used to build mobile apps with awesome frameworks like Cordova, Ionic, React Native and many more.

说到Safari,2010年1月,我们有了iPhone 3GS(我没有。我有诺基亚。我的第一部iPhone是当年晚些时候发布的iPhone 4)。 我认为JavaScript在该设备上的运行速度并不快。 但是如今,移动浏览器可以以闪电般的速度执行JavaScript,而JavaScript则用于使用具有出色框架(例如Cordova,Ionic,React Native等)的移动应用程序。

npm was launched in January 2010, and its rise has been phenomenal. Born as a package manager for Node.js modules, today npm is the de-facto standard for frontend development, too. It passed the 1 million packages last June, and I’m pretty sure it’s the largest software directory in the world.

npm于2010年1月推出,其崛起npm 。 出生于Node.js模块的软件包管理器,如今npm也是前端开发的实际标准。 去年6月,它通过了100万个软件包,我敢肯定,它是世界上最大的软件目录。

Speaking of that, GitHub in Jan 2010 was a little more than 1.5 years old. It’s funny to see back then.

说到这一点,2010年1月的GitHub已有1.5年的历史了。 看到很有趣。

Lots of amazing projects got to life in this decade. I can think of Ember.js, CoffeeScript, Angular, React, just to mention a few.

在这十年中,许多惊人的项目得以实现。 我可以想到Ember.js,CoffeeScript,Angular,React,仅举几例。

I had the opportunity to participate and get into many different communities and the reason JavaScript and the entire ecosystem evolved so fast in this decade is the people that worked on it.

我有机会参与并进入了许多不同的社区,而JavaScript和整个生态系统在此十年中发展如此之快的原因是从事此工作的人。

With enthusiasm, hard work, commitment and generosity, the Open Source community, along with hundreds of really driven and visionary companies, made this little corner of the development world what it is today.

凭借热情,勤奋,奉献和慷慨的态度,开源社区以及数百家真正有进取心和有远见的公司使今天的发展世界变得微不足道。

It’s nice to look back and see how far we went.

回头看看我们走了多远真是太好了。

I can’t really imagine where this next decade is going to take us.

我真的无法想象下一个十年将带给我们什么。

翻译自:

转载地址:http://mlqgb.baihongyu.com/

你可能感兴趣的文章
ios-自动布局指南:入门
查看>>
【Shell脚本学习4】几种常见的Shell
查看>>
DataStructure part1 基础概念
查看>>
201521123007《Java程序设计》第11周学习总结
查看>>
BitLocker 加密工具挂起和恢复命令行(windows7)
查看>>
VMware下centos7安装VMware Tools
查看>>
Eclipse下Android开发的问题:Failed to install AndroidPhone.apk on device 'emulator-5554': timeout 解决办法...
查看>>
[luogu_P2045]方格取数加强版
查看>>
android 代理模式创建Activity
查看>>
c++课程设计之菜单选择\\
查看>>
iOS 的 XMPPFramework 简介
查看>>
hdu 3555 数位dp入门
查看>>
Git学习系列-Git基本概念
查看>>
c#多个程序集使用app.config 的解决办法
查看>>
模仿网站登录注册
查看>>
Linux+Apache+PHP+MySQL服务器环境配置(CentOS篇)
查看>>
Linux下获取本机IP地址的代码
查看>>
(C#)调用Webservice,提示远程服务器返回错误(500)内部服务器错误
查看>>
flex布局
查看>>
python-----python的文件操作
查看>>