News for hackers. Stuff that matters.
Re:Show HN: I rewrote the Backbone.js Todo example by minikomi on Thursday March 14, 2013 @01:54AM (#5373305)
Very nice idea. Good stuff! Should todolist.js be in a folder called Collections?
Re:Show HN: I rewrote the Backbone.js Todo example by welder on Thursday March 14, 2013 @02:05AM (#5373333)
Maybe, I like to pretend it's a flask app and lump anything that models an api resource in the same folder. After all, a Collection is just an array of Models.

What do you think?

Probably should be named TodoCollection.js either way.

Re:Show HN: I rewrote the Backbone.js Todo example by polychrome on Thursday March 14, 2013 @09:03AM (#5374658)
Yeah, I have to agree with keeping them separate and renaming it to TodoCollection.js.

As someone looking at this for the first time, even after breezing over the code that was my immediate question: wait, where was the collection again?

Re:Show HN: I rewrote the Backbone.js Todo example by minikomi on Thursday March 14, 2013 @02:42AM (#5373441)
Yeah, I've been keeping them separate, if only to make it easier to decide what kinds of functions go where.