Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Writing high quality apps with Alloy

Writing high quality apps with Alloy

The presentation gives an overview of Alloy and gives tips for creating quality applications. It also lists a number of tools that any serious mobile developer should use

Hani Hamadeh

July 19, 2014
Tweet

Other Decks in Programming

Transcript

  1. About Me • Mobile Developer • Founded White Label Mobile

    • Titanium Certified Expert • Titanium instructor • Twitter: @hanibal_li3 • LinkedIn: https://www.linkedin.com/in/hanih • Elance: https://www.elance.com/s/hini/
  2. Overview • Explain what I mean by High quality apps

    • Give overview of Alloy • Give tips from experience • Share tools that I use to make happier clients
  3. Files generated • An XML view file • A TSS

    style file (similar to CSS) • A Javascript file
  4. Themes to customize look • Create different skins for you

    app • Switch by changing a single string • Can add styles, images, files etc...
  5. Best practices built-in • Converted to CommonJS at compile time

    • Pre-compile directives (like OS_IOS) • Optimized for performance • Reduced memory leaks • One extra layer of safety
  6. Separate custom logic - Models • Based on Backbone.js •

    Declare it via a schema and adapter settings
  7. Separate custom logic - CommonJS • Specification to correct Javascript

    class shortcomings • Allows private properties and functions
  8. Structure code for changes • No Backend specific code inside

    controller • All in CommonJS modules • Multiple levels
  9. Defer execution for responsiveness Great explanation by Ronald Treur at

    Ticonf Eu 2014 https://speakerdeck.com/ronaldtreur/titanium-making-the-most-of-your single-thread
  10. Appium • Open source test Automation • Uses Selenium Webdriver'

    JSON Wire Protocol • Supports iOS and Android • Works for real devices • Can be integrated with Mocha (TiMocha ?)
  11. xScope • Excellent to validate app UI against design •

    Ruler • Dimensions • Loupe • Screens
  12. My next plans • Native module development • Automate testing

    and delivery • Explore the Appcelerator Platform