r/simpleios • u/DrMyxo • Sep 25 '11
[Question] Is there anything that would be beneficial to know/learn before starting iOS programming?
It seems to me that a lot of developers have a foundation of programming experience in some form or another from their past to build upon. As someone who has no programming experience whatsoever, are there any topics/resources that would make learning iOS programming easier to understand? Or is it better to just jump in using the material that has already been suggested?
20
Upvotes
1
u/godOfTheGaps Sep 26 '11
Know that you're not going to understand everything right away. And that's okay. You'll gain a little bit of knowledge day by day.
Initially you'll have to google a lot of things. But that's okay too. Eventually, you'll commit things that you use over and over to memory. And before you know it you'll be a proficient objective-c programmer.
1
u/[deleted] Sep 26 '11
I think learning a nice high level language like Python or Ruby is always a good idea, I think it would make the transition to learning iOS programming.
1
u/xPaQx Sep 26 '11
Just learn Objective-C, or even C. Read about plain OOP and Design Patterns.
1
u/schmeebis [M] 📱 Sep 28 '11 edited Sep 28 '11
Know that disk access will (probably) be the slowest thing that Cocoa Touch will have you do on the main thread. (By "have you do" I mean, "Won't easily/automatically prevent you from doing") Granted, HTTP is usually even slower, but NSURLConnection will send the actual HTTP request on a thread for you, while returning the response to its delegate on the thread that fired the request.
Why is it bad to do slow things on the main thread? Because the user interface of your app will seize up until the thread is done doing whatever you were having it do. Scrolling will stop, buttons will stay highlighted after the finger lifts from the screen, etc.
So in other words, look into learning a bit about threads. Or, even better, just use the abstracted higher-level async classes like NSInvocationOperation and NSOperationQueue. (Any of you PHP programmers can think of this as Gearman for Objective-C, kind of. Or whatever unit-of-work manager you want in Ruby or Python)
All-in-all, it's a very good idea to exercise event-based programming methodologies if you have an app with any amount of complexity. :)
1
u/Asyx Oct 08 '11
http://cocoadevcentral.com/
Take a look at the C TUtorial for Cocoa. At the end of the tutorial you have 2 additional links to tutorials about arrays and memory management and pointer. I think this is the best way to understand the basics of C and the basics of C are very useful for Objective-C. Don't mess around with C# or Java. For me it was very hard to get into Objective-C after Java and C#.
0
u/xfdp Sep 25 '11 edited Jun 27 '23
I have deleted my post history in protest of Reddit's API changes going into effect on June 30th, 2023. -- mass edited with redact.dev
0
u/[deleted] Sep 26 '11
[deleted] — view deleted comment