Organizing your code

In the previous chapters, we structured our code very loosely. In fact, I'm sure the academic types would laugh at the audacity of even calling it structured. I believe in a very pragmatic approach to coding, which leads me to use more simple structures and a bare minimum of libraries. However, there are values and lessons to be learned out there.

MVC, MVVM, MV*

For the last couple of years, serious JavaScript developers have been bringing backend development structures to the web as the size and scope of their project demanded a more regimented approach. For highly ambitious, long-lasting, in-browser apps, this kind of structured approach can help. This is even more true if you're on a larger team.

MVC stands for "Model-View-Controller ...

Get Creating Mobile Apps with jQuery Mobile now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.