javascript 统计_我们为2017年最热门JavaScript项目编制了统计信息。

javascript 统计

by Sacha Greif

由Sacha Greif

我们为2017年最热门JavaScript项目编制了统计信息。 (We Compiled Stats for the Top JavaScript Projects of 2017. Here’s What We Learned.)

宣布2017年JavaScript新星 (Announcing 2017’s JavaScript Rising Stars)

Every morning at 6:00 a.m. Japan Time, there’s a tiny piece of code stored somewhere in the cloud. It wakes up, hits the GitHub API, and then goes back to sleep until the next day.

日本时间每天早晨6:00,云中都会存储一小段代码。 它醒来,点击GitHub API,然后回到睡眠状态直到第二天。

It then takes that GitHub data, compiles the number of stars for a pre-selected range of JavaScript projects, and then stores those stars in the BestOfJS.org database.

然后,它获取GitHub数据,为预选JavaScript项目范围编译星数,然后将这些星存储在BestOfJS.org数据库中。

And then, once a year, we take all this accumulated data and use it to figure out the most popular JavaScript projects of the year, also known as the JavaScript Rising Stars.

然后,每年一次,我们收集所有这些累积的数据,并用它来找出一年中最受欢迎JavaScript项目,也称为JavaScript Rising Stars

Let’s see what we learned.

让我们看看我们学到了什么。

Vue.js再次排名第一 (Vue.js Is Number One (Again))

Just like last year, Vue.js is the JavaScript project that has accumulated the most new stars in 2017.

去年一样,Vue.js是一个JavaScript项目,在2017年积累了最多的新星。

Now this doesn’t mean it’s the most popular project in terms of total number of stars (that would still be React, with 85,589 stars), but it does make it the fastest-growing two years in a row. And at that rate, Vue should overtake React in about six months!

现在这并不意味着它是恒星总数最受欢迎的项目(仍然是React ,拥有85,589颗恒星),但是它确实使其成为连续两年增长最快的项目。 以这样的速度,Vue应该在大约六个月内超越React!

Also be sure to check out our special write-up by none other than Vue creator Evan You himself!

另外,请务必查看由Vue创作者Evan You本人撰写的特别文章

React的优势在于其生态系统 (React‘s Strength Is Its Ecosystem)

Despite Vue’s success, React is doing great as well.

尽管Vue取得了成功,React也表现出色。

While React itself isn’t adding stars at quite the same rate (as should be expected for an older project), the true success story is the React ecosystem:

尽管React本身并没有以完全相同的速度增加星星(这是一个较旧项目的预期),但真正的成功故事是React生态系统:

The five top projects have accumulated a collective total of 67.9k stars, vs 44.4k for the Vue ecosystem.

前五个项目累计累积了6.79万颗星,而Vue生态系统则为4.44万颗。

Also, now that all this license drama is behind it, the last major barrier to adoption for React may have fallen down. So it’ll be interesting to see how things evolve in 2018.

而且,既然所有这些许可戏都在后面,那么React采纳的最后一个主要障碍可能已经下降。 因此,看看2018年的事情将如何发展将会很有趣。

一个月内,包裹数量超过大多数项目一整年的数量 (Parcel Got More Stars In A Month Than Most Projects Do In a Whole Year)

You’d think that when it comes to yearly rankings, launching your project in December would pretty much destroy any chances of placing in the top 20.

您可能会认为,就年度排名而言,在12月启动您的项目几乎会破坏任何进入前20名的机会。

Don’t tell that to Parcel though: it managed to accumulate over 14k stars in less than one month, shooting it straight to the #12 most popular project overall in 2017.

不过不要告诉Parcel :它在不到一个月的时间内就积累了超过1.4万颗恒星,并将其直接射向了2017年整体上最受欢迎的项目12。

Even more surprising: Parcel added more stars in a single month than category leader Webpack did in a whole year!

更令人惊讶的是:与一个类别的领导者Webpack全年相比,Parcel在一个月内增加了更多的星星!

In fact Parcel’s success took us so much by surprise that we didn’t even have it in our database, and had to scramble to gather the data from other sources (thanks to our friends at Porter.io!).

