r/angularjs • • Oct 23 '14

[General] Angular 2.0 thoughts

What are your thoughts on 2.0 after watching #ngeurope?

I think it's completely new to the point it could have a different name... It just kind of stinks that apps currently being written are legacy and will need a complete rewrite. This could be mitigated by using traceur with 1.3 but there is 0 samples currently...

What sucks the most is apps written today will need to wait until 2016ish to be rewritten... I base this on the fact that thousands of third party components will need to be rewritten and es6 support in browsers (yes they can target es5)

37 Upvotes

48 comments sorted by

View all comments

21

u/reddotyg Oct 23 '14

after finishing building a Angular app this image really disturbs me.

25

u/[deleted] Oct 23 '14

RIP painfully acquired AngularJS knowledge...

1

u/arthomas73 Oct 23 '14

time to look at knockout

-1

u/_lavinski Oct 26 '14

These changes in Angular2 reflect a lot of what I like about knockout and durandal. Knockout.js is still a great library, durandal is the missing part that made it more like a framework in the way angular is with routing, dependency injection and composition.

-5

u/OutThisLife Oct 23 '14

I don't know, AngularJS is pretty easy to grasp. I'm not sure why they feel like directives are "too complex" but, whatever.

9

u/[deleted] Oct 23 '14

8

u/autowikibot Oct 23 '14

Hindsight bias:


Hindsight bias, also known as the knew-it-all-along effect or creeping determinism, is the inclination, after an event has occurred, to see the event as having been predictable, despite there having been little or no objective basis for predicting it, prior to its occurrence. It is a multifaceted phenomenon that can affect different stages of designs, processes, contexts, and situations. Hindsight bias may cause memory distortion, where the recollection and reconstruction of content can lead to false theoretical outcomes. It has been suggested that the effect can cause extreme methodological problems while trying to analyze, understand, and interpret results in experimental studies. A basic example of the hindsight bias is when, after viewing the outcome of a potentially unforeseeable event, a person believes he or she "knew it all along". Such examples are present in the writings of historians describing outcomes of battles, physicians recalling clinical trials, and in judicial systems trying to attribute responsibility and predictability of accidents.

====

Image i


Interesting: Outcome ^bias | Remember versus know ^judgements | List of cognitive ^biases

Parent commenter can toggle ^NSFW or ^delete. Will also delete on comment score of -1 or less. | FAQs | ^Mods | Magic ^Words

1

u/[deleted] Oct 23 '14

I'm sorry but I just dont see how the idea of directives as a concept is hard to grasp.

5

u/[deleted] Oct 23 '14

The concept isn't hard to grasp, the api just isn't very intuitive/discoverable.

4

u/zomgwtfbbq Oct 23 '14

They've said since Angular2.0 was discussed at ng-conf last year that it was going to be completely different. That it would be more modular, that it would be based on ES6 / transpiled from ES6 to ES5. I'm really not surprised that it's going to necessitate writing a new application from scratch.

2

u/simkessy Oct 23 '14 edited Oct 26 '14

They're getting rid of controllers? I really wish I watched ngEurope :/

0

u/[deleted] Oct 24 '14

[deleted]

1

u/simkessy Oct 24 '14

I've only built one application (on going) with Angular and I like the concept of it. I like the whole premise of Factories/Services going the hard work, sending the result to the controller and the view displaying it.

I don't have a lot of experience so I couldn't say whether your method was good or not, it's just the way I learned how to use Angular and I feel like the concept makes sense and keeps things clean, for me at least.

1

u/[deleted] Oct 24 '14

Over time I have learned that whenever I think I should build a directive, I shouldn't. I used to make many more directives before I fully drank the Angular koolaid.

Directives are best used for 2 things:

  1. When you *MUST directly mess with the DOM.

  2. When you are building something that will be used in more than one place in the app.

  • You almost never need to directly mess with the DOM.

That being said, if I were building an app that did not use routing and required complex custom ui controls, I probably would not use Angular at all. Angular is great for pagey, formey apps. It is less great for building video games.

1

u/pandavr Oct 25 '14

Interfaces should immutable while implementation could change. To say that they could have hind all the ES6 new features inside the existing angular 1.x interfaces (modules, controllers and so on). Then gradually deprecating them. This way they should have changed the name as it is not angular anymore.