|
|
Getting started with programming
|
|
|
|
Junior Member
Join Date: Feb 2008
Status:
Offline
|
|
Hey guys, I am really interested in learning how to program on my mac. however, i have no idea where to start. I installed the developer tools, but they are pretty confusing. What language should i start off writing? is there a guide somewhere that can help me to learn? thanks for the help
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
Python is a good language to start with, IMO. Buy a book and start coding.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2006
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Feb 2008
Status:
Offline
|
|
thanks for the help, are there any free online resources? I'm not a huge fan of books...
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Sep 2007
Location: NY
Status:
Offline
|
|
Ditto mduell, Python is great.
But if you want to write OS X applications with GUIs, it is all about C this is a good place to start:
SpiderWorks: Learn C on the Macintosh (Mac OS X Edition) by Dave Mark
Looks like a good book, thanks for the link.
thanks for the help, are there any free online resources? I'm not a huge fan of books...
Sometimes I'd rather look at online resources too. Some books are so boring, it's hard for me to get into them.
----
Happy Coding
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Mar 2008
Location: over there
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Aug 2002
Location: Cardboard Box
Status:
Offline
|
|
Would these be equally useful in learning to write iPhone apps? It's still Objective C (I think) in XCode right? I wanting to learn from zero experience. Oh, and I'm an old dog...New tricks... Wish me luck.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
The iPhone version of Cocoa isn't 100% identical to the Mac OS X version, but a lot of it is the same and even the parts that are different have a lot of overlap. A good grasp on Cocoa will make Cocoa Touch seem very familiar. So yeah, a good foundation in Cocoa will translate to the iPhone.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Aug 2002
Location: Cardboard Box
Status:
Offline
|
|
Thanks! Let the learning commence...I hope. I might just be too old to learn this stuff.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Mar 2008
Location: over there
Status:
Offline
|
|
teaching the old dogs is our exciting new trick.
|
|
|
|
|
|
|
|
|
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
Mike,
If you go to the Python website (python.org) there is a lot of documentation, including some user-friendly tutorials. :-)
|
"Against stupidity, the gods themselves contend in vain" (Schiller)
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status:
Offline
|
|
Python has a good reputation, but personally I prefer Ruby. Both of these languages are installed on OS X by default.
Just type 'irb' in the terminal and you an bang in Ruby code interactively.
Either Python or Ruby would be excellent ways to get into programming - they are so good in fact that many universities teach them to teach the fundamentals of programming. Once you have a grip of the basic concepts you can then progress to lower level languages like C (on which Cocoa/Objective-C is based).
There is a very powerful and popular framework for Ruby called 'Rails' which makes it very easy to develop web applications, so that's a great option if you want to develop web sites. The other benefit of learning Ruby is there is something called the 'Ruby-Cocoa bridge' in OS X which means you can actually write full blown OS X programs in Ruby. However, I'd still recommend getting to grips with Objective-C eventually, because this is the best way to go it you want to code OS X programs.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2005
Location: Salt Lake City, UT
Status:
Offline
|
|
First of all, thanks to the OP for posting this question, and thanks to everyone who has already contributed answers. I just wanted to ask a couple of related things. If I charge in and start learning C (or even Python), would a book be enough to get a fundamental understanding necessary to be a good coder, or would it just be like a lot of the scripting tutorials that are out there already: just a tour of objects, methods, attributes, and maybe a few examples?
Like the OP, I'm not a CS student or someone all that familiar with programming. I came into it through web design. I just worry that there are things that people learn in CS classes that make it easier for them to pick up these books and go ... things that maybe we wouldn't have.
Any thoughts?
|
17" Rev. A MBP (ATI X1600 256 MB, 2 GB RAM, OS 10.5, Parallels Build 3214)
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
Here's my thoughts. Standard disclaimers apply: these are my opinions only, I may be full of BS, etc.
Python and Ruby are very easy-to-understand languages (although the way Python makes whitespace meaningful bugs me). They're simple, clear, and easy to understand. And this is why I recommend that you start with C instead. If you start by learning C, and then pick up the basics of object-oriented programming by learning Objective-C (preferred if you're developing for the Mac), C++, or C#, you'll be able to pick up Python or Ruby in an hour, and get pretty good at it. On the other hand, if you go the other direction from Ruby or Python to C, you might have a hard time wrapping your head around some of the lower-level concepts in C like static typing, memory management, and pointers. Learn C first, then jump to the scripting languages when you want to do some web development, and it'll be a breeze.
In short - these scripting languages are great, but I wouldn't become dependent on them so that you have trouble using anything that's not a scripting language.
FWIW, I learned C from that Dave Mark book that someone recommended, although it was many years ago and it was the Classic Mac OS version of the book rather than the OS X version. But the book was very good, and if the new one is just the same thing using Xcode instead of CodeWarrior, then I'd recommend it.
Oh, and don't try to learn Objective-C before learning C first. Objective-C is a very small set of extensions to C that give it support for object orientation. If you learn C first, you can pick up Obj-C in a day. If you don't know C, though, you won't have a good idea of everything you can do in Obj-C.
(
Last edited by CharlesS; May 5, 2008 at 10:28 PM.
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|