Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 7, 2005, 11:16 AM   #1
XNine
macrumors 68040
 
XNine's Avatar
 
Join Date: Apr 2005
Location: Why are you wearing that stupid man suit?
Learning programming.

First, I'd like to say that I have past experience programming my own games on an Apple IIe that never workd. Second, I would like to know the best way to learn coding for OSX. I need a basic understanding of all terminology and what it does.

IF you have any resources (good books, ebooks, sites, etc) please reccomend. I tried starting out with HELLO WORLD! and completely [expletive deleted] that up. So....yeah.

Thanks!
-O

Last edited by bousozoku; Apr 7, 2005 at 11:48 AM. Reason: don't circumvent the profanity filter
XNine is offline   0 Reply With Quote
Old Apr 7, 2005, 12:11 PM   #2
plinden
macrumors 68040
 
plinden's Avatar
 
Join Date: Apr 2004
What language do you want to learn? If you want to write applications for the Mac, then I guess you want to learn C/C++.

You'll get as many recommendations as you'll get responses since everyone has their own best way of learning, but if you're serious, I would recommend learning Java first. This is similar enough to C++ to make a move to C++ not exactly painless, but you wouldn't be distracted by the need to learn C first (hence having to unlearn all the bad things about sequential programming when you start on C++) and it would give you a good grounding in object-oriented programming. Also all the necessary tools and compilers are free for Java, and it's mostly crossplatform.

However, since you seem to have problems with the simplest programs, I suggest you take a look around for beginner programming courses. Nothing can substitute for having someone to ask in person when you're having problems.

As for books, I suggest you get "The C++ Programming Language" by Bjarne Stroustrup ...


... only joking - I still haven't finished it myself. Take a course and use whatever books they recommend.
plinden is offline   0 Reply With Quote
Old Apr 7, 2005, 12:15 PM   #3
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
http://forums.macrumors.com/showthread.php?t=90331
jeremy.king is offline   0 Reply With Quote
Old Apr 7, 2005, 12:38 PM   #4
Pismo
macrumors 6502
 
Join Date: Apr 2002
Location: NH
My favorite language is Java. I like using Xcode a lot more than using Microsoft's .Net 2003 for Windows. The Xcode IDE feels more complete and it's a lot easier to use.

My suggestion is to get some books on C++, Objective C, or Java for beginners. You can apply what you learn to pretty much any platform whether it be OS X or Windows. I like programming in Java because it's a great cross-platform language.

If you want to learn how to program using Xcode, there should be some beginners books by Big Nerd Ranch, O'Reilly, and maybe some "Dummies" books. I have a bunch of Deitel & Deitel books and they are great. Although they get really advanced in a few chapters. Good luck.
Pismo is offline   0 Reply With Quote
Old Apr 7, 2005, 03:19 PM   #5
XNine
Thread Starter
macrumors 68040
 
XNine's Avatar
 
Join Date: Apr 2005
Location: Why are you wearing that stupid man suit?
Thanks for the Links/suggestions. I'd really like to learn Cocoa, but if I have to gradually learn through other languages, that's cool.

Eventually, when Tiger IS released, I'd like to develop some widgets, and I understand (from the ADC site) that it requires knowledge of JAVA/HTML/Network interfacing, etc. So...

I'm


Taking



The


Plunge!

XNine is offline   0 Reply With Quote
Old Apr 9, 2005, 05:08 PM   #6
WebMongol
macrumors member
 
Join Date: Sep 2004
Location: Bay Area, CA
Start with Python

I would recommend to start with simple language as Python. It's just more fun and you may become productive in a shorter period of time.
Following is a hello world (hello.py):

#! /usr/bin/python
print "Hello, World!"
---END---------------

to run:
in Terminal type:
$ python hello.py

OR make in executable and type only file name to run:
$ chmod 755 hello.py
$ ./hello.py

It's easy to add a loop:

#! /usr/bin/python
print "Hello, World!"
for i in range(10): print "hello again #", i

Check out Python site for documentation:
http://python.org/doc

Good luck.
WebMongol is offline   0 Reply With Quote
Old Apr 10, 2005, 11:59 PM   #7
Mechcozmo
macrumors 603
 
Mechcozmo's Avatar
 
Join Date: Jul 2004
QBASIC!

For your hello world, just enter in:

PRINT "HELLO WORLD!"


And then press F5 to run it. I learned VB.NET and QBASIC isn't too far removed...
__________________
This is not the signature you're looking for.
This is not the signature we're looking for.
You can scroll down now.
You can scroll down now.
Mechcozmo is offline   0 Reply With Quote
Old Apr 11, 2005, 09:19 AM   #8
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Just pick one in the list...

http://c2.com/cgi/wiki?HelloWorldInM...mmingLanguages
jeremy.king is offline   0 Reply With Quote
Old Apr 16, 2005, 04:39 PM   #9
nokq
macrumors member
 
Join Date: Aug 2003
Quote:
Originally Posted by WebMongol
I would recommend to start with simple language as Python. It's just more fun and you may become productive in a shorter period of time.
Following is a hello world (hello.py):

#! /usr/bin/python
print "Hello, World!"
---END---------------

to run:
in Terminal type:
$ python hello.py

OR make in executable and type only file name to run:
$ chmod 755 hello.py
$ ./hello.py

It's easy to add a loop:

#! /usr/bin/python
print "Hello, World!"
for i in range(10): print "hello again #", i

Check out Python site for documentation:
http://python.org/doc

Good luck.
Agree. Python makes programming fun. I know several languages, Java, C, C++, Objective C, etc. I like python for its elegance and simplicity. It can get a job done.

My vote is for python. Start there.
nokq is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Learning Objective C gwelmarten iPhone/iPad Programming 5 May 26, 2011 11:49 AM
Effective foreign language learning programs at home YS2003 Community Discussion 0 Dec 4, 2005 10:55 AM
Preschoolers learn programming superbovine Community 2 Aug 11, 2005 03:48 AM
Learn Programming? jer446 Mac Programming 51 Jul 11, 2005 03:58 PM
I want to learn programming - which language to start at? cb911 Mac Applications and Mac App Store 42 Aug 4, 2004 11:33 AM


All times are GMT -5. The time now is 11:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC