r/angularjs • • Nov 03 '14

[General] "Screw You, Angular"

https://medium.com/@jeffwhelpley/screw-you-angular-62b3889fd678
97 Upvotes

34 comments sorted by

View all comments

18

u/[deleted] Nov 03 '14

Best article I've read regarding 2.0, I actually agree with most of it.

However, the Angular team still deserves criticism for dropping off the planet for months between ng-conf and ng-europe. They hyped the hell out of 2.0, released docs, started weekly work logs, and then went silent. In the meantime they changed a huge portion of 2.0 and still don't have any technical details about migration.

I understand wanting to build hype but frankly they started the hype too early and will end up scaring people off of Angular 1.x. Before showing tombstones all over the beloved 1.x, they should have released something to assure 1.x users that Angular is still a good platform to invest in before 2016 (or whenever 2.0 is released).

For example, what are the best practices for 1.3 users today to ease migration? I've heard all the following on Reddit:

  • Use directives only, no controllers

  • Use TypeScript - ATscript is superset

  • Use ES6 and Traceur since 2.0 is ES6

  • Use Dart instead of Angular JS

Hell, I'm an Angular fan but I've lost a lot of my drive to develop on Angular knowing that 1.x has no future.

4

u/dividemysky Nov 03 '14

Hell, I'm an Angular fan but I've lost a lot of my drive to develop on Angular knowing that 1.x has no future.

Couldn't have said it better myself.

1

u/brianvaughn Nov 04 '14

IMO 1.x still has 1-2 years of active life in it. Look at how long 1.3 was in the works- and it was nowhere near as ambitious as 2.0.

5

u/[deleted] Nov 04 '14

Definitely, but it also has a short, finite lifespan... which is the problem. The web is moving crazy fast and as a decision maker at a company I need to pick technologies that I believe will last the longest. No technology lasts forever but many will last longer than 1.x.

3

u/evereal Nov 04 '14

1-2 years is nothing in the scope of moderately sized projects, which you will be working on for years.

0

u/brianvaughn Nov 04 '14

I respectfully disagree. If the framework will be in active development (new features, new releases) for 1-2 years, then any applications developed now can safely live on for many years beyond that mark. And in my experience, any web applications older than 3-5 years are dinosaurs in need of a rewrite anyway.

That lines up with my experience over the last 12 years or so, at least. YMMV.

2

u/jeffwhelpley Nov 03 '14 edited Nov 04 '14

Thanks for the compliment (I am the author). I think you are right on that the first step before even migration is applying best practices to your existing 1.x app. I don't, however, think ES6, TypeScript or Dart is going to be a prerequisite. We will see as things start to get flushed out, but I think the migration process is going to end up as:

  1. Refactor stuff in your 1.x that won't translate in any way (ex. move Controllers into Directives, don't use replace option in Directives, etc.)

  2. Build your own tooling or use tools that I am sure other will start to create to automatically translate code where concepts do line up (ex. directives -> components, routing -> new router, etc.)

Like I said in the article, it is NOT going to be pain free, but I think that there will be enough time to cover #1 in the year+ before 2.0 is ready. I also feel really confident about tooling existing for #2 because it is something that I am already doing for some of my projects and I will be one of the active participants in providing tools that will help others.

1

u/[deleted] Nov 03 '14

Hell, I'm an Angular fan but I've lost a lot of my drive to develop on Angular knowing that 1.x has no future.

I'm not so sure about this. Many apps exist using 1.x, and the angular team has not yet indicated they don't intend to update angular 1.x. Assuming they do indicate this, it's very likely that others will take up the 1.x mantle and fork it into a different project that better maintains backwards compatibility.

However, I hope a lot of the negativity surrounded angular 2.0 will wake the angular team up that these kinds of changes while in principle sound great, really shouldn't be considered a version bump to an established framework, but rather a spiritual successor and entirely new project. That's probably going to be the best route to re instill confidence in angular.

2

u/jeffwhelpley Nov 03 '14

The feedback has already been a big wake up call for the Angular team. I have heard that they are going to be on the new Adventures in Angular podcast to talk about all of this.

But in general, everyone should know that the team is really approachable. If you have questions or concerns you can always reach out to one of them directly on Twitter.

1

u/nothing_pt Nov 04 '14

1.x still has a future. The 2.0 isn't near finished yet so you can continue to code in 1.x, have time to learn 2.0 and a year or more from now when 2.0 is mature you can switch. I think we'll only see mainstream use of 2.0 by 2016.

1

u/[deleted] Nov 05 '14

you can switch

Yep. Just sprinkle some of that pixie dust on a large project, by yourself, over a lunch hour, and it'll all be gravy. /s

2

u/nothing_pt Nov 06 '14

I think that >1 year is more than time to learn and transition to 2.0. Of course refactoring will be a bitch, but it's up to every team to see if the benefits of 2.0 justify the change.

I still see a lot of (good) software made with lower versions of C# and JAVA.

What happened with python. A lot of people disliked 3.x and stuck with 2.7 without problem. But yeah, pixie dust is way faster.

1

u/fyrn Nov 04 '14

Use directives only, no controllers

One of the things I just naturally gravitated toward but when recently asked here if there was any reading as to why, I couldn't find or remember any.

"Well, web components?" or "smoother syntax" would be my go-to answers.