3 ms·
... that's not always the case. I don't know if there's enough out there yet to establish a canon, but we try to keep most reusable business logic in the models
by jashkenas 15y ago
... that's not always the case. I don't know if there's enough out there yet to establish a canon, but we try to keep most reusable business logic in the models, and leave views to UI concerns. If you want to browse around:
https://github.com/documentcloud/documentcloud/tree/master/public/javascripts https://github.com/documentcloud/documentcloud/tree/master/p...
- bemaniac 15y agoTo rephrase, we found that most logic in our app was view/event/interaction-related, and we found that keeping that stuff in the views made more sense for us.