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 /
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; Sta...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2013.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Understanding JavaScript Patterns; It's all object(ive); Understanding scope and the global object; The global object; Code structure and formatting; Use semicolons and curly brackets; eval is evil; The curly bracket position; Not all operators are created equal; Formatting, commenting, and naming conventions; Prototype; Micro optimizations; Declaring variables outside the for statements; Using forEach instead of for loop; Using shortcuts for simple if statements
- The custom menuCommon elements; Windows; 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; Ti.UI.SIZE; Ti.UI.FILL; Choosing a cross-platform layout method; Using Ti.Platform.osname statements; Developing with separate UI files; Importing component styles from external files; Building a JavaScript stylesheet CommonJS module; Using the Stylesheet CommonJS module in your app; Extending the Stylesheet module for page-specific styles; Summary
- Chapter 5: Using JSONDB as an Alternative to SQLiteInstalling the JSONDB module; Setting up JSONDB; Creating a JSONDB CommonJS module; Using JSONDB queries; Summary; Index