-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为何 TypeScript 愈发流行了? #1645
为何 TypeScript 愈发流行了? #1645
Conversation
loveky
commented
May 9, 2017
@sqrthree 翻译完成,请求校对 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 整体翻译的很好,很通顺。
TODO/typescript-getting-popular.md
Outdated
|
||
The recent [Stack Overflow Developer Survey](https://stackoverflow.com/insights/survey/2017#technology) and the annual [RedMonk](http://redmonk.com) programming [language rankings](https://redmonk.com/sogrady/2017/03/17/language-rankings-1-17/) both showed that [TypeScript](https://www.thenewstack.io/tag/TypeScript) — the open source project started by Microsoft to combine transpiling for advanced JavaScript features with static type checking and tooling — is reaching new heights of popularity. By providing[ minimal checking syntax on top of JavaScript](https://medium.com/@tomdale/glimmer-js-whats-the-deal-with-typescript-f666d1a3aad0), TypeScript allows developers to type check their code, which can [reveal bugs and generally improve the organization and documentation](https://slack.engineering/typescript-at-slack-a81307fa288d) of large JavaScript code bases. | ||
在最近的 [Stack Overflow 开发者调查](https://stackoverflow.com/insights/survey/2017#technology)以及年度 [RedMonk](http://redmonk.com) 编程[语言排名](https://redmonk.com/sogrady/2017/03/17/language-rankings-1-17/)中都显示 [TypeScript](https://www.thenewstack.io/tag/TypeScript) —— 由微软发起的结合了编译高级 JavaScript 特性与静态类型检查及工具的开源项目 —— 正在达到新的人气高度。通过为 JavaScript 提供[最基本的检查语法](https://medium.com/@tomdale/glimmer-js-whats-the-deal-with-typescript-f666d1a3aad0),TypeScript 允许开发者对他们的代码进行类型检查,这可以暴露 bug 并改善大型 JavaScript 代码库的结构和文档。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
暴露 bug 并改善大型 JavaScript 代码库的结构和文档
这个链接忘了?
TODO/typescript-getting-popular.md
Outdated
|
||
RedMonk’s [Stephen O’Grady ](http://redmonk.com/team/stephen-ogrady/)notes that “it seems reasonable to suspect that Angular is playing a role” in the increasing popularity of TypeScript. Angular2 is just one of the projects that has adopted TypeScript though (Asana and Dojo already used it, as do internal projects at Adobe, Google, Palantir, SitePen and eBay). But it might be the best known — with Google employees like Rob Wormald [@robwormald] evangelizing TypeScript alongside Angular. | ||
来自 RedMonk 的 [Stephen O’Grady](http://redmonk.com/team/stephen-ogrady/) 指出『似乎有理由相信 Angular』在 TypeScript 的日益普及中发挥了作用。Angular2 只是众多使用了 TypeScript 的项目中的一个(Asana 和 Dojo 已经在使用了,Adobe、Google、Palantir、SitePen 以及 eBay 的一些内部项目也是一样)。但最为人们所熟知的,恐怕还是像 [Rob Wormald](https://twitter.com/robwormald) 这样的 Google 员工在宣传 Angular 时顺带推广了 TypeScript。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Angular2 只是众多使用了 TypeScript 的项目中的一个
虽然 Angular2。。。这样感觉更通顺一些。
TODO/typescript-getting-popular.md
Outdated
|
||
That vote of confidence is broader than just Angular, he pointed out. “Lots of other frameworks are using TypeScript at this point. [Aurelia](http://aurelia.io/), [Ionic](https://ionicframework.com/), NativeScript are all, in one way or another, involved in TypeScript. The [Ember ](https://www.emberjs.com/)framework, the [Glimmer ](https://github.com/glimmerjs)framework that was just released is written in TypeScript.” | ||
他指出,这种信任投票带来的影响比 Angular 更广泛。『目前,许多其它框架也在使用 TypeScript。[Aurelia](http://aurelia.io/)、[Ionic](https://ionicframework.com/)、NativeScript都以某种方式使用了 TypeScript。[Ember](https://www.emberjs.com/) 框架与 [Glimmer](https://github.com/glimmerjs) 框架的最新发布版本就是使用 TypeScript 编写的。』 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种信任投票带来的影响比 Angular 更广泛
感觉这句不太精确。文章应该不是比较 ts的影响比angular更广泛,而是说:这种信任投票并不仅限于angular,还有。。。。
TODO/typescript-getting-popular.md
Outdated
|
||
[![](https://cdn.thenewstack.io/media/2017/04/940acc19-stateofthenation.png)](http://vmob.me/DE1Q17) | ||
|
||
React is a library with Facebook roots. Angular is a Google-spawned framework. There is abundant analysis comparing them, and in general, it shows that Angular trails, with Vue.js getting significant buzz. Angular has seen a lot of uptake among TypeScript fans, with 41 percent prioritizing 2.x and another 18 percent favoring the older version. With the recent release of Angular 4 and TypeScript’s growing popularity, we expect the JavaScript wars to continue (Lawrence Hecht). | ||
React 是由 Facebook 发起的库。Angular 是从 Google 衍生出来的框架。有很多分析把它们做了比较。总得来说,Angular 处于领跑地位,与此同时 Vue.js 正在受到大量关注。Angular 在 TypeScript 的用户圈中受到追捧,41% 的人倾向于 2.x 版本,另外 18% 的人则更喜欢老版本。随着近期 Angular 4 的发布以及 TypeScript 的日益流行,我们预计 JavaScript 的战争还将持续下去(Lawrence Hecht)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
总得来说
总的来说
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Angular trails。
我的理解是:Angular是追赶者。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这段文字前面那个图里,Angular的份额最大,说是追赶者不合适吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是很确定:trails 是『追踪』,直接理解就是追赶者。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也认为这个应该是追随吧。
那个图里面es5跟es5+圈子里 react是很大优势的,大家也都懂这本来就是事实嘛。
而且这句话对比后面的在3%的typescript圈子里面angular才是占了大头,但是typescript圈子现在还很小,所以应该就是追随,再说不管这篇文章怎么说,事实也是如此嘛😄
TODO/typescript-getting-popular.md
Outdated
|
||
The general rise in interest seems to be one of organic growth. “We don’t do any advertising whatsoever, this is all driven by the community. It’s actually steady growth and we’re just starting to notice the larger numbers now,” Hejlsberg said. | ||
关注度的提高似乎是用户增长的原因之一。『我们没做过任何推广,所有这些都是社区驱动的。实际上是在稳步增长,我们现在开始注意到更大的数字了。』Hejlsberg 说道。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们现在开始注意到更大的数字了。
感觉这句有点太直译了:增长的速度更快了?
TODO/typescript-getting-popular.md
Outdated
|
||
## JavaScript: Powerful but Complex ## | ||
『我们是一个开源项目,我们在 GitHub 上做了很多工作。我们绝不合并任何 pull request,除非它能通过我们现有的 55000 个测试;如果是增加新功能,就必须提供相应的测试代码;如果是修改 bug,就必须提供回归测试。这意味着我们的 master 分支始终保持着很高的代码质量。』他说道。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们绝不合并任何 pull request,除非它能通过我们现有的 55000 个测试;
建议: 只有通过现有的 55000 个测试的pull request才能够被合并。(感觉更通顺一些,不改也可以~~)
@aladdin-add 已更新 |
@aladdin-add 辛苦啦 |
TODO/typescript-getting-popular.md
Outdated
*TNS analyst [Lawrence Hecht](https://thenewstack.io/author/lawrence-hecht/) contributed to this report.* | ||
『是的,它变得更复杂,但也有着无限多的能力。』 Hejlsberg 谈到 JavaScript 时说道。『利用 JavaScript,你可以使用同一种语言和工具开发出如此多种类的应用。对我而言,这正是推动所有这一切的原因:你可以开发不同类型应用的多样性以及你能从这个不断进化的生态系统中获得的可重用性。它不仅仅变得更复杂了,也更强大了。』 | ||
|
||
*TNS 分析员 [Lawrence Hecht](https://thenewstack.io/author/lawrence-hecht/) 为此份报告的撰写提供了帮助。* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: 加粗。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
我来个二校吧@sqrthree |
@Germxu 好的 |
TODO/typescript-getting-popular.md
Outdated
|
||
Nine and a half percent of the developers Stack Overflow surveyed are using TypeScript, making it the ninth most popular language, just ahead of Ruby and twice as popular with that audience as Perl. Stack Overflow reaches a diverse audience in this survey; the top two languages used are JavaScript and SQL, so this survey isn’t just querying front end development. In fact, TypeScript coders show up in all four of the job roles Stack Overflow asks about; web developers, desktop developers, admins and DevOps, and data scientists. | ||
参与了 Stack Overflow 调查的开发者中有 9.5% 的人正在使用 TypeScript,这使得 TypeScript 成为了第九流行的编程语言。排名在 Ruby 之前,用户量是 Perl 的两倍。此次 Stack Overflow 调查中的受访者来自不同领域;使用最广泛的两种语言是 JavaScript 和 SQL,这说明此次调查并非只针对前端开发。事实上,TypeScript 程序员出现在了参与 Stack Overflow 调查的所有 4 种工作角色中;web 开发者、桌面开发者、系统管理员与 DevOps 以及数据科学家。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
成为了第九流行的编程语言,排名在ruby。。。
受访者来自不同领域,使用最广泛的。。。
4种工作角色中:web 开发者。。。
是标点符号用的不对。。。
TODO/typescript-getting-popular.md
Outdated
|
||
TypeScript also has both the highest usage (21 percent) and the highest interest among those not yet using it (39 percent) among the various “alternative” JavaScript [flavors](http://stateofjs.com/2016/flavors/) in another survey of developers. The methodology of this survey is unusual — it rather strangely conflates transpilers with package managers like [npm](https://www.npmjs.com/) and [Bower](https://bower.io/) — but the developers who responded to the survey and use TypeScript also commonly use [ECMAScript 2015](http://www.ecma-international.org/ecma-262/6.0/), [NativeScript](https://www.nativescript.org/), [Angular](https://angular.io/), and especially Angular2. | ||
在另一个针对开发者的调查中,TypeScript 在众多 JavaScript 的『替代』[风格](http://stateofjs.com/2016/flavors/)中拥有最高的使用率(21%)以及尚未的用户中最高的关注度(39%)。这项调查的方式不同寻常 —— 它很奇怪的将转译器和包管理器(如 [npm](https://www.npmjs.com/) 和 [Bower](https://bower.io/))混合在一起 —— 但参与了这项调查且经常使用 TypeScript 的开发者也经常使用 [ECMAScript 2015](http://www.ecma-international.org/ecma-262/6.0/)、[NativeScript](https://www.nativescript.org/)、[Angular](https://angular.io/),尤其是 Angular2。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
它很奇怪地将转译器。。。
TODO/typescript-getting-popular.md
Outdated
|
||
RedMonk’s [Stephen O’Grady ](http://redmonk.com/team/stephen-ogrady/)notes that “it seems reasonable to suspect that Angular is playing a role” in the increasing popularity of TypeScript. Angular2 is just one of the projects that has adopted TypeScript though (Asana and Dojo already used it, as do internal projects at Adobe, Google, Palantir, SitePen and eBay). But it might be the best known — with Google employees like Rob Wormald [@robwormald] evangelizing TypeScript alongside Angular. | ||
来自 RedMonk 的 [Stephen O’Grady](http://redmonk.com/team/stephen-ogrady/) 指出『似乎有理由相信 Angular』在 TypeScript 的日益普及中发挥了作用。虽然Angular2 只是众多使用了 TypeScript 的项目中的一个(Asana 和 Dojo 已经在使用了,Adobe、Google、Palantir、SitePen 以及 eBay 的一些内部项目也是一样)。但最为人们所熟知的,恐怕还是像 [Rob Wormald](https://twitter.com/robwormald) 这样的 Google 员工在宣传 Angular 时顺带推广了 TypeScript。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
虽然。。。但是。。。不应该是一句话吗?
TODO/typescript-getting-popular.md
Outdated
|
||
The general rise in interest seems to be one of organic growth. “We don’t do any advertising whatsoever, this is all driven by the community. It’s actually steady growth and we’re just starting to notice the larger numbers now,” Hejlsberg said. | ||
关注度的提高似乎是用户增长的原因之一。『我们没做过任何推广,所有这些都是社区驱动的。实际上是在稳步增长,我们现在开始注意增长速度更快了。』Hejlsberg 说道。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意到增长速度更快了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有一些小问题需要调整下哈。辛苦啦。
TODO/typescript-getting-popular.md
Outdated
@@ -1,88 +1,89 @@ | |||
> * 原文地址:[Why TypeScript Is Growing More Popular](https://thenewstack.io/typescript-getting-popular/) | |||
> * 原文作者:[Mary Branscombe](https://thenewstack.io/author/marybranscombe/) | |||
> * 译文出自:[掘金翻译计划](https://github.com/xitu/gold-miner) | |||
> * 译者: | |||
> * 译者:[loveky](https://github.com/loveky) | |||
> * 校对者: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
校对者信息要加上
TODO/typescript-getting-popular.md
Outdated
|
||
RedMonk’s rankings combine the Stack Overflow numbers with GitHub pull requests to find out what developers are thinking about, as well as what they’re using. TypeScript has also gained popularity with this audience of developers, moving from 26 to 17 in the rankings. Some of that is down to interest on Stack Overflow, but mostly it’s because of the increased developer involvement on GitHub. | ||
RedMonk 的排名将 Stack Overflow 的数据与 Github 上的 pull request 结合起来试图理解开发者的想法以及他们正在使用什么。TypeScript 同样受到了开发者的欢迎,排名从第 26 位上升到了第 17 位。其中一部分原因是 TypeScript 在 Stack Overflow 上关注度的提升,但主要还是因为在 GitHub 上参与的开发者在不断增多。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
『Github』=>『GitHub』
@sqrthree 修改完毕 |
@loveky 已经 merge 啦~ 快快麻溜发布到掘金专栏然后给我发下链接,方便及时添加积分哟。 |