Reinvent yourself - How to become a native iOS developer in nine steps

1,934 views

Published on

A blueprint on how to become a native iOS developer that follows along with my journey from a Adobe Flex developer to a native iOS developer

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,934
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Thank you all for coming More storytelling, and less code. Share my experiences over the last two years as
  • Then we need a plan
  • Nope, not that plan ...
  • Why am I here?
  • Going to be here a while; lets build some shelter.
  • My thought process; convincing myself.
  • Netflix - number of native clients?
  • None of the things on this screen have caused me to work late, or have a bad day since moving to iOS.
  • Go fast past this slide More fragmentation in the browser and on Android
  • Hello World
  • To be more specific, $1900 Hello World
  • no desire to work when family out of town
  • Like trama
  • Objective-C is based on C, but with OO int, float, double, long, long long, short, BOOL, NSNumber, NSDecimalNumber (signed and unsigned versions of both) I should have read the book Joel reccomended
  • Skip this slide during presentation
  • Skip this slide during presentation
  • I was very lucky, a client I was doing Flex side work for needed some help with iOS 7 months from when I stared learning till I was billing part time 1 year from when I stared learning till I was billing full time
  • Slideshare
  • Reinvent yourself - How to become a native iOS developer in nine steps

    1. 1. Reinvent Yourself Become an iOS Developer in Nine Steps 987654321
    2. 2. Jason Hanson ✤ St. Louis, MO ✤ Alien Robot Overlords, Inc. ✤ Flash/Flex Dev (1999 - 2012) ✤ iOS Developer (2011-2013) ✤ @jayfour000
    3. 3. Change is Hard – Set a Goal
    4. 4. Change is Hard – The Plan
    5. 5. Change is Hard – Smaller Plan
    6. 6. Change is Hard – Woot! a Shovel
    7. 7. ✤ Change is hard ✤ Fear >>= anger >>= hate >>= dark side ✤ Friction, heat, pressure, energy ✤ Takes time and patience ✤ Change too much at once and things break ✤ Don’t have to start over, start with what you have ✤ Change not is necessarily better or worse — just different Properties of Change
    8. 8. Step 0: Start Somewhere We all have to start where we are with what we have.
    9. 9. Step 1: Accept the Apple Way I <3 Apple (fake it till you make it)
    10. 10. ✤ Apple knows better then you ✤ Well, they think they do anyway ✤ Like a child who insists that you disappear into the nether when you step out of sight ✤ Just nod, smile, and go along for the ride ✤ Some blind faith is required. Be comfortable with ‘not knowing’. ✤ Apple can do no wrong, even when wrong they bend the universe so that they are not wrong Step 1 – Accept the Apple Way
    11. 11. Step 1 – Accept the Apple Way ✤ Apple makes decisions for you ... so you don’t have to (good & bad) ✤ Form factor, asset types, sizes, names – lots of convention ✤ Supported OS versions (only need to support current + one version back!) ✤ App Store Rejections ✤ Available APIs (using undocumented APIs gets your app rejected) ✤ Appropriate content / interesting app ✤ Grades your code quality (rejects bad code)
    12. 12. Step 1 – Accept the Apple Way ✤ Stuck in a Sandbox ✤ It is a really nice sandbox ✤ Be happy in your little corner and work with the tools provided ✤ Don’t waste time trying to go outside your sandbox ✤ ex: Closing app with code ✤ ex: Reading device phone number ✤ ex: Code injection
    13. 13. Second Thoughts? ✤ Hey! I want outta here! Maybe I can still make that session on Flex ... ✤ Wait ... why do I care about Flex still? ✤ javaScript unit tests?? (hmm ... lipstick? pig?) ✤ What other options do I have, really? ✤ But why would I subject myself to this egocentric platform? ✤ Should I really sell my last ounce of pride, and my soul, to Apple? ✤ Really f’ing Apple ... really, those guys?
    14. 14. Why I Chose iOS over JS & Android
    15. 15. Why I Chose iOS ✤ The ecosystem is very nice. Hard things are made easy. ✤ Solid Object Orientated language ✤ C and Obj-C useful for a very long time ✤ The ease and power of native device code was a breath of fresh air after fighting Flash to ‘act native’ for ten years ✤ Good developer community ✤ Good documentation ✤ Good tools Xcode Interface Builder, JetBrains AppCode
    16. 16. Why I Chose iOS
    17. 17. Why I Chose iOS ✤ The barrier to entry is higher then HTML/JS/CSS work ✤ The startup cost is high (@see Step 2) ✤ Hard(er) skill to learn IMO; lots more barriers ✤ Statistically less qualified developers ✤ Equates to better projects / higher bill rates ✤ The Apple App Store monazites better then competition
    18. 18. Why I Chose iOS ✤ iOS: • 90% on iOS 6 • 2 screen aspect ratios • 3 screen DPIs ✤ Android: • 40% on “Jelly Bean” • 22% on “Ice Cream Sandwich” • 33% on “Gingerbread” • “Lots” of screens ...
    19. 19. Step 2 – Get the Gear The right tool for the job
    20. 20. Step 2 – Get the Gear ✤ Let's go shopping! ✤ Macintosh computer (MacBook Pro) ✤ iOS device (Retina iPad) ✤ Apple developer account ✤ Apple Xcode ✤ JetBrains AppCode
    21. 21. Step 3 – Hello World Time to play with the new toys!!
    22. 22. Step 3 – $1900 Hello World ✤ $1199.99 - Macintosh computer (MacBook Pro) ✤ $499.99 - iOS device (Retina iPad) ✤ $99.00 / year - Apple developer account ✤ $0.00 – Apple Xcode ✤ $199.00 – IntelliJ AppCode ✤ $29.99 - Cord to connect your iOS device (joking ... but just barely)
    23. 23. Step 3 – $1900 Hello World ✤ Yes, it just cost you $1900 to do a Hello World ✤ Deep breath, it is worth it. Stick with it. ✤ Good to know everything is working ✤ Show off to your friends ✤ Get setup to start playing!
    24. 24. Step 4 – Get Organized Prepare before setting off for your journey.
    25. 25. Step 4 – Get Organized ✤ Place to study (kitchen table, coffee shop, library) ✤ Schedule time to study (nights, weekends) ✤ Books ✤ Videos ✤ Forums ✤ Tools
    26. 26. Objective-C Programming The Big Nerd Ranch Aaron Hillegass Forum where you can ask questions about code for each chapter in the book.
    27. 27. iOS Programing The Big Nerd Ranch Joe Conway & Aaron Hillegass Forum where you can ask questions about code for each chapter in the book.
    28. 28. Cocoa Design Patterns Erik M. Buck Donald A. Yacktman I have not read this book, but Joel Hooks recommended it to me.
    29. 29. WWDC Videos Included in your Apple Developer account
    30. 30. Stanford Videos Free videos. Apple SDK changes faster then the curriculum, but good starting point.
    31. 31. Stack Overflow Unlike Flash and Flex I found tons of very great posts with very usable code and answers most all of my questions.
    32. 32. Ray Wenderlich http://www.raywenderlich.com/ Great blog with amazing tutorials for everything you want to do
    33. 33. CodeRunner OS X AppStore $9.99 Write and run code snips
    34. 34. Step 5 – Join the Community Learning is easier with friends!
    35. 35. Step 5 – Join the Community ✤ Learning is easier with friends ✤ User groups – CocoaHeads (http://cocoaheads.org/) ✤ Message boards (Stack Overflow) ✤ Guy at coffee shop ✤ Friends, co-workers ✤ Give presentations
    36. 36. Intermission – Motivation (needed before next step) (needed before next step) ✤ Find out what motivates you
    37. 37. Intermission – Motivation (needed before next step) (needed before next step) ✤ My motivators ✤ Primal urge to provide food and shelter for my family ✤ Personal *fun* projects ✤ Competition with friends also reading the same books ✤ Little rewards ✤ Coffee at 4pm - doing my morning ritual at 8pm
    38. 38. Step 6 – Learn Core Language Deep down in the mine I mine at night.
    39. 39. Step 6 – Learn Core Language ✤ This is hard. Very hard. No easy way around it, only through it ✤ iOS apps are written in C and Objective-C ✤ C requires manual memory management ✤ Objective-C now has a memory management helper called ARC (Automatic Reference Counting) ✤ Any null pointer will crash your app - boom! I needed to get this right.
    40. 40. ActionScript 3 vs Objective-C BOOL myBoolean = YES; int myInt = 13; float myFloat = 3.14; NSObject *myObject = [[NSObject alloc] init]; NSObject *myObject = @{}; NSArray *myArray = [[NSArray alloc] init]; NSArray *myArray = @[]; - (int)addA:(int)a plusB:(int)b { return a + b; } var myBoolean:Boolean = true; var myInteger:int = 42; var myNumber:Number = 3.14; var myObject:Object = new Object(); var myObject:Object = {}; var myArray:Array = new Array(); var myArray:Array = []; public function addTwoInts(a:int, b:int):int { return a + b; }
    41. 41. Storytelling Syntax // Objective C -(void)showUserDataFor:(User *)user onDate:(NSDate *)date withSortOrder:(NSSortDescriptor)sortOrder{ // TODO: method implementation } Show user data for Jason on date Oct 28, 2013 with sort order ascending. // Same method as above with colons lined up -(void)showUserDataFor:(User *)user onDate:(NSDate *)date withSortOrder:(NSSortDescriptor)sort{ // TODO: method implementation } // AS3 public function showUserDataForUserOnDateWithSortOrder(user:User, date:Date, sortOrder:String):void { // TODO: method implementation } // AS3 public function showUserData(user:User, date:Date, sortOrder:String):void { // TODO: method implementation }
    42. 42. ✤ Bringing old patterns that did not fit well; like meta-data dependency injection & presentation model ✤ Android patterns (widgets, expecting hardware back button) ✤ C and Objective-C numeric types ✤ CoreData ✤ Not learning more about Categories, Delegates, and the mediator design pattern early on. Where I Stumbled
    43. 43. Gotcha – Numbers CodeRunner #import <Foundation/Foundation.h> int main(int argc, char *argv[]) { @autoreleasepool { NSNumber *msTimeSince1970 = [NSNumber numberWithLongLong:1374759546000]; int secTimeSince1970 = msTimeSince1970.intValue / 1000; NSDate *myDate = [[NSDate alloc] initWithTimeIntervalSince1970:secTimeSince1970]; NSLog(@"The date is %@", myDate); } }
    44. 44. Gotcha – Strings CodeRunner #import <Foundation/Foundation.h> int main(int argc, char *argv[]) { @autoreleasepool { NSString *myString1 = @"foo"; NSMutableString *myString2 = [NSMutableString stringWithString:@"foobar"]; [myString2 replaceOccurrencesOfString:@"bar" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [myString2 length])]; NSLog(@"myString1 is: %@", myString1); // foo NSLog(@"myString2 is: %@", myString2); // foo NSLog(@"%d", (myString1 == myString2)); //0 NSLog(@"%d", [myString1 isEqualToString:myString2]); //1 } }
    45. 45. Step 7 – Study, study, OMG study Book, book, book, book
    46. 46. Step 7 – Study, study, OMG study ✤ Everyone learns in a different way ✤ Make slow, steady progress ✤ It will be hard ✤ Do lessons multiple times ✤ Review is an important part of learning
    47. 47. Step 8 – Build Free Apps Off to work I go
    48. 48. Step 8 – Build Free Apps ✤ Help out friends, people from the community (see step #5) ✤ Make apps that do something to help your life ✤ Release your own app to App Store ✤ Build relationships
    49. 49. Step 9 – Get Paid Diamonds!!!
    50. 50. Step 9 – Get Paid ✤ Charge for side work as soon as you can ✤ Replace your study time with billing time ✤ Balance learning with billing ✤ Build a good reputation ✤ Bill rates for iOS are comparable to Flash/Flex rates
    51. 51. My iOS Journey Timeline ✤ Sep 2011 - Started learning iOS ✤ Oct 2011 - Got iPad 1 ✤ Nov 2011 - Flex is dead to me ✤ Feb 2012 - iOS dev account ✤ Mar 2012 - My first iPhone ✤ Apr 2012 - Billed first iOS work ✤ Apr 2012 - Speaker Cocoaheads ✤ Aug 2012 - iOS Speaker IDSTL
    52. 52. Where I am today ✤ Still learning ✤ Contracting ✤ Mentoring apprentice ✤ Talking at user groups ✤ Keeping on eye on what is coming up next (wearable computing)

    ×