Creating an Alloy Library for Titanium
This guest post was authored by Adam Paxton, a freelance mobile app developer for Polanco Media, and an Appcelerator Titan.
Part of my consulting work entails helping customers with their existing Titanium projects, which means I spend a lot of time working with other people’s code. When working with companies that are newer to Titanium development, I have noticed that many projects may have code being repeated across controllers, or that they have spent a lot of time trying to expose function in a controller for re-use in other controllers, or that they are putting a lot of logic inside of model files.
We can avoid many of these issues, as well as make our code easier to re-use and just keep things DRY with the use of alloy libraries...