titanium user group march 2014 austin meetup

16
March 19th 2014 at TechRanch Austin http://www.meetup.com/Titanium-UG-Austin Titanium User Group - Austin Meetup Jae Lee Founder of Movable Ads LLC

Upload: jae-lee

Post on 28-Nov-2014

246 views

Category:

Mobile


0 download

DESCRIPTION

Meetup Agenda 1. Alloy Framework the MVC model
 2. Sample Code using Alloy
 3. Developer Resources


TRANSCRIPT

Page 1: Titanium User Group March 2014 Austin Meetup

March 19th 2014

at TechRanch Austin

http://www.meetup.com/Titanium-UG-Austin

Titanium User Group - Austin Meetup

Jae Lee

Founder of Movable Ads LLC

Page 2: Titanium User Group March 2014 Austin Meetup

Sponsor

Page 3: Titanium User Group March 2014 Austin Meetup

Agenda

Alloy Framework the MVC model

Sample Code using Alloy

Developer Resources

Page 4: Titanium User Group March 2014 Austin Meetup

Typical Application Structure

Page 5: Titanium User Group March 2014 Austin Meetup

Project Structure

Classic Alloy

Page 6: Titanium User Group March 2014 Austin Meetup

Model–view–controller (MVC)

Models provide the business logic, containing the rules, data and state of the application.

Views provide the GUI components to the user, either presenting data or allowing the user to interact with the model data.

Controllers provide the glue between the model and view components in the form of application logic.

[image from wikipedia]

Page 7: Titanium User Group March 2014 Austin Meetup

Alloy Framework

Model is the index.xml

View is the index.tss

Controller is the index.js

[image from wikipedia]

Page 8: Titanium User Group March 2014 Austin Meetup

Why Use Alloy?

Structuring your app in a MVC model

Better way to maintain your code

Reduce the number of lines in code

... but it comes down to your preference.

Page 9: Titanium User Group March 2014 Austin Meetup

Let’s code

Page 10: Titanium User Group March 2014 Austin Meetup

Creating the Model

Page 11: Titanium User Group March 2014 Austin Meetup

Creating the View

Page 12: Titanium User Group March 2014 Austin Meetup

Creating the Controller

Page 13: Titanium User Group March 2014 Austin Meetup

https://github.com/TitaniumUserGroup/Mapping

Sample Code