实际上,Parcel的成功使我们感到非常惊讶,以至于我们甚至都没有将其保存在数据库中,而不得不争先恐后地从其他来源收集数据(感谢Porter.io的朋友们!)。

漂亮是每个人的最爱项目 (Prettier Is Everybody’s Favorite Project)

While everybody was busy trying to make Yet-Another-Front-End-Framework (but this time it’s functional!), the Prettier people decided to take on the real challenge of our times: tabs vs spaces.

当每个人都在忙于制作另一个前端框架时(但是这次它起作用了!),漂亮的人们决定承担我们时代的真正挑战:标签与空格。

And their answer is: who cares? With Prettier, you can use spaces, tabs, or poop emojis*, and Prettier will take care of formatting your code properly on save.

他们的答案是:谁在乎? 使用Prettier,您可以使用空格,制表符或便便表情符号*,并且Prettier将负责在保存时正确格式化代码。

It’s no wonder that Prettier came in #7. In fact, we decided to make it our own unofficial Project of the Year.

难怪Prettier排在第7位。 实际上,我们决定将其设为我们自己的年度非官方项目。

(Note: Prettier may or may not work with poop emojis. We haven’t actually tried this.)

(注意:更漂亮可能无法使用便便表情符号。我们实际上并未尝试过。)

前端战争结束了 (The Front-End Wars Are Over)

Despite our cheap shot at front-end frameworks, the truth is that there aren’t that many of them anymore.

尽管我们对前端框架不屑一顾,但事实是,它们已经不多了。

Move past the classic top 3 (Vue, React, and Angular) and you quickly reach smaller, more niche projects like Preact, Hyperapp, and dva (which I have to confess I had never even heard about before).

跳过经典的前三名(Vue,React和Angular),您很快就会遇到更小,更细分的项目,例如Preact,Hyperapp和dva(我不得不承认,我以前从未听说过)。

While these all have their technical merits, they’re clearly not in the same category as the big three in terms of popularity and ecosystem.

尽管它们都有自己的技术优势,但就普及程度和生态系统而言,它们显然与三大巨头不在同一类别。

And sure, more established frameworks like Ember are still solid alternatives, but they just don’t have the same kind of momentum anymore.

当然,更成熟的框架(如Ember)仍然是可靠的替代方案,但它们不再具有相同的动力。

The result is that the front-end equation has a lot fewer parameters than it used to, which is good news for overworked CTO everywhere. At least, until the next wave of JavaScript hotness hits!

结果是前端方程式的参数比以前少得多,这对于各地劳累的CTO来说都是个好消息。 至少,直到下一波JavaScript热潮来临时!

“ VS代码”中的“ VS”代表“非常成功” (The “VS” in “VS Code” Stands For “Very Successful”)

VS Code crushed its competition to become not only the top JavaScript IDE of the year, but the #6 most popular project overall.

VS Code击败了竞争对手,不仅成为年度最佳JavaScript IDE,而且还是整体排名第六的最受欢迎的项目。

This confirms our previous State of JavaScript results, which showed that VS Code was now the #1 editor among JavaScript devs (and which caused me to migrate from Sublime Text to VS Code myself).

这证实了我们以前JavaScript结果 ,表明VS Code现在是JavaScript开发人员中排名第一的编辑器(这使我自己从Sublime Text迁移到VS Code)。

VS Code’s success story is interesting because it’s far from perfect: its UI has that Microsoft-y clunkiness that seems to infect all their products, it’s a big resource hog, and it can be kinda slow to initialize.

VS Code的成功故事很有趣,因为它远非完美:它的UI具有Microsoft-y笨拙的特性,似乎感染了所有产品,这是一个巨大的资源消耗,而且初始化起来可能有点慢。

Yet use VS Code for a little while, and these flaws stop being that significant. Instead, the IDE-like features, extensibility, and frequent updates translate into a direct productivity boost that makes it hard to imagine using anything else.

但是请使用VS Code一段时间,而这些缺陷就不再那么重要了。 取而代之的是,类似IDE的功能,可扩展性和频繁更新转化为直接的生产力提升,这使得难以想象使用其他任何东西。

