r/programming • • Mar 18 '14

AngularJS 2.0

http://blog.angularjs.org/2014/03/angular-20.html
213 Upvotes

71 comments sorted by

View all comments

2

u/rdcll Mar 18 '14

using Object.observe() when it becomes available in Chrome M35

I don't understand this. Why they didn't use a clean Observer pattern from day zero? And why don't they use Object.watch which is already available (or can be implemented in old browsers) ?

11

u/NeverSpeaks Mar 18 '14

Angular doesn't use an Observer pattern because it didn't want to use a Model object like some other frameworks. In angular you can use any plain old javascript object I want as long as I attach it to the $scope.

11

u/Asmor Mar 18 '14

plain old javascript object

Dude, you gotta call them POJOs or else people will ignore them because it doesn't sound sexy if it doesn't have an acronym.

3

u/bitspace Mar 18 '14

Except that's already in use for Java.

2

u/Asmor Mar 18 '14

Meh.

It fits JS pretty damn well too.