4 ms·
Very nice idea. Good stuff! Should todolist.js be in a folder called Collections?
by minikomi 14y ago
Very nice idea. Good stuff! Should todolist.js be in a folder called Collections?
- welder 14y agoMaybe, 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.
- minikomi 14y agoYeah, I've been keeping them separate, if only to make it easier to decide what kinds of functions go where.
- polychrome 14y agoYeah, 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?