Live data from Hacker News

Angular 2 Beta released

angularjs.blogspot.com

61–70 of 273 posts

Re: Angular 2 Beta released

#61
post #46

Uh did Angular not get the memo that people hate the new syntax and typescript? This is how you turn the most popular javascript MVC framework to nothing.

Typescript is very popular from what I read here and there.

Angular 2, on the other hand, has so far been received very coolly.

Re: Angular 2 Beta released

#62
post #54
post #46

Uh did Angular not get the memo that people hate the new syntax and typescript? This is how you turn the most popular javascript MVC framework to nothing.

If only typescript was written by facebook or google then people wouldn't hate it.

Flow was written by Facebook, yet TypeScript seems markedly more popular and well-liked. There are some who hate TypeScript because MS, and there are some who hate Flow (and React) because FB. But most of the criticism against TS has, anecdotally, been technical in nature.

Edit: by popular I didn't mean that it's merely used by more people. I've clarified that.

Re: Angular 2 Beta released

#63
post #52

Anyone have an upgrade plan for 1.x? I work on a rather large Angular 1.4 codebase daily and while this is good news, I'm not sure how we'd ever upgrade to be honest.

there's a very nice strategy for this - the upgrade module allows you to run ng2 components inside of ng1 apps (or vice-versa) so you can incrementally upgrade.

There's a great blog post by the Thoughtram team here : http://blog.thoughtram.io/angular/2015/10/24/upgrading-apps-...

Re: Angular 2 Beta released

#64
post #53
post #46

Uh did Angular not get the memo that people hate the new syntax and typescript? This is how you turn the most popular javascript MVC framework to nothing.

I know typescript isn't required, I'm not sure about the new syntax tho.

The syntax is much better now. It is easier to understand and allows better tooling.

Re: Angular 2 Beta released

#65
post #46

Uh did Angular not get the memo that people hate the new syntax and typescript? This is how you turn the most popular javascript MVC framework to nothing.

From what I've seen, there are a lot of vocal proponents of Typescript, but not many vocal detractors. Which of those is the actual majority is hard to day.

I have a theory that many of the people who like Typescript came from a statically-typed background (Java, C#, etc) and don't like the loosely-typed world of Javascript.

More speculation: People who came to front-end development by choice are happier with Javascript than those who were transplanted from the server side and forced to convert to the One Language Of Browsers (ignoring transpilers, of course).

Re: Angular 2 Beta released

#66
post #62
post #54

Earlier quoted context omitted.

If only typescript was written by facebook or google then people wouldn't hate it.

Flow was written by Facebook, yet TypeScript seems markedly more popular and well-liked. There are some who hate TypeScript because MS, and there are some who hate Flow (and React) because FB. But most of the criticism against TS has, anecdotally, been technical in nature. Edit: by popular I didn't mean that it's merely used by more people. I've clarified that.

I'm not talking about popularity. I'm talking about indiscriminate hate because it's connected with microsoft. C# has suffered the same stigma since the beginning.

Re: Angular 2 Beta released

#67
I've just started working on an app using Angular 2 and Ionic 2.:

1. TypeScript - It's really nice to be able to use a typed version of JS, although it does feel like I'm writing C# sometimes! It supports lambda syntax / ES6 which is great.

2. Annotations seem a bit clunky, not really sure what the point of them is.

3. Absolutely love the functional reactive / RxJS stuff they've incorporated - it's going to make it VERY easy to write really powerful apps.

4. It's a million times easier to develop with than angular 1. $scope.apply anyone?

Re: Angular 2 Beta released

#68

Resources for learning Angular2?

[Shameless plug]: I've been writing a book on Angular 2 over the past few months: ng-book 2 [1]. If you want to write your first app, you can get the first chapter of our book for free.

You can of course learn Angular 2 from lots of disparate blogs on the internet. There's lots of good resources. But the goal of our book is that you'll be able to learn everything, in-order, in one place.

We've been keeping the book updated alongside Angular's development (though it will take us a few days to get up to the most recent beta). We've already updated the book over a dozen times, so I think you'll really like it.

[1]: https://www.ng-book.com/2/

Re: Angular 2 Beta released

#69
I'm curious what Angular 2 is like for developers who normally write React? I hear 2 is a lot better than 1, but I'm still turned off by the amount of Angular-specific terminology, whereas most of React terminology is not necessarily React-specific.

Re: Angular 2 Beta released

#70

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

I've been using TypeScript for a few months now and have been so impressed with it that I am beginning to favor Angular 2 over React just because of Angular 2's TS integration.

TypeScript basically made JavaScript more powerful and a whole lot more fun for me. I feel so much better about slinging around parameters now that I know my IDE will catch type/parameter mismatches before I run the code, before I build it, even before I save the file! It simply alerts me in the IDE (I use VSCode which I also love). This is a huge time saver.

Another great thing is the intellisense, which allows me to keep on coding without looking at some API documentation or other files in the project. The intellisense even has the documentation in it - so this is a really fun and efficient way to learn new libraries and frameworks.

I didn't even know how much I missed enums in JavaScript until I started using them in TS. Also love the fact that you can revert to using the Any type if you have to and there is even support for generics as well.

All of this stuff can be had in various transpilers or IDEs, but TypeScript and VSCode just bring everything together in a very simple yet powerful way.

Post reply on HN