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
640
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
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
280
Creating Composable Callables in Contemporary C++
rollbear
0
200
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
310
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
150
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.3k
Vite+ Unified Toolchain for the Web
naokihaba
0
740
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
110
技術記事、 専門家としてのプログラマ、 言語化
mizchi
14
7.4k
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
110
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
600
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
460
トークンをケチるな、設計しろ:GitHub Copilotを賢く使うコンテキスト戦略
ochtum
0
310
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
460
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Side Projects
sachag
455
43k
Producing Creativity
orderedlist
PRO
348
40k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
180
The Language of Interfaces
destraynor
162
27k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
390
My Coaching Mixtape
mlcsv
0
170
Joys of Absence: A Defence of Solitary Play
codingconduct
1
410
From π to Pie charts
rasagy
0
230
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