开发者

from JS to iphone dev - what's the best language to start with?

I am a total beginner and would like to eventually learn to develop for the iphone.

I have just done a beginner's CS course where the language we learned was JavaScript. We studied basic concepts like: variables, arrays, loops (for,while,if,if..else..), properties and functions.

I'm wondering if I am starting in the right/wrong place by following this book: Learn C on the Mac by Dave Mark?

I have read a few chapters and am finding it a bit hard to get my head around the way that C works,开发者_如何学Go for example the way that Strings are printed seems overly complicated as compared to JS.

Do you think that JS was the wrong language to start off with and would I be better to go from JS straight to Objective-C rather than to C?

I have tried to read up on previous threads on the merits/demerits of learning C first but haven't found any that relate JS to learning C/Obj C/ Cocoa.

Any advice appreciated as I am very new to this.

Thanks


Yikes.

JavaScript seems like a really poor choice for starting a new developer off on the right path. It has the basic constructs of most languages, but weak typing and the Prototype approach to Object Oriented development would be hard to transition away from.

That said, I would first pick up a book on straight Object Oriented programming concepts first. Head First Object-Oriented Analysis and Design seems to be a popular choice around here.

After that, I'd go straight to Obj-C. You'll pick up the pieces you need from C without learning any of the potential bad habits that people sometimes bring wit them from a procedural language like C to an Object Oriented language like Obj-C.


This is flame bait, but I'm going to say it anyway since I've had a bit too much coffee and it's Friday.

  1. There is nothing wrong with starting with JavaScript, so long as you know it's only one of many languages you will need to learn if you are serious about a programming career.
  2. iPhone development is not that much different than any other type of development, but the tools are very different.
  3. Learning and knowing C is a good place to start if you are planning on being proficient in Objective-C. However, I recommend reading through this introduction to Objective-C first before going out and buying a bunch of books because you're goal is ultimately the iPhone and it's free from Apple.
  4. If you just want to get something mobile out there and you are familiar with html/javascript but don't need to be in the App Store then one of the many web frameworks like iUI, PastryKit, jqTouch and PhoneGap will help you there.

In my opnion you should start small, and work your way up to bigger things. Something like an alarm clock app might be a good place to start ;)


Why not start with C? It's a little harder to learn upfront than javascript, but down the road when you start using Objective-C you'll have a leg up.

Cocoa Dev Central has a lot of great tutorials to get you started in Objective-C (and one in C).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