News for hackers. Stuff that matters.
Re:Replacing most of D3.js with pure SVG and AngularJS by coldtea on Sunday December 01, 2013 @05:16PM (#6829654)
>I read about how one should ditch jquery plugins and rewrite them the "pure angular way" which makes sense for smaller stuff but there are so many very useful jquery plugins that have been around for years with alot of people working on them.

Actually it's supposed to make sense for the larger stuff -- Angular is not something to just replace a few small bindings in a your page while you do the rest of the stuff in 2005 way.

As for those "jQuery plugins that have been around for years" most of them are badly coded rubbish compared to what you're supposed to write in Angular style.

Re:Replacing most of D3.js with pure SVG and AngularJS by wwweston on Sunday December 01, 2013 @05:37PM (#6829751)
> Angular is not something to just replace a few small bindings in a your page while you do the rest of the stuff in 2005 way.

If we're talking about the jQuery way, let's at least say "2006", since that's when it was released, though it arguably didn't become "the" way for another few years afterwards. The big news in 2005/2006 was still Prototype.js.

> most of them are badly coded rubbish compared to what you're supposed to write in Angular style.

Or we don't have the benefit of 5 years of hindsight about what's problematic (or, "rubbish", if you will) when it comes to Angular style.

Re:Replacing most of D3.js with pure SVG and AngularJS by kayoone on Sunday December 01, 2013 @07:16PM (#6830217)
From my understanding other frameworks like Ember rely heavily on jQuery, unfortunately i havent really worked with them so i dont know what that means for plugins. We can not reuse angular directives in Ember/Backbone/Meteor so it doesnt make sense to spend the effort to reimplment bigger plugins/libraries imo.

It would actually be the other way round, you build your app in angular and for some specific view related code you use a proven and stable jQuery plugin, which imo still makes sense.

Furthermore you are being hyberbolic, jQ wasnt even released in 2005. In reality, when i have a client project with tight deadlines to finish and i need drag and drop functionality (as an example), i have little motivation to rewrite that just to avoid a jquery plugin that does the same thing and is much more mature.