News for hackers. Stuff that matters.
Re:You have ruined JavaScript by fauigerzigerk on Wednesday April 23, 2014 @07:45AM (#7633328)
It's even worse. In Java the whole factory/provider approach was down to a limitation of the type system. Yes they (we) went completely overboard with it and the ridicule is deserved.

But what on earth is the justification for using that pattern in a dynamically typed language that lets you tack anything onto an existing object without controlling its creation?

Re:You have ruined JavaScript by Bahamut on Wednesday April 23, 2014 @08:01AM (#7633397)
I too was interested in what decisions spurred this design with application using Angular at one point, and there is a talk from ng-conf by one of the core developers of Angular that I think illuminates this: https://www.youtube.com/watch?v=_OGGsf1ZXMs

It boils down to managing complexity in complex web apps.

Re:You have ruined JavaScript by insin on Wednesday April 23, 2014 @08:18AM (#7633465)
So it's a ComplexComplexApplicationComplexityManager.