Frank Mainzer & Silviu Durduc - Developing mobile app using Sencha Touch
-
Upload
codecampiasi -
Category
Spiritual
-
view
341 -
download
0
Transcript of Frank Mainzer & Silviu Durduc - Developing mobile app using Sencha Touch
1. GROWTH
2. CONSTRAINTS
3. CAPABILITIES
Natural constraints in mobile
= OPPORTUNITY
= FOCUS
= INNOVATION
GROWTH = OpportunityMobile Web growth has outpaced desktop Web growth 8x
Global mobile data traffic has grown 26x over next 5 years
PC
100M+
DESKTOP INTERNET
1B+
MOBILE CONSUMER
10B+
1990 2000 2010 2020
Source: Morgan Stanley Research
CONSTRAINTS = FOCUS
The things that help us Take advantage of that opportunity!
SCREEN SIZE PERFORMANCE USABILITY
Natural User Interfaces
NUI
Content is the UI;
Reduce the distance as much as possible between user and content;
Enable direct manipulation of objects and content;
Guessable, predictable, realistic;
Reduce visuals that are not content;
Make the content the action and direct action with content;
capabilities= innovation
Sencha Class systemPREDICTABLE | PROGRAMMER FAMILIARITY | FLEXIBILITY
Class System
Data Package
Event System
Widgets & Layouts
App Specific Code
Learning Curve
Sencha class system
• Consistent
• FamiliarLearn
• Debuggable
• TestableDevelop
• Automatic dependency resolution
Deploy
Sencha class system
Coding convention
NameSpace.group[.subgroup].ClassName
One class per file;
File name matches class name
Ext .chart .Labe l = Ext/chart/Labe l . js
Ext .data .wr i ter .Xml = Ext/data/wri ter/Xml . js
Class DefinitionEx t .de f i ne ( “NameSpace .group .C lassName ” , {
i n i t : f unc t i on ( ){} ,
getName : func t i on ( ){ re turn th i s .name ; }
} ) ;
New (instantiating)
Me = Ex t . create ( “NameSpace .group .C lassName ” ) ;
Me .ge tName ( ) ;
Sencha class system
Sencha MVC (MODEL-VIEW–CONTROLLER)
Keep the logic out of your
views
Teamwork
Organized, best practices
followed
spaghetti avoided
Model
• Loads and manages the app l i ca t i on da ta ;
• Usua l l y i n response to reques ts f rom the v i ew .
Sencha MVC
ID int
Customer string
JoinDate date
1445 Sebastian 11/12/2010
1446 John 10/09/2011
1447 Emil 10/08/2009
F I E L D S ( S c he m a ) D A T A