Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Tips & Tricks for iPhone Application Development
Adrian Kosmaczewski
PRO
February 02, 2010
Technology
0
7
Tips & Tricks for iPhone Application Development
Presentation shown during a SkillsMatter event in London, United Kingdom.
Adrian Kosmaczewski
PRO
February 02, 2010
Tweet
Share
More Decks by Adrian Kosmaczewski
See All by Adrian Kosmaczewski
Creating a Product through DevOps: The Story of APPUiO Cloud
akosma
PRO
0
14
Migrating the GitLab–Kubernetes Integration from Certificates to the Agent
akosma
PRO
0
21
DevOps et Kubernetes sur Exoscale: The Future of Swiss Cloud
akosma
PRO
0
25
Microservice Architectures with Kubernetes and PaaS
akosma
PRO
0
26
Introduction to Project Syn
akosma
PRO
0
23
Kubernetes Configuration Management
akosma
PRO
0
17
K3s – A Practical Introduction
akosma
PRO
0
170
Airlock Microgateway 2.1
akosma
PRO
0
10
The Rancher Advantage
akosma
PRO
0
43
Other Decks in Technology
See All in Technology
Sysdig Secure/Falcoの活用術! ~Kubernetes基盤の脅威モデリングとランタイムセキュリティの強化~
owlinux1000
0
240
金融領域のマルチプロダクトを効率よく開発・運用するためのシステム基盤と組織設計について / 2022-07-28-multi-product-platform
stajima
0
150
質の良い”カイゼン”の為の質の良い「振り返り」
shirayanagiryuji
0
130
COSCUP x KCD Taiwan 2020 - 那些年我們在開源社群的日子 - Cloud Native Taiwan
pohsien
0
120
Cloud Foundryの移行先はどこか? オープンソースPaaS探し
kolinz
0
350
森林情報のオープンデータと QGISでの利用
kou_kita
0
290
〇〇みたいな検索作ってと言われたときに考えること / thinking before developing search system like that one
ryook
5
2.7k
聊聊 Cgo 的二三事
david74chou
0
330
ReverseETLでユーザーに価値を届ける基盤を実現した話
hakky
0
350
プロダクトマネージャーの役割と育成、評価
middleokada
16
11k
ソフトウェアアーキテクチャの基礎: Software Architecture in a Nutshell
snoozer05
29
8.8k
DevRel組織についての考察
taijihagino
PRO
0
130
Featured
See All Featured
WebSockets: Embracing the real-time Web
robhawkes
57
5.6k
A better future with KSS
kneath
226
16k
Designing for Performance
lara
597
64k
Six Lessons from altMBA
skipperchong
14
1.4k
We Have a Design System, Now What?
morganepeng
35
3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
498
130k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Unsuck your backbone
ammeep
659
55k
In The Pink: A Labor of Love
frogandcode
131
21k
Building Better People: How to give real-time feedback that sticks.
wjessup
344
17k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_i
25
15k
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
Transcript
Tips & Tricks for iPhone Application Development Skills Matter -
London - February 2nd 2010
None
Adrian Kosmaczewski
akosma software akosma.com akosma.tumblr.com github.com/akosma linkedin.com/in/akosma facebook.com/akosma
@akosma
None
some questions
new to iPhone?
designer? developer?
technologies?
Android J2EE J2ME .NET Ruby on Rails others?
programming languages?
C / C++? Java, C#? Ruby, Python, Lua? JavaScript?
None
Dev Days for iPhone
Mon, April 26th 2010
Win a free ticket!
Fill your evaluation form! :)
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 (1 file) @protocol interface
#import // files! import // classes! categories n/a (in C#, “class extensions”) id n/a (generics?)
Objective-C Java @selector n/a NSObject / NSProxy / ... Object
@public / @protected / @private public / protected / private @try / @catch / @finally NSException try / catch / finally Exception n/a package / namespace
• Thin layer around C • Message-dispatch runtime • Static
and dynamic (you choose) • The “real” inspiration for 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
None
None
None
None
Demo
None
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/
Mobile HIG
now more important than ever!
None
None
None
None
NDA
None
books
None
None
None
None
None
None
None
None
None
thanks!
Please fill your evaluation forms!
(you could win a ticket)
questions?