html5: the apps, the frameworks, the controversy

41
HTML5 the Apps, the Frameworks, the Controversy Tim Anglade @timanglade Apigee @apigee Amir Nathoo @amirnathoo

Upload: apigee

Post on 10-May-2015

3.463 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: HTML5: The Apps, the Frameworks, the Controversy

HTML5the Apps, the Frameworks,the Controversy

Tim Anglade@timanglade

Apigee@apigee

Amir Nathoo@amirnathoo

Page 2: HTML5: The Apps, the Frameworks, the Controversy

groups.google.com/group/api-craft

Page 3: HTML5: The Apps, the Frameworks, the Controversy

youtube.com/apigee

Page 4: HTML5: The Apps, the Frameworks, the Controversy

slideshare.net/apigee

Page 5: HTML5: The Apps, the Frameworks, the Controversy

@timangladeTim Anglade

@apigee

@amirnathooAmir Nathoo

@triggercorp

Page 6: HTML5: The Apps, the Frameworks, the Controversy
Page 7: HTML5: The Apps, the Frameworks, the Controversy

We’re here to talk Mobile!

Page 8: HTML5: The Apps, the Frameworks, the Controversy

The Number of Mobile Users is on the rise

Page 9: HTML5: The Apps, the Frameworks, the Controversy

The Number of Mobile Devices is exploding too

Page 10: HTML5: The Apps, the Frameworks, the Controversy

… And Revenue seems to be following

Page 11: HTML5: The Apps, the Frameworks, the Controversy

Innovative new business models– check out Lyft!

Page 12: HTML5: The Apps, the Frameworks, the Controversy

New platforms

… and of course the web…

Windows PhoneTizen

Page 13: HTML5: The Apps, the Frameworks, the Controversy

Source: kinvey.com/blog

Page 14: HTML5: The Apps, the Frameworks, the Controversy

Source: https://blog.trigger.io “Making sense of mobile development platforms”

Page 15: HTML5: The Apps, the Frameworks, the Controversy

Explaining the terminology of Client-side Platforms:HTML5, Mobile Web, Native, Hybrid?

Page 16: HTML5: The Apps, the Frameworks, the Controversy

What is HTML5?

It’s the latest version of the HTML standardStill under development – ‘working draft’

HTML5 adds new features such as:<video>, <audio>, <canvas>, SVGsessionStorage, localStorage, geolocation

Most people just mean HTML, CSS and JavaScript when they they say ‘HTML5’

Not necessarily the new features

Page 17: HTML5: The Apps, the Frameworks, the Controversy

Source: http://diveintohtml5.info

Complex topic, but lots of good resources

Page 18: HTML5: The Apps, the Frameworks, the Controversy

What is the ‘Mobile Web’?

Refers to the mobile-optimized version of the web=> so you use HTML4 / HTML5 just like a normal

website

united.com mobile.united.comvs.

Page 19: HTML5: The Apps, the Frameworks, the Controversy

Reuse code and styles with Responsive Design

Source: http://www.treatdigital.com/

Page 20: HTML5: The Apps, the Frameworks, the Controversy

What is a ‘Native’ mobile app?

Written using platform-specific languages and SDKsObjective-C for iPhone / iPadJava for AndroidC# for Windows Phone

Distributed in native app stores such asApple’s App Store (the original one)Google Play (& others for Android)Windows Phone Store

Uses advanced device features not available in HTML5e.g. Contacts, Camera, Filesystem, PaymentsPush notifications, SMSNative UI elements

Page 21: HTML5: The Apps, the Frameworks, the Controversy

What is a ‘Hybrid’ mobile app?

An app that uses advanced device features and can be distributed in native App Stores

But is built using a combination of native (platform-specific) and HTML5 languages

Most people use a framework to create these

Considerations:- Input languages- How much of the UI is native vs HTML5- Build / test cycle

Page 22: HTML5: The Apps, the Frameworks, the Controversy

CPU … Sensors

Stack Showdown!

