vendredi 17 octobre 2014

Improving code quality/organization of event-heavy riot applications


Vote count:

0




I am building an application using riot.js and jquery. Everything works as expected, however as the code grows, so does my worries that triggering and handling events (.trigger/.on) in random/unexpected places in the code is doing nothing to keep my code organized and quickly understandable.


My questions are: (1) I would like to keep code for such an application clean and streamlined (event namespaces is one thing that comes to my mind) and (2) I would like to keep the events on the model clearly separated from events on the DOM in the presenter. How can I achieve these goals in a riot.js based application


Thank you.



asked 39 secs ago







Improving code quality/organization of event-heavy riot applications

Aucun commentaire:

Enregistrer un commentaire