Re:Coding the Angular Tutorial App in Backbone
by nateabele on Wednesday April 16, 2014 @04:55PM
(#7600484)
> "I want to write a bunch of gross code to perform dirty checking of objects to keep everything in sync" said no UI developer ever.
Except that this is in no way an equivalent comparison. With Backbone, you actually have to write the hundreds of callbacks in your application code.
Whereas with Angular, you attach a value to a scope, and declare it in a template. In that case, the framework actually does take care of the 'ugly' for you.
Backbone keeps the ugly in front of your face, it just gives you a slightly neater way to organize it (i.e. as compared to jQuery soup).
Re:Coding the Angular Tutorial App in Backbone
by kevincennis on Wednesday April 16, 2014 @06:16PM
(#7600858)
My fault. I guess I misunderstood the point being made.
Re:Coding the Angular Tutorial App in Backbone
by coderzach on Wednesday April 16, 2014 @06:53PM
(#7601026)
Or you use a templating engine/language and write a simple reusable adaptor. An adaptor you have to write once, assuming one doesn't already exist.
Re:Coding the Angular Tutorial App in Backbone
by rybosome on Wednesday April 16, 2014 @04:53PM
(#7600473)
If I'm reading the above comment correctly, the author is stating that Backbone surfaces this to the user. To manage state in a Backbone app requires lots of callback binding.
Re:Coding the Angular Tutorial App in Backbone
by colemorrison on Thursday April 17, 2014 @05:52AM
(#7602738)
Huh? I've written quite a few large scale angular apps...and I haven't written a bunch of code to do any of that. If you have something that needs to be checked outside of angular, it belongs in a directive.
"I want to write a bunch of gross code to perform dirty checking of objects to keep everything in sync" said no UI developer ever.
That's the point of libraries and frameworks. They do the repetitive or "ugly" or "hard" things that we don't want to do over and over.