Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 7, 2005, 12:16 PM   #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 12:48 PM. Reason: don't circumvent the profanity filter
XNine is offline   0 Reply With Quote
Old Apr 7, 2005, 01: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, 01: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, 01: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, 04: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, 06: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 11, 2005, 12:59 AM   #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, 10: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, 05: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

Similar Threads
thread Thread Starter Forum Replies Last Post
Advice on learning programming harlanjmichael Mac Programming 10 Mar 13, 2014 02:02 PM
Good books for learning programming workflow? MorphingDragon Mac Programming 0 Mar 7, 2014 06:24 AM
Mac programming should be more like iOS programming. moonman239 Mac Programming 13 Feb 17, 2014 02:37 PM
What are the best learning practices to learn programming? DavidBlack Mac Programming 47 Aug 1, 2013 01:11 AM

Forum Jump

All times are GMT -5. The time now is 01:53 PM.

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

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