OS

Native Frameworks

Native Code

CPU …

OS

Native Frameworks

Browser

CPU … Sensors

OS

Native Frameworks

Runtime

HTML, JS, CSS Code Browser Plugins

HTML Frameworks?

HTML, JS, CSS Code

Native Mobile Web Hybrid

Page 23: HTML5: The Apps, the Frameworks, the Controversy

What are the apps?

Page 24: HTML5: The Apps, the Frameworks, the Controversy

Instagram is a native mobile app

Page 26: HTML5: The Apps, the Frameworks, the Controversy

Tumblr is hybrid, but mostly HTML5…

Source: http://zachwill.com/tumblr-ios/

Leverages open-source JavaScript librariesmustache.js, spin.js, zepto.js

Lots of best practices and new approaches e.g. targeting retina devices in CSS

@media only screen and (-webkit-min-device-pixel-ratio: 2) { /* Retina CSS */}

Page 27: HTML5: The Apps, the Frameworks, the Controversy

An hybrid app in practice: Hojoki

Same HTML5 codebase for web, mobile web, native (built on http://trigger.io)

Page 28: HTML5: The Apps, the Frameworks, the Controversy

Financial Times’ mobile site is HTML5

Page 29: HTML5: The Apps, the Frameworks, the Controversy

Cut The Rope is Native… But also HTML5!

“Surprisingly, we encountered a few areas where the Canvas provides more functionality than does the version of OpenGL ES”

“Today, however, JavaScript engines have been highly optimized. With features like just-in-time compilation, JavaScript now can execute at near native speeds.”

Source: http://www.cuttherope.ie/dev/

Page 30: HTML5: The Apps, the Frameworks, the Controversy

What are some of the frameworks for HTML5?

Page 31: HTML5: The Apps, the Frameworks, the Controversy

Runtimes vs. Frameworks

Runtimes- Phonegap / Apache Cordova, Titanium, Trigger.io

Strict-sense frameworks- Help you define the UI (buttons, interactions)- Provide prepared logic to handle clicks, transitions, theming- Provide utility features that ECMAScript doesn’t have (date

converters, pretty printing)- Handle cross-device access (to some extent)- Provide a layer of plugins of their own- Frameworks have every different approaches!- Many of them also offer integrated cloud services for data

sync, user management, etc.

Page 32: HTML5: The Apps, the Frameworks, the Controversy

Framework approaches: Pure UI

Source: http://jquerymobile.com

Page 33: HTML5: The Apps, the Frameworks, the Controversy

Framework approaches: Vertically Integrated

Source: http://sencha.com

Page 34: HTML5: The Apps, the Frameworks, the Controversy

Framework approaches: IDE-centric

Source: http://tiggzi.com

Page 35: HTML5: The Apps, the Frameworks, the Controversy

So what’s all the controversy about with HTML5?

Page 36: HTML5: The Apps, the Frameworks, the Controversy

Which one should I start with?

Page 37: HTML5: The Apps, the Frameworks, the Controversy

Considerations

HTML5 and Hybrid are young and evolvingApp Store was launched in 2008Chrome 5 / FF 3.6 released in 2010Mobile browsers rapidly improving

What are the most important characteristics of your app?

Are you going to support one or many platforms and in what order?

How are you going to iterate your apps after the initial release?

What skills does your team have?

Can you leverage existing code, libraries and communities?

Page 38: HTML5: The Apps, the Frameworks, the Controversy

Questions from audience?

Page 39: HTML5: The Apps, the Frameworks, the Controversy

Amir Nathoo

[email protected]

http://trigger.io

Page 40: HTML5: The Apps, the Frameworks, the Controversy

THANK YOUSubscribe to API webcasts at:

youtube.com/apigee

Page 41: HTML5: The Apps, the Frameworks, the Controversy

THANK YOUQuestions and ideas to:

groups.google.com/group/api-craft

Contact us:

@amirnathoo @triggercorp

@timanglade @apigee