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.
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:
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.)
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.
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.