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
Accelerated Native Mobile Development with the ...
Search
Wynn Netherland
September 17, 2011
Programming
530
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Accelerated Native Mobile Development with the Ti gem
Wynn Netherland
September 17, 2011
More Decks by Wynn Netherland
See All by Wynn Netherland
Building a Resilient API with open source
pengwynn
10
820
Refactoring with Science
pengwynn
11
2k
> hubot deploy GitHub
pengwynn
26
3k
API Realtalk
pengwynn
6
650
Hypermedia APIs - less hype more media, please
pengwynn
18
2k
User Experience Patterns for APIs
pengwynn
24
930
A Spree Themer's Toolkit
pengwynn
7
1.6k
Accelerating Titanium Development with CoffeeScript, Compass, and Sass
pengwynn
13
2.8k
Ten Things We Learned Building TweetCongress
pengwynn
2
390
Other Decks in Programming
See All in Programming
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.7k
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
290
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
210
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.8k
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
580
VibeCodingからAgenticWorkflowへ
starfish719
0
270
Go言語とトイモデルで学ぶTransformerの気持ち / fukuokago23-transformer
monochromegane
0
160
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
150
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
180
Welcome to the "Parametricity" 🏙️ − Generic だけど Specific な世界 −
guvalif
PRO
1
200
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
410
今さら聞けない .NET CLI
htkym
0
180
Featured
See All Featured
The Spectacular Lies of Maps
axbom
PRO
1
890
Technical Leadership for Architectural Decision Making
baasie
3
470
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
KATA
mclloyd
PRO
35
15k
sira's awesome portfolio website redesign presentation
elsirapls
0
320
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Amusing Abliteration
ianozsvald
1
240
The Limits of Empathy - UXLibs8
cassininazir
1
590
Skip the Path - Find Your Career Trail
mkilby
1
180
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
200
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
A designer walks into a library…
pauljervisheath
211
24k
Transcript
MOBILE APP DEVELOPMENT WITH Ti Accelerated WYNNNETHERLAND
None
D'oh! Sorry, will have to blind you with science.
None
Isn’t she Sassy, folks? GET THE BOOK.
sass40 Save 40% and get early access! Sadly, sass100 is
not a valid code.
And you are?
So you wanna build a mobile app?
None
Native vs. Web
Why native?
None
None
None
None
None
None
None
Obj C Java
Titanium
None
SINGLE JAVASCRIPT API
COMPILES TO NATIVE CODE
None
OPEN SOURCE! http://github.com/appcelerator/titanium_mobile
Development options
None
I’d rather not use your IDE. After fleeing .NET for
the joys of Ruby
Fortunately, there’s a CLI.
DEMO A quick
Fortunately, there’s a CLI. Unfortunately, it’s written in Python.
Why should I care? I’m a Rubyist
You'll still need a server API Rails, Sinatra, etc.
Embrace your inner polyglot.
COFFEESCRIPT
var foo = function () { } foo = ()
-> I’d rather write this.
var button = Titanium.UI.createButton({ title: 'I am a Button', height:
40, width: 200, top: 10 }); button.addEventListener('click', function(e) { alert("Oooh, that tickles!"); }); JavaScript
button = Titanium.UI.createButton title: 'I am a Button' height: 40
width: 200 top: 10 button.addEventListener 'click', (e) -> alert "Oooh, that tickles!" CoffeeScript
JavaScript Frameworks
Underscore.js https://github.com/documentcloud/underscore
STYLESHEETS
var buttonOne = Titanium.UI.createButton({ title:'I am a Button', height:40, width:200,
top:10 }); var buttonTwo = Titanium.UI.createButton({ title:'I am also a Button', image:'../images/chat.png', width:200, height:40, top:60 });
// js var buttonOne = Titanium.UI.createButton({ id: "buttonOne", className: "button"
}); var buttonTwo = Titanium.UI.createButton({ id: "buttonTwo", className: "button" }); // jss #buttonOne { title:'I am a Button'; width:200; height:40; top:10 } #buttonTwo { title:'I am also a Button'; image:'../images/chat.png'; width:200; height:40; top:60 } .button { height: 40; width: 200; }
JSS work like CSS.
But I don't even like CSS.
SASS & COMPASS Fortunately, there's
#buttonOne { title: 'I am a Button'; width: 200; height:
40; top: 10 } #buttonTwo { title: 'I am also a Button'; image: '../images/chat.png'; width: 200; height: 40; top: 60 } .button { height: 40; width: 200; }
#buttonOne title: 'I am a Button' width: 200 height: 40
top: 10 #buttonTwo title: 'I am also a Button' image: '../images/chat.png' width: 200 height: 40 top: 60 .button height: 40 width: 200
=button height: 40 width: 200 #buttonOne +button title: 'I am
a Button' top: 10 #buttonTwo +button title: 'I am also a Button' image: '../images/chat.png' top: 60
Ruby Oh yeah, and there's
CODE DEEP DIVE
Ti GEM
gem install ti
Generate.
ti new <name> <id> <platform>
ti new lsrc com.lonestarrubyconf.v iphone
├── Coffeefile ├── Guardfile ├── LICENSE ├── Rakefile ├── Readme.mkd
├── Resources │ ├── app.js │ ├── app.jss │ ├── images │ │ ├── KS_nav_ui.png │ │ └── KS_nav_views.png │ ├── lsrc.js │ └── vendor ├── app │ ├── app.coffee │ └── lsrc │ ├── api.coffee │ ├── app.coffee │ ├── helpers │ │ └── application.coffee │ ├── models │ ├── stylesheets │ │ ├── app.sass │ │ └── partials │ └── views ├── build ├── config │ └── config.rb ├── docs ├── spec │ ├── app_spec.coffee │ ├── helpers │ ├── models
ti generate <model/controller/view> <name>
Golf.Views.GamePlay.createScoreCardView = (options) -> view = Ti.UI.createView (options) view
ti scaffold <window/tabgroup/view> <domain> <name>
Compile.
ti compile <all/coffee/sass>
Build.
ti build <all/iphone/android/ipad/desktop/>
Ti GEM @revans @baldrailers @rupakg
Get involved!
Testing.
Jasmine
Jasmine https://github.com/akahigeg/jasmine-titanium
XIB
xib2js https://github.com/daoki2/xib2js
js2coffee http://ricostacruz.com/js2coffee/
QUESTIONS?
None
@pengwynn