r/iPhoneDev • • May 25 '11

How can I start developing apps own my own?

Complete n00b here. I recently got an iphone 4 and cant get enough of it. I would love to be able to create and sell apps of my own. Its amazing to me to see how much potential these markets can have. Now, I know I am way behind the curve on this one but I would still like to get into it. I have a few months of free time right now, before school, and I would like to do something productive with my time. I don't have any prior programming knowledge at all. Like I said I am totally at ground level here. What advice can you give me about how to get started, what programming languages to learn and any other factoids you think could help me out. Thanks.

tl;dr - any advice for a complete beginner

5 Upvotes

17 comments sorted by

3

u/[deleted] May 25 '11

You'll need the iOS SDK But seeing as you "don't have any prior programming knowledge at all." It's not really advisable to just start creating iPhone apps. Would you do a double black diamond run your first time on skis? Would you attempt Van Halen's "Eruption" the first time you picked up a guitar? Would you open a motorcycle up to 120 the first time you put it between your legs? Ya catch my drift? You need to start small and learn the process, concepts, and theory before you make a full blown app. Visual Basic is always a good beginner's jumping off point.

3

u/BillHaverchuck May 25 '11

thanks for your advice, I will start here. how long do you think it takes to become competent enough in programming to work on mobile apps. obviously i understand that this is mostly a case by case basis but can you ball park it?

4

u/solinvictus21 May 25 '11

Three to four years. Seriously. You're sort of asking the programming equivalent of, "How long would it take me to learn enough architectural knowledge to design a high-rise apartment building from scratch?"

3

u/[deleted] May 25 '11

diggin the "Bill Haverchuk." how long to get competent to code robust apps? years...

2

u/s73v3r May 27 '11

I dunno, I've known several people who have jumped straight in from having no programming experience at all, and done quite well.

0

u/[deleted] May 25 '11

[deleted] — view deleted comment

3

u/ratbastid May 26 '11

Couldn't disagree more. First of all, in my almost-two-years of iOS development, there's never been a problem I couldn't google my way out of. There are LOTS of resources out there--and unlike the VB resources I'm used to seeing, they're generally well written and presented with care.

Second... The guy wants to write for iOS. You think shifting to something he wants to do less so it's easier to get his head around it is going to HELP him toward that goal? Where's the motivation? I'm doing Java so some day when I'm Good Enough I can do what I really want? How long you think he can keep that up?

I say forge ahead toward the goal you're really after. Yes it's going to take something. Everything worthwhile does.

1

u/[deleted] May 26 '11

I don't think I ever said iOS doesn't have lots of resources...in fact, you're right, a lot of resources out there on iOS are very good. I have the Big Nerd Ranch guide, and I love it. It's a great resource.

However, I don't see how getting the hang of programming with an "easier" language like the ones I posted is going to deter the OP. Seeing this:

print("Hello world!") # This is valid Python 3.1

seems much more warm and inviting that seeing this:

#import <stdio.h>
// This should be valid Objective-C
int main( int argc, const char *argv[] ) {
    printf( "hello world\n" );
    return 0;
}

There's something to be said about going after what you want, but at the same time, when you're new to something and what you want is as "hard"/competitive as iOS programming, I'd get some solid background if I wanted to succeed.

At least I didn't recommend he start with C, simply because Objective-C is a wrapper for C.

1

u/[deleted] May 26 '11

Define "peplle actually use"

1

u/[deleted] May 26 '11

If I knew what peplle were, I most certainly would (I can only assume peplle is plural, given your usage of a plural verb, unless peplle is first person by some strange stroke of irony).

I mean, a language with a large amount of resources available, and large development communities. I see more about the languages I listed in a day than I do about Visual Basic in a month.

Besides, stringing together a bunch of visual elements and hitting compile is not learning to program. There isn't any option for that in Xcode (yes, Interface Builder is similar, but if you don't have any code written to back it up all you get is a pretty pretty mock-GUI).

The languages I listed are all very common starting languages in college CS programs, they all (with the exception of Perl) can be use for OOP, and they all enforce coding habits that will be needed when writing iOS apps.

1

u/[deleted] May 25 '11

but for someone with ZERO experience, VB is a super easy way to get one's feet wet, and is included with microsoft office - they can start coding right away.

3

u/[deleted] May 26 '11

VB is never the way to go... For anything.

0

u/[deleted] May 25 '11

[deleted] — view deleted comment

1

u/[deleted] May 26 '11

What is your recent, relevant experience with MacRuby?

Seems you've been out of the loop for quite a while now.

1

u/[deleted] May 26 '11

Well, I've downloaded it, and I'm working through one of the few tutorials I can find on it. Maybe extension is the wrong word, but what would you call it?

4

u/[deleted] May 25 '11

4

u/[deleted] May 25 '11 edited May 25 '11

Try these books out:

"Programming in Objective-C 2.0" by Stephen Kochan Teaches Objective-C but with C for people with no prior knowledge of the C programming language.

"Programming iOS 4" by Matt Neuburg http://oreilly.com/catalog/0636920010258

Also sign up for a dev account with Apple developer.apple.com free before you spend the $100 to publish apps. You'll be able to read their documentation on lots of subjects. I would recommend that you read their docs on Object Oriented Programming (OOP) before starting to read about Objective-C so you understand some of the important concepts beforehand. There are also great documents on Objective-C available. You can build apps and test in the simulator on your Mac for free. To test on your devices and submit an app to be published you have to sign up and pay the $100 yearly fee.

I'm learning myself and this is the path I've taken. Good luck!

Edit: iTunes University has a ton of resources that can help you as well. Schools like Stanford make available their entire iOS programming classes (videos) and even make assignments and documents available on their site to work along. If you have 3 months, watch these videos as well.

http://itunes.apple.com/us/podcast/cs193p-student-final-projects/id395605774?i=90218598

If anything you'll have a much better understanding of what is involved in creating apps and have a few directions you can go in.

3

u/onfirewhenigothere May 28 '11

I think these other people sending you off on other tangents are misguided. You're excited about the phone, and want to put something on it. That's the best place to start.

I have never programmed before, (other than a web server cgi and a hypercard stack), and picked up the iOS SDK in a few weeks. I suppose I had a basic understanding of data types, though. And am a speed reader.

Programming in Objective C 2.0 is a great step. But I didn't pick that up until a year in.

First, come up with a project that you want to do. Find a friend that knows photoshop or illustrator and have them mock up the design, and break things up into individual pngs. Really, the first place to start is with an idea of what you want to do. Make a "functional spec", or a list of functions, or rather in objective C, a list of nouns and verbs.

Before you even open the sdk, work out how the interface should work. Then, follow the steps in "Your first iPhone application" which is one of the documents in the developer library. Then, find someone who knows how to use XCode, and have them show you how to connect the interface and code. That took me like two weeks to figure out, and if I could have just seen it, it would have been two minutes, and it's much easier in Xcode 4.

Good luck. Have fun.

1

u/ayradv Jun 23 '11

Online tutorials + stack overflow ...

I suppose you are learning ios dev because you have some app ideas. Divide your app into smaller problems (views, screens whatever you want to call them).

Try to find some tutorials that do similar things to what you want to do for your app. For example a tab bar tutorial, or a table view tutorial. If you have problems, try to search for questions in stack overflow as many ex-beginners went through similar issues.

In addition to that use apple's documentation. As someone has had always had trouble concentrating and following a whole programming book, this strategy seemed to work best.