Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Don't Fear The Hybrid!
Search
Patrick Seda
October 17, 2014
Technology
4
1.4k
Don't Fear The Hybrid!
Making Kickass Mobile Enterprise Apps
Patrick Seda
October 17, 2014
Tweet
Share
More Decks by Patrick Seda
See All by Patrick Seda
The API of Your Company Culture
pxtrick
3
970
Lightning Talk - Enhancing Vue and Vuex for Complex Application State
pxtrick
1
1.1k
Swift - Beyond Beginner
pxtrick
0
1.2k
Crossing the Chasm of Swift
pxtrick
0
1.4k
Architecting Your Project with a Finite-State Machine
pxtrick
1
2.1k
Your Code is Terrible (I Love It!)
pxtrick
0
1.2k
An Introduction to Location-Based Technologies (for Business & Marketing)
pxtrick
0
600
The Passion of Lazy - Enterprise Mobile App Design Patterns
pxtrick
0
2.2k
10 Tips for Kickass Enterprise Mobile Apps
pxtrick
0
1k
Other Decks in Technology
See All in Technology
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
8
6.9k
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
120
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
210
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
180
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
150
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
1
200
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
kargoの魅力について伝える
magisystem0408
0
210
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
260
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
A better future with KSS
kneath
238
17k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Optimising Largest Contentful Paint
csswizardry
33
3k
Transcript
ConnectJS/TiConnect – October 17, 2014 – Atlanta, GA Don’t! FEAR!
The HYBRID!
Patrick Seda @pxtrick
[email protected]
• Lead Mobile Architect @propelics •
Titanium Fanboy … Appc Titan • Creator of Mr. Edison Children’s App
What! Is! HYBRID! ?!
Hybrid Native App Wrapper + Web Application
Hybrid Combine two things BADASS!
Hybrid so BADASS NOT QUITE!
Hybrid
vs. Consumer! ENTERPRISE!
What is Enterprise? • A Business with multiple divisions •
Business strategy is based upon cohesive interaction • Divisions are financially dependent on each other • Core set of metrics and measures
What is Enterprise? • A Business with multiple divisions •
Business strategy is based upon cohesive interaction • Divisions are financially dependent on each other • Core set of metrics and measures
Enterprise vs. Consumer “Enterprise” Apps == B2E / B2B (ish)
Enterprise vs. Consumer “Consumer” Apps == B2C / B2B (ish)
in Enterprise! EXPECT! What to!
Reasonable Expectations • Heightened Security • Interact with Existing Data
Sources • Handle offline / poor connection, intermittent data sync • App architecture had BETTER support future expansion • Charts and graphs!
Reasonable Expectations
Reasonable Expectations
CHARTING! Techniques!
Charts and Graphs
Charts and Graphs
Charts and Graphs
HELP !! Charts and Graphs We need!
Charting Libraries Google Charts
Charting Libraries Google Charts Common Charts : Visual Styling :
Interactivity : Cost : NOTE : Where: Excellent Excellent Excellent FREE Must be online to use ! (developers.google.com/chart)! !
Charting Libraries D3.js
Charting Libraries D3.js Common Charts : Visual Styling : Interactivity
: Cost : Where: Excellent Excellent Excellent FREE ! (d3js.org)! !
Charting Libraries Highcharts
Charting Libraries Highcharts Common Charts : Visual Styling : Interactivity
: Cost : Where: Excellent Excellent Excellent Freemium … $390 - $4500 ! (highcharts.com)! !
Charting Libraries gRaphael
Charting Libraries gRaphael Common Charts : Visual Styling : Interactivity
: Cost : Where: Good Limited Limited FREE ! (g.raphael.com)! !
ANATOMY! Of the Hybrid!
Application WebView HTML / CSS / JS JS Chart Library
Composition
HTML Composition JS Window WebView Creation Sequence: <Window>! <WebView />!
</Window>!
Interaction HTML JS App-to-Chart Communication: App Ti.App.fireEvent(…);! WebView with Events
Interaction HTML App WebView Chart-to-App Communication: Ti.App.fireEvent(…);! JS with Events
Interaction HTML JS WebView App-to-Chart Communication: App webView.evalJS(…);! without Events
Interaction HTML App WebView Chart-to-App Communication: // NOPE! JS without
Events
Interaction // Event handler in HTML/JS.! function render(e) {…};! Ti.App.addEventListener(‘renderChart’,
render);! (In HTML/JS) // Send data to the chart.! Ti.App.fireEvent(‘renderChart’, {…});! (In App) App-to-Chart Communication: with Events
Interaction // Event handler in app.! function chartCB(e) {…};! Ti.App.addEventListener(‘chartTapped’,
chartCB);! (In App) // Send data to the app.! Ti.App.fireEvent(‘chartTapped’, {…});! (In HTML/JS) with Events Chart-to-App Communication:
Interaction // No event handler, just the method to render
data.! function render(chartInfo) {…};! (In HTML/JS) // Send data to the chart.! var data = JSON.stringify(chartInfo);! webView.evalJS(‘render(‘ + data + ‘)’);! (In App) App-to-Chart Communication: without Events
WELCOME! To the Real World!
The Real World
The Real World WTF! WTF!
The Real World
The Real World “The WebView is one of the most
EXPENSIVE components to create in terms of resources” - Titanium docs
The Real World
The Real World Labels! & Views! WebView!
The Real World “Including WebViews in your TableViewRows is a
RECIPE FOR SLUGGISH performance.” - Titanium docs
The Real World
The Real World Section! Headers!
The Real World
WebView Event Quiz When is the “load” event fired? A.
After the WebView contents have loaded B. After the WebView contents have rendered C. Never
WebView Event Quiz When is the “load” event fired? A.
After the WebView contents have loaded B. After the WebView contents have rendered C. Never
WebView Event Quiz When do the contents start loading? A.
After the Window has been laid out B. After the WebView has been laid out C. Before the WebView has been laid out
WebView Event Quiz When do the contents start loading? A.
After the Window has been laid out B. After the WebView has been laid out C. Before the WebView has been laid out * “postlayout” event
WebView Event Quiz When is the WebView laid out? A.
Before the Window “postlayout” event B. After the WebView “focus” event C. Whenever the OS feels like it
WebView Event Quiz When is the WebView laid out? A.
Before the Window “postlayout” event B. After the WebView “focus” event C. Whenever the OS feels like it
WebView Event Quiz Order of events: 1. “postlayout” 2. “beforeload”
3. “load” (App lays out Views As-Needed)
Performance Views are being laid out …
Performance “postlayout” and “load” “postlayout” and “load”
Performance “postlayout” and “load”
Performance “postlayout” and “load” “postlayout” and “load” “postlayout” and “load”
Performance WebView loads are throttled … NO big spikes! NO
crashes!
Reasonable Expectations • Kickass Charts • Performance • Don’t Be
So Lazy Enterprise Charting! ✔ ✔ ✔
SUMMARY! Amazing charts!! Happy clients!! Don’t FEAR the HYBRID! Great
performance!!