Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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?


Yeah, I've been keeping them separate, if only to make it easier to decide what kinds of functions go where.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: