4 ms·
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.
by welder 14y ago
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.
- 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?