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
Tips & Tricks for iPhone Application Development
Search
Adrian Kosmaczewski
August 27, 2009
Technology
0
48
Tips & Tricks for iPhone Application Development
Presentation shown in Copenhagen, Denmark.
Adrian Kosmaczewski
August 27, 2009
Tweet
Share
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
Managing Fleets of Kubernetes Clusters with GitOps
akosma
0
32
DevOps in Switzerland from 2018 to 2022
akosma
0
130
APPUiO Cloud
akosma
2
360
Introduction to K8up
akosma
0
160
Creating Products through DevOps: The Story of VSHN
akosma
0
85
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
160
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
440
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
290
APPUiO Cloud: Making of a Swiss PaaS
akosma
0
99
Other Decks in Technology
See All in Technology
自己改善からチームを動かす! 「セルフエンジニアリングマネージャー」のすゝめ
shoota
5
200
Tableau事例紹介 / Tableau Case Study of Eureka
kazuya_araki_tokyo
1
180
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
1
430
ChatGPT for IT Service Management (IT Pro)
dahatake
7
1.5k
Meta Quest 3 で動く桜マシマシ WebXR アプリを IBM Cloud Code Engine と Babylon.js で作った話
1ftseabass
PRO
0
120
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
2k
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
2
440
ChatworkのSRE部って実は 半分くらいPlatform Engineering部かもしれない
saramune
0
150
プラットフォームってつくることより計測することが重要なんじゃないかという話 / Platform Engineering Meetup #8
taishin
1
340
Java EE/Jakarta EEの現状と将来―クラウドネイティブ時代にJava EEは対応できるのか?―
takakiyo
1
130
4年前、あるじゃん老害エンジニアLT合戦に登壇、米国西海岸コンピュータ歴史博物館体験記の続編
toshi_atsumi
0
220
ServiceNow Knowledge Learning Rise up
manarobot
0
200
Featured
See All Featured
Building Your Own Lightsaber
phodgson
99
5.7k
Faster Mobile Websites
deanohume
299
30k
Debugging Ruby Performance
tmm1
70
11k
Making Projects Easy
brettharned
108
5.5k
Writing Fast Ruby
sferik
621
60k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Product Roadmaps are Hard
iamctodd
44
9.7k
Rebuilding a faster, lazier Slack
samanthasiow
73
8.2k
Building Adaptive Systems
keathley
31
1.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
241
1.2M
Building Better People: How to give real-time feedback that sticks.
wjessup
355
18k
Transcript
tips & tricks for iPhone application development
None
adrian kosmaczewski
akosma software akosma.com akosma.tumblr.com github.com/akosma linkedin.com/in/akosma facebook.com/akosma
@akosma
None
some questions
@perlausten? @supermouse? @williwu?
new to iPhone?
technologies?
J2EE, J2ME, .NET, RoR, others?
programming languages?
C / C++? Java, C#? Ruby, Python, Lua? JavaScript?
None
iPhone dev ≠ web dev
None
Cocoa & Objective-C
born in the 80s
None
None
None
None
Objective-C
Objective-C Java @interface & @implementation class @protocol interface #import //
files! import // classes! categories n/a id n/a
• Thin layer around C • Message-dispatch runtime • Static
and dynamic (you choose) • The “real” father of Java: • http://cs.gmu.edu/~sean/stuff/java-objc.html
• Single inheritance + interfaces (“@protocols”) • @protocols can have
optional methods • Fields protected by default • All methods are virtual and overridable • Methods can be added to existing classes • Full introspection / reflection • Messages can be intercepted and forwarded • à la AOP!
Cocoa Touch
None
None
iPhone Specifics
None
128 or 256 MB RAM
~70 MB for the OS!
no swap file
(no virtual memory)
no garbage collector
(manual memory management)
http://cocoadevcentral.com/d/learn_objectivec/
no automatic objects on the stack (C++)
// C++ // Memory freed when out of scope std::string
name(“Adrian”); std::string *name = NULL; name = new std::string(“Adrian”); delete name;
hygiene
None
memory warnings
None
avoid autorelease
None
None
lazy-loading & reuse
None
custom table cells & reuse
None
override setters properly
None
beware of delegation
None
instruments & static analysis
None
warnings as errors
None
code organization
(cheaper maintenance)
None
iPhone ≠ computer
http://www.flickr.com/photos/oskay/365607662/
http://www.flickr.com/photos/blakespot/2379207825/
http://www.flickr.com/photos/oskay/365607591/
None
books
None
None
None
None
None
None
None
None
None
thanks!
questions?