1 design mvc mobile app visually in hours - boncodeboncode.net/downloads/mvcinhours.pdf ·...

20
DESIGN MVC MOBILE APP VISUALLY IN HOURS Bilal Soylu NCDevCon 2012, Raleigh, NC 1

Upload: others

Post on 08-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

DESIGN MVC MOBILE

APP VISUALLY IN

HOURS

Bilal Soylu

NCDevCon 2012, Raleigh, NC

1

Page 2: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Agenda

• Hello World

• What is Sencha Touch

• MVC anyone?

• What is Architect (Why / Fit / History)

• Prototyping stages

• Demo Project

• Getting Started Projects

• Alternate Tools (time permitting)

2

Page 3: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Hola!

• Bilal Soylu

• CTO Verian Technologies LLC (www.verian.com)

• ColdFusion since mid 90s

• Enough mistakes to know better ;o)

• Sencha User Group Manager Charlotte

• Blog

• http://BonCode.blogspot.com

• @BmanClt

3

Page 4: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

• Library to help build mobile apps with HTML5, CSS3, and

JavaScript

• Webkit centric, mobile optimized

• Touch Events (Tap, Double tap, Tap and

hold, Swipe, Rotate, D&D)

• Scroller (Momentum, Bounce)

• Orientations

• Layouts

• Animations

• Theming and Icons

• Components (Lists, Picker, Toolbars, Buttons)

• HTML5 (Audio, Video, GeoLocation)

• Current Release 2.0.1; release 2.1 in Beta

Sencha Touch

4

Page 6: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Sample of Apps with Touch

6

http://www.sencha.com/apps/

Page 7: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

New World

“Architecture is critical to server-side application,

so why shouldn’t the same apply to client-side

apps?” *

*Alex MacCaw – author “JavaScript Web Applications”

7

Page 8: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

MVC Generic

8

C controller

V view

M model

The Model manages the

behavior and data of the

application domain, responds to

requests for information about its

state (usually from the view),

and responds to instructions to

change state (usually from the

controller). In event-driven

systems, the model notifies

observers (usually views) when

the information changes so that

they can react.

The View renders the model into a form

suitable for interaction, typically a user

interface element. Multiple views can exist

for a single model for different purposes. A

view port typically has a one to one

correspondence with a display surface and

knows how to render to it.

The Controller receives user input and initiates a response by making

calls on model objects. A controller accepts input from the user and

instructs the model and a view port to perform actions based on that

input.

Page 9: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Sencha Touch / ExtJS 4 MVC

C controller

V view

A controller

S store

M model

9

Page 10: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

10

Page 11: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

The Dark Side

11

output

time

touch CF

Learning curve

(don’t get scared)

comfort

zone

Rock’n Roll!

‘diz iz Badass!

Page 12: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Sencha Architect, a brief history

• Fist there was Sencha Designer

• Automatic Code Generation

• Audience target: People want to prototype (get started)

• Show good code for ExtJS 3.x and Touch 1.1

• Problem Areas

• No Code changes

• No MVC

• No support for ExtJS4 and Touch 2

• Most feedback

• “Interesting”, but I really want to do this instead…

12

Page 13: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Architect 2.1

• Name change

• Support ExtJS4 and Touch2

• Best Practices in a box

• Reduce Learning Curve

• Show better code

• Prototype Mobile Apps (in platform)

• Learn about the libraries and

dependencies

13

Page 14: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

14

Low tech kicks a.. !

Page 15: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Levels of Prototyping

Paper UX

Graphic Rendering

Interactive

Platform

15

• Develop Concept

• Evaluate Ideas

• Quickest Proto

• Business Level / PM

• High Knowledge Users

• Basic UX testing

• Graphic Artists

• Med Knowledge Users

• Full UX testing

• Developers / UX

• Low Knowledge Users

Page 16: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Movie Finder Project

16

Looper

Movie Finder

Mission

Impossible

Wolf pack

3

Paranormal

Activity

Looper

In the future,

time travel will be

invented - but it

will be illegal and

only available on

the black market.

Architect Demo Time

Page 17: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Sample Architect Projects

• You can download a selection of Projects

http://cdn.sencha.io/architect/architect-examples.zip

17

Page 18: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Alternate Toolbox

• www.widgetbox.com

• Some Simple

Scenarios

• Mashups with Flicker,

Google, Twitter

18

Page 19: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

Alternate: Mobilize existing site(s)

• www.capriza.com

• Sign up for beta

19

Page 20: 1 DESIGN MVC MOBILE APP VISUALLY IN HOURS - BonCodeboncode.net/downloads/MVCinHours.pdf · 2017-02-15 · •Best Practices in a box ... •Prototype Mobile Apps (in platform) •Learn

THANK YOU

@BmanClt

http://BonCode.blogspot.com

20