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
110
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
4
190
DevOps in Switzerland from 2018 to 2022
akosma
3
250
APPUiO Cloud
akosma
2
660
Introduction to K8up
akosma
0
310
Creating Products through DevOps: The Story of VSHN
akosma
0
200
Everyday Life of an Open-Source Company: The Story of VSHN
akosma
0
250
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
0
570
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
0
440
APPUiO Cloud: Making of a Swiss PaaS
akosma
0
210
Other Decks in Technology
See All in Technology
Creative Pair
kawaguti
PRO
1
130
[TechNight #86] Oracle GoldenGate - 23ai 最新情報&プロジェクトからの学び
oracle4engineer
PRO
1
170
Agentic AI時代のプロダクトマネジメントことはじめ〜仮説検証編〜
masakazu178
3
360
業務ツールをAIエージェントとつなぐ - Composio
knishioka
0
110
AIエージェントについてまとめてみた
pharma_x_tech
6
4k
地方企業がクラウドを活用するヒント
miu_crescent
PRO
1
110
日本語プログラミングとSpring Bootアプリケーション開発 #kanjava
yusuke
2
340
re:Invent Recap (January 2025)
scalefactory
0
340
2025/1/29 BigData-JAWS 勉強会 #28 (re:Invent 2024 re:Cap)/new-feature-preview-q-in-quicksight-scenarios-tried-and-tested
emiki
0
310
Grafanaのvariables機能について
tiina
0
180
さいきょうのアーキテクチャを生み出すセンスメイキング
jgeem
0
270
エラーバジェット枯渇の原因 - 偽陽性との戦い -
phaya72
1
100
Featured
See All Featured
It's Worth the Effort
3n
184
28k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Gamification - CAS2011
davidbonilla
80
5.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
19k
Visualization
eitanlees
146
15k
Thoughts on Productivity
jonyablonski
68
4.4k
Code Review Best Practice
trishagee
65
17k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Adopting Sorbet at Scale
ufuk
74
9.2k
Statistics for Hackers
jakevdp
797
220k
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?