Appcelerator Titanium: Patterns and Best Practices

Take your Titanium development experience to the next level, and build your Titanium knowledge on CommonJS structuring, MVC model implementation, memory management, and much more
Preview in Mapt

Appcelerator Titanium: Patterns and Best Practices

Boydlee Pollentine , Trevor Ward

Take your Titanium development experience to the next level, and build your Titanium knowledge on CommonJS structuring, MVC model implementation, memory management, and much more
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$24.99
$29.99 p/m after trial
RRP $14.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Appcelerator Titanium: Patterns and Best Practices Book Cover
Appcelerator Titanium: Patterns and Best Practices
$ 14.99
$ 10.50
Serverless Design Patterns and Best Practices Book Cover
Serverless Design Patterns and Best Practices
$ 35.99
$ 25.20
Buy 2 for $28.00
Save $22.98
Add to Cart

Book Details

ISBN 139781849693486
Paperback110 pages

Book Description

Titanium Mobile has quickly become the platform of choice for many mobile developers and is growing and changing at a rapid rate. From the implementation of CommonJS,  MVC design patterns and more, the last year in Titanium development has been a rollercoaster of change for the better. With this knowledge at your disposal you’ll be creating top quality, highly capable and stable apps in no time.

This book shows you exactly how to implement all the latest Titanium Mobile best practices into your apps, from a thorough explanation of CommonJS with plenty of examples, through to structuring a complete MVC style codebase. With advanced topics such as implementing patterns and utilizing ACS, through to a thorough investigation of CommonJS and prototype, this book will take you from Titanium Novice to Titanium Ninja in no time!

"Appcelerator Titanium: Patterns and Best Practices" starts off with some explanations on JavaScript practices and advanced topics, before getting stuck into the new CommonJS pattern and using that to implement MVC-style architectures for your application. It continues in a practical, hands on manner, explaining how to perform cross device layouts with different techniques, and how to implement SQL alternatives such as JSONDB.

The book discusses some of the major advanced JavaScript topics, such as prototype and micro optimizations, before leading the developer into a thorough explanation of the CommonJS pattern, MVC implementation and advanced topics such as SQL alternatives and implementing designs for cross device layouts.

Table of Contents

Chapter 1: Understanding JavaScript Patterns
It's all object(ive)
Understanding scope and the global object
Code structure and formatting
Prototype
Micro optimizations
Summary
Chapter 2: Titanium Best Practices
CommonJS
Code formatting
Code validation
Comment meaningfully
Do not pollute the global object
JavaScript instance
CommonJS modules
CommonJS best practices
Managing memory
Summary
Chapter 3: Building an Application Using CommonJS and the MVC Pattern
Standards
Frameworks
The architecture
The bootstrap
Multilingual
Directory structure
Naming
The application
The controller
Tools (helpers)
CommonJS require
Callbacks
Model
UI
The controller updated
Fail gracefully
Summary
Chapter 4: Cross-platform Design Methods
The difference between DPs and PXs
Understanding Ti.UI.SIZE and Ti.UI.FILL
Choosing a cross-platform layout method
Summary
Chapter 5: Using JSONDB as an Alternative to SQLite
Installing the JSONDB module
Using JSONDB queries
Summary

What You Will Learn

  • Make your apps easier to maintain and more memory efficient with CommonJS
  • Understand JavaScript best practices and prototypal inheritance
  • Learn to structure your app in an MVC style pattern with special consideration given to memory management, localization and app layout
  • Understand and implement the new Appcelerator Cloud Services" needs to be completely removed
  • Learn ways to generate and implement cross platform layouts
  • Find alternatives to standard SQLite databases, including JSONDB
  • Learn how to implement a series of Titanium API and JavaScript optimizations
  • Get solutions to creating cross-compatible layouts that work across both Android and the iPhone

Authors

Table of Contents

Chapter 1: Understanding JavaScript Patterns
It's all object(ive)
Understanding scope and the global object
Code structure and formatting
Prototype
Micro optimizations
Summary
Chapter 2: Titanium Best Practices
CommonJS
Code formatting
Code validation
Comment meaningfully
Do not pollute the global object
JavaScript instance
CommonJS modules
CommonJS best practices
Managing memory
Summary
Chapter 3: Building an Application Using CommonJS and the MVC Pattern
Standards
Frameworks
The architecture
The bootstrap
Multilingual
Directory structure
Naming
The application
The controller
Tools (helpers)
CommonJS require
Callbacks
Model
UI
The controller updated
Fail gracefully
Summary
Chapter 4: Cross-platform Design Methods
The difference between DPs and PXs
Understanding Ti.UI.SIZE and Ti.UI.FILL
Choosing a cross-platform layout method
Summary
Chapter 5: Using JSONDB as an Alternative to SQLite
Installing the JSONDB module
Using JSONDB queries
Summary

Book Details

ISBN 139781849693486
Paperback110 pages
Read More

Read More Reviews

Recommended for You

Appcelerator Titanium Application Development by Example Beginner's Guide Book Cover
Appcelerator Titanium Application Development by Example Beginner's Guide
$ 29.99
$ 21.00
Augmented Reality using Appcelerator Titanium Starter Book Cover
Augmented Reality using Appcelerator Titanium Starter
$ 12.99
$ 9.10
Windows Small Business Server SBS 2003: A Clear and Concise Administrator's Reference and How-To Book Cover
Windows Small Business Server SBS 2003: A Clear and Concise Administrator's Reference and How-To
$ 22.99
$ 16.10
HDInsight Essentials Book Cover
HDInsight Essentials
$ 20.99
$ 14.70
Alfresco Enterprise Content Management Implementation Book Cover
Alfresco Enterprise Content Management Implementation
$ 35.99
$ 25.20
Learning Continuous Integration with TeamCity Book Cover
Learning Continuous Integration with TeamCity
$ 26.99
$ 18.90