And yep, it’s all JavaScript under the hood!

是的,这全都是JavaScript!

下一个是什么? (So What’s Next?)

Overall, this year’s Rising Stars paint a pretty reassuring picture. No major shake-ups, clear dominant players in most categories… could this finally be the end of JavaScript fatigue?

总的来说,今年的新星描绘了一幅令人放心的画面。 没有重大的变化,在大多数类别中都是明显的主导者……这是否最终会成为JavaScript疲劳的终结?

Even if it is, that doesn’t mean JavaScript will stand still.

即使是这样,也不意味着JavaScript会停滞不前。

趋势1:GraphQL万事俱备! (Trend 1: GraphQL All the Things!)

GraphQL may not be mainstream yet, but it has now built a solid foundation of libraries, services, and frameworks that could very well enable a breakout GraphQL-based project to explode next year.

GraphQL可能尚未成为主流,但它现在已经建立了坚实的库,服务和框架基础,这些基础,服务和框架很可能使基于GraphQL的突破性项目在明年爆发。

In 2017 already, Gatsby (which uses GraphQL as part of its data layer) did quite well for itself, coming in at #25 in the overall rankings.

Gatsby (使用GraphQL作为其数据层的一部分)早在2017年就表现出色,在整体排名中排名第25位。

趋势2:原因季节 (Trend 2: Reason Season)

Why should you care about a project that only managed to accumulate a measly 2.1k stars over 2017? Because Reason is made my the same super-smart people that bought you React and GraphQL, in other words Facebook’s open-source division.

您为什么要关心一个在2017年仅累积了2.1万颗星星的项目? 因为Reason是让我成为与您购买React和GraphQL相同的超级人,换句话说就是Facebook的开源部门。

Reason is a language that compiles to JavaScript, which in itself is shaping up to be a big trend in the next coming years.

Reason是一种可编译为JavaScript的语言,它本身在接下来的几年中将成为一个大趋势。

趋势3:更好的工具,以及更多 (Trend 3: Better Tooling, and More of it)

As the successes of Prettier, Parcel, and VS Code show, developers don’t just care about code: they also care about the stuff that helps you write code.

正如Prettier,Parcel和VS Code的成功所展示的那样,开发人员不仅在乎代码:他们还在乎有助于您编写代码的内容。

This may seem self-evident, but just browse through a couple job postings looking for a “Framework XYZ Developer” and you’ll see that our industry’s focus is still squarely on the “what” more than the “how.”

这似乎是不言而喻的,但是只要浏览几个招聘信息以寻找“ XYZ框架开发人员”,您就会发现我们行业的重点仍然是“什么”而不是“如何”。

Maybe 2017’s lesson is that it’s fine to want to reinvent the wheel, but it might also be worth it reinventing the hammer, saw, and chisel first.

也许2017年的教训是,想重新发明轮子很好,但是首先重锤,锯子和凿子也许也值得。

敬请关注 (Stay Tuned)

If you haven’t had your JavaScript fix yet, check out BestOfJS.org for daily updated stats. You can also check out the State of JS survey for even more JavaScript numbers.

如果您尚未修复JavaScript,请查看BestOfJS.org以获取每日更新的统计信息。 您还可以查看JS状态调查,以获取更多JavaScript编号。

And finally, we’re also planning on launching a weekly BestOfJS recap newsletter which will automatically send out the latest stats ranking, so be sure to sign up for that if this sounds interesting.

最后,我们还计划每周发布BestOfJS概述新闻通讯 ,该通讯会自动发送最新的统计信息排名,因此,如果听起来有意思,请务必进行注册。

In the meantime, did we miss anything? Do you have your own predictions for 2018? Let us know in the comments!

同时,我们错过了什么吗? 您对2018年有自己的预测吗? 让我们在评论中知道!

翻译自: https://www.freecodecamp.org/news/we-compiled-stats-for-the-top-javascript-projects-of-2017-heres-what-we-learned-441a1b77468c/

javascript 统计

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值