r/webdev • • Sep 15 '16

Angular 2 Final Released

http://angularjs.blogspot.com/2016/09/angular2-final.html
87 Upvotes

44 comments sorted by

14

u/solidad29 Sep 15 '16

Time to learn then.

2

u/[deleted] Sep 15 '16

I'll give it a few months for things like tooling, documentation, plugins for various editors and such to catch up.

Nothing worse than trying to learn a language/framework where everything you read is wrong because it's for an old version and everything changes with every new version.

I'm looking at you, Symfony...

2

u/ArguingEnginerd Sep 15 '16

True. You really just have to wait for Angular CLI to be finalized in terms of tooling. It doesn't hurt to finally familiarize yourself with how it works. It was just a pain to do that when everything was changing so often.

1

u/solidad29 Sep 16 '16

Well, TypeScript has been around for some time. It's best to start at it while waiting for the Angular 2 to mature a bit.

0

u/[deleted] Sep 15 '16

[deleted]

2

u/[deleted] Sep 15 '16

You're not wrong in that there are tons of jobs in which knowing Angular is a requirement. I have every intention of learning it, but I would be stretched on time to try to do it now because I'm focused on other side projects...because I am in the boat of looking for employment soon. Nothing would make me happier than to never have to look at another line of PHP.

I will point out though, that most shops see no difference between two people who are as identical as they could be except for the fact that one hasn't touched Angular, and the other has worked with it for a couple of months. I'm a developer. I can pick up on new languages without hell freezing over.

1

u/[deleted] Sep 16 '16

I will point out though, that most shops see no difference between two people who are as identical as they could be except for the fact that one hasn't touched Angular, and the other has worked with it for a couple of months.

All things being equal, they'd chose the person who has personal projects done in angular.

1

u/i_spot_ads Sep 15 '16

it's pretty good, been enjoying it since RC4

0

u/[deleted] Sep 15 '16

[deleted]

2

u/i_spot_ads Sep 15 '16

observables? what happened to promises that everyone loved so much?

11

u/Wishmaster90 Sep 15 '16

Never thought I would see it release this year. Congratz to the team and contributors.

1

u/ArguingEnginerd Sep 15 '16

The angular team said a while back that their target date for releasing angular 2 was fall of 2016.

4

u/alejalapeno dreith.com Sep 15 '16

Which normally means it definitely wouldn't release in 2016.

7

u/YaManicKill Sep 15 '16

I don't believe it...

6

u/rk06 v-dev Sep 15 '16

Great, now all we need is an updated angular vs react vs aurelia vs vue vs inferno vs polymer vs next-js-framework article

6

u/t4t5 Sep 16 '16

And the conclusion in the end will again be: "It depends. Choose whichever suits you best!"

2

u/rk06 v-dev Sep 16 '16

A good comparison article would stress pros and cons of each and will tell which is best js framework for which situation.

11

u/JaniRockz Sep 15 '16

Im only used to JS and jQuery. Should I learn A2 or React?

3

u/JohnMcPineapple inadvertently a web dev Sep 15 '16 edited Oct 08 '24

...

3

u/__Warden Sep 15 '16

I think both are nice to learn, just to see how different things can be made. It depends on how much time you have, and if you want to use it.

1

u/[deleted] Sep 15 '16

Plus, I mean, they don't really take that long to learn. There are a few major conceptual differences to wrap your head around, but they're nothing that a couple of hours of research and fiddling around can't clear up.

1

u/[deleted] Sep 15 '16

I think it largely depends on what you're coding. If you're not doing anything that leads to a ton of JS and/or jQuery, then there's not much to gain from switching to either.

On the other hand, if your goal is to write SPAs, then one of those or the alternatives should be a priority.

0

u/[deleted] Sep 15 '16

[deleted]

2

u/RichSniper Sep 15 '16

That's interesting, I'm almost the complete opposite. Every time I try to look at React, I immediately lose context of how the gears are turning.

2

u/i_spot_ads Sep 15 '16

weird, tried both too, ng2 made more sense to me

4

u/__Warden Sep 15 '16

Great news!

4

u/TheHelgeSverre Sep 15 '16

is blogger/blogspot still a thing...

1

u/_wsgeorge Sep 15 '16

It is. But, it looks like a neglected product that Google might kill in the near future.

2

u/test6554 Sep 15 '16

Node version 5.x.x and npm version 3.x.x are required

1

u/pouja Sep 15 '16

And node 6.4.x+ if you want to use their CLI

4

u/[deleted] Sep 15 '16

I pulled down the last RC and played with their CLI. The generated hello work app had like a 2+MB js bundle, WTF.

typescript is pretty cool, but ng2 still looks way too complicated to me. I prefer how react sticks closer to js.

4

u/2uneek javascript Sep 15 '16

If it was 2mb you weren't doing it right, at ng-conf they built a hello world that was sub 50k...

You should learn the tool, or atleast how it works before you judge it... unless you always just push up unminified, unuglified, dev builds to your servers.. then maybe angular 2 is not for you...

Here's a pretty good blog post on how to get a more optimized build with angular 2 http://blog.mgechev.com/2016/06/26/tree-shaking-angular2-production-build-rollup-javascript/

2

u/NYKHouston43 Sep 15 '16

I am a little curious as to why the gzipped default project made from the angular-cli production build is 189 kB. I thought it was supposed to be 50kB unless I'm missing something.

3

u/2uneek javascript Sep 15 '16

Are you using rollup + tree shaking?

Here is Rob Wormald going over the ~49kb build at ng-conf https://www.youtube.com/watch?v=bSssb9AmiJU&t=26m45s

2

u/NYKHouston43 Sep 15 '16

Ah. Thanks. I'll look into it later.

2

u/[deleted] Sep 15 '16

fair enough, thanks for the link

1

u/CodeEverywhere Sep 15 '16

Yeah... angular seems to be getting bulkier and bulkier. I'm sure angular 2 is ok and even helpful for larger-scale sites, but it's starting to seem like a more inappropriate tool for small/medium scale sites...

3

u/2uneek javascript Sep 15 '16

the guy is just wrong though, hes talking about the size of a dev build that has zero optimization - which you would never ever want to push to production. The Angular team was able to build a sub 50k Hello World at ng-conf and said they were pushing to get that even lower...

1

u/CYRIAQU3 Sep 15 '16

So... A1 depreciation date when ?

1

u/_xiphiaz Sep 15 '16

From the Angular team, when usage of Angular 2 exceeds usage of 1. How they will measure that is unknown

1

u/Ani10 Sep 15 '16

Building a new project just to improve my AngularJS "skills" after work. I'm working as a full stack developer freshly out of college and struggle with AngularJS frequently so want to do something at home to improve for work so this brings me to my question. Should I build my next project in Angular 1.x.x or should I start with Angular 2?

4

u/ArguingEnginerd Sep 15 '16

I would just use angular 2 unless you're trying to make a production ready application.

1

u/[deleted] Sep 15 '16

Free 2.1 hour video course on Scotch: https://school.scotch.io/getting-started-with-angular-2

Hope this helps at least someone!

1

u/Maxtream Sep 16 '16

I'll wait for it to mature a bit and have more stable browser support without dozens of additional stuff that must be included in the process by 3rd party libraries. This is just a clusterfuck of libraries, dependencies, scripts that need to be added in order to build app.
I don't doubt that Angular2 is good and should be used. But it's way ahead of what browsers allow us to do yet and this can be changed in the future... basically really unstable.
Even google themselves will sit on ng1 for now.

1

u/[deleted] Sep 16 '16

Once, AngularJS was THE thing to learn. Then it became react. Now it's Angular 2.

0

u/Glinux Sep 16 '16

So AngularJS and Polymer are competing now?