Authors: Boydlee Pollentine and Trevor Ward
- Titanium Best Practices
- Building and Application Using CommonJS and the MVC Pattern,
- Cross Platform Design Methods
- Using JSONDB as an Alternative to SQLite
The third chapter provides a nice overview of how to structure an application using CommonJS with an MVC pattern. Changing from namespace applications to CommonJS can be difficult to get your arms around. Pollentine and Ward do a nice job of laying out specific examples for organizing the different application components, for bootstrapping an MVC application, and for managing interactions across components. This includes examples of using callback functions, which is a key technique for developing Titanium Mobile applications.
Chapter 4 is more than just cross platform considerations. The authors start by reinforcing some of the changes in component sizing introduced in Titanium 2.0. They also discuss in general how to implement common styling across an entire application. Then they show methods for overlaying platform specific styling as needed.
The last chapter is an introduction to using JSONDB for persistent data. It’s presented very nicely within the context of implementing a news reader application. The authors demonstrate all the standard CRUD operations.
Overall, I would say this book does a nice job of filling the void between having learned the Titanium Mobile API, and knowing how to structure a production quality application. I like the way the author’s present their best practices as recommendations, rather than “THIS is how you MUST do it.” I’d recommend this book for any Titanium Mobile developer.