TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Angular 2: Built on TypeScript

426 点作者 hswolff大约 10 年前

30 条评论

WhitneyLand大约 10 年前
Angular 2 is having a lot of pushback and challenges, but this may be a positive.<p>First, there have been hard feelings over breaking backward compatibility. To rub salt in the wound the new syntax doesn&#x27;t seem to buy you much for many basic scenarios. If you are going to push big breaking changes you need to show big benefits that are easy to understand at a glance.<p>Secondly, the Ember community started small but has been kicking ass for a while now and making many improvements that are compelling to developers. It&#x27;s a modern framework, but also easier to understand than some competitors like react.<p>I see the Typescript move as a positive because it shows they are at least trying to do what&#x27;s right even when using tech from one of the biggest competitors. How this played internally at Google to overcome executive knee-jerk&#x2F;bureaucracy&#x2F;pettiness I don&#x27;t know, but it&#x27;s a good sign.<p>The community has clearly spoken, and the future of Angular is now riding on how well they absorb and react to the feedback and advances from competing teams.
评论 #9154306 未加载
评论 #9154686 未加载
评论 #9154877 未加载
评论 #9154632 未加载
评论 #9153035 未加载
评论 #9153094 未加载
评论 #9153050 未加载
skeeterbug大约 10 年前
&quot;Special shout out to Yehuda Katz, who helped us design the annotation+decorator proposal which helped make this work possible.&quot;<p>How in the world does this man keep up with all these projects? He needs to write a book on motivation.
评论 #9153268 未加载
评论 #9153401 未加载
评论 #9153639 未加载
skrowl大约 10 年前
This isn&#x27;t really a big jump, as they were using AtScript before which was really just a forked TypeScript: <a href="https://docs.google.com/document/d/11YUzC-1d0V1-Q3V0fQ7KSit97HnZoKVygDxpWzEYW0U/edit" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;document&#x2F;d&#x2F;11YUzC-1d0V1-Q3V0fQ7KSit9...</a><p>They must have convinced Microsoft to accept their patches into mainline TypeScript.
评论 #9152082 未加载
评论 #9152305 未加载
aikah大约 10 年前
I don&#x27;t care what people say Angular totally suffers from the second system effect.<p><a href="http://en.wikipedia.org/wiki/Second-system_effect" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Second-system_effect</a>
评论 #9152736 未加载
评论 #9153036 未加载
评论 #9152561 未加载
评论 #9156523 未加载
评论 #9152704 未加载
评论 #9155359 未加载
评论 #9152486 未加载
usingpond大约 10 年前
As if we didn&#x27;t have enough reason to move on from Angular. Now you need to learn Typescript to contribute or grok the source files?
评论 #9152745 未加载
评论 #9152114 未加载
评论 #9152105 未加载
评论 #9153207 未加载
评论 #9152685 未加载
评论 #9153746 未加载
评论 #9152310 未加载
评论 #9152264 未加载
评论 #9152382 未加载
JustSomeNobody大约 10 年前
Is javascript really so bad?<p>Edit: Why did this question get down voted? It was an honest question...
评论 #9152155 未加载
评论 #9152228 未加载
评论 #9152890 未加载
评论 #9153715 未加载
评论 #9153020 未加载
the_gipsy大约 10 年前
Yay! I have tested TypeScript in hobby projects with a very positive experience. I have actually used typescript together with angular once. I was very disappointed when angular announced that they were going to make some kind of fork, for the runtime annotations they needed, instead of working together.
评论 #9153161 未加载
dchuk大约 10 年前
So Angular has gone from being written in plain JS, to Dart, to Atscript, and now Typescript? Why so much jumping around? Isn&#x27;t that creating a lot of technical debt issues?
评论 #9152191 未加载
评论 #9152219 未加载
评论 #9152144 未加载
评论 #9152115 未加载
评论 #9152091 未加载
boothead大约 10 年前
Wow! That&#x27;s pretty big news!<p>Very much looking forward to seeing what insights come out of rebuilding something like angular with types.<p><i>edit</i> actually on second reading, I&#x27;m not sure what&#x27;s been rewritten in what?
digdigdag大约 10 年前
Are there any organized efforts to fork the 1.x branch to sustain existing applications?
评论 #9153220 未加载
评论 #9153453 未加载
评论 #9152827 未加载
tegeek大约 10 年前
Looking at the example source code &amp; having experience of AngularJs &amp; TS, I would say this is a huge development in term of enterprise adoption.<p>Statically typed, annotations, built-in dependency injection, comprehensive test support (easy to write testable code), declarative UIs, 100s of already available libraries &amp; above all support from Google and Microsoft. I can say this with confidence that even with a complete rewrite &amp; not backward compatible, AngularJS 2 with TS is going to be a huge success for everyone.<p>And sooner or later, all other frameworks will adopt ECMA Script 6 because of standardisation of so many things (modules, classes etc.)<p>I would also like to add that this is a very exciting time for JavaScript developers because there are so many things happening &amp; companies of all sizes will keep investing good amount of money moderating their JS code bases.
评论 #9154499 未加载
arikrak大约 10 年前
If Google is promoting TypeScript, can they still promote Dart? How many alt-javascript&#x27;s can one company promote?
评论 #9155931 未加载
Keats大约 10 年前
Anyone successfully using typescript with react&#x2F;flux? I found it a bit cumbersome to use with most of the flux implementations
评论 #9155464 未加载
评论 #9155424 未加载
ChicagoDave大约 10 年前
My brain just broke. I can&#x27;t even imagine Google and Microsoft working together on anything as big as Angular. The Universe just took a 90 degree turn.
pluma大约 10 年前
Does that mean they have finally given up on AtScript?
评论 #9152032 未加载
cdnsteve大约 10 年前
Angular.ts ...
thomasfl大约 10 年前
&quot;Special shout out to Yehuda Katz, who helped us design the annotation+decorator proposal which helped make this work possible.&quot;<p>The feverish Yehuda Katz is everywhere! But most importantly he is here on Hacker News and has close to 6000 <a href="https://news.ycombinator.com/user?id=wycats" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;user?id=wycats</a>
jugularkill大约 10 年前
There&#x27;s clearly a corporate agenda with 2.0 but who cares. The most important question is &quot;Is this the best thing for my scenario?&quot; Probably not but it has a name.<p>There&#x27;s too much talk about &quot;typescript&quot; and not enought about what problems Angular 2 solves compared to &quot;not&quot; having a ready made framework or how many problems it adds.
plurby大约 10 年前
Here is a nice introduction video to TypeScript from ng-conf 2015 <a href="https://www.youtube.com/watch?v=U7NYTKgkZgo" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=U7NYTKgkZgo</a>
electrotype大约 10 年前
Why not Dart?
评论 #9152459 未加载
评论 #9152326 未加载
评论 #9152095 未加载
评论 #9167257 未加载
评论 #9153179 未加载
评论 #9152014 未加载
评论 #9152196 未加载
shockzzz大约 10 年前
Remember Angular Dart?
评论 #9154656 未加载
评论 #9154647 未加载
itsbits大约 10 年前
One of the reasons, people preferred Angular was its learning curve...now, its more or less equal to Ember or Knock out...
taylorbuley大约 10 年前
Can anyone clarify if TypeScript usage is in place of Dart or in addition to Angular Dart?
评论 #9152481 未加载
评论 #9153996 未加载
outsidetheparty大约 10 年前
My main feeling about this is not so much about typeScript (which, meh, some syntax sugar I don&#x27;t care about, and tooltips for an IDE I don&#x27;t use) -- more it&#x27;s that just the mere whiff of Microsoft&#x27;s involvement will be enough to snuff out remaining developer interest in Angular 2.
评论 #9153317 未加载
评论 #9152715 未加载
andrewrice大约 10 年前
At this point, should a newcomer learn Angular 2 or stick to 1.*?
sebastianconcpt大约 10 年前
Dude you don&#x27;t even virtual-dom
pbowyer大约 10 年前
Is TypeScript the new CoffeeScript?
评论 #9154780 未加载
评论 #9154792 未加载
evbots大约 10 年前
wtf
yawz大约 10 年前
Oh no!
tonyedgecombe大约 10 年前
Embrace, extend, extinguish.
评论 #9152147 未加载
评论 #9153469 未加载
评论 #9152220 未加载
评论 #9152254 未加载