Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mraila

macrumors member
Original poster
Nov 4, 2005
31
0
I'm fairly bright (I think) and would like to start teaching myself some coding. I did some BASIC and Pascal (I know, don't laugh) in high school, which was about 15 years ago.

I do Web stuff (HTML, BB, and Dreamweaver mostly), and am fairly computer literate. Which language should I start with? (do they still call them languages?!?) Can you recommend any good books/sites?

While my employer (a *large* university) offers classes I can take for free, I no longer have the attention span to sit through a whole semester of anything...
 

peterparker

macrumors regular
Mar 12, 2005
247
0
Houston
mraila said:
I'm fairly bright (I think) and would like to start teaching myself some coding. I did some BASIC and Pascal (I know, don't laugh) in high school, which was about 15 years ago.

I do Web stuff (HTML, BB, and Dreamweaver mostly), and am fairly computer literate. Which language should I start with? (do they still call them languages?!?) Can you recommend any good books/sites?

While my employer (a *large* university) offers classes I can take for free, I no longer have the attention span to sit through a whole semester of anything...

What is it you want to learn for, to get work programming, or just for fun? Do you want to start with programming in the web environment or stand-alone applications?
 

mraila

macrumors member
Original poster
Nov 4, 2005
31
0
Not really interested in programming for the Web.

I would say the ideal and/or long-term plan would be game development.
 

hopejr

macrumors 6502
Nov 10, 2005
310
0
New South Wales, Australia
Java is a good one to start with to get used to Object-Orientation (none of the languages you've done really have that), but if you want to do *real* programming on the Mac, you should learn Objective-C. It's a nice OO language, and you can do OpenGL stuff with it for gaming.
 

superbovine

macrumors 68030
Nov 7, 2003
2,872
0
I would first recommend you learn both windows and apple programming. there is a lot more windows jobs out there than apple jobs. the current state of the industry it wouldn't be a bad choice.

that being said if you want to do game programming, you should look into opengl programming and directx.

i've never done directx work before but a google and reading a book on game dev with direct x wouldn't be hard to find.

opengl on the other hand I have worked with. the first book you need to read this book on opengl. http://www.opengl.org/documentation/red_book_1.0/
basically, you need to have this by you side when you learn. a lot of tutortials and documentation out there refer to the "red book". the other thing you should look into is glut which is a nice library for opengl and a must have for newbies. (This goes for all plateforms). After that I suggest you google for sample code and tutorials. there will a lot more windows code than apple, that is why i suggest you do some windows dev as well.
 

mms

macrumors 6502a
Oct 8, 2003
784
0
CA
I've never tried OpenGL but it doesn't sound like too great of a choice for a first language. From my experience the first language to learn should probably be either Java or Python. Java isn't too difficult to learn and is good if you want to jump into programming quickly but Python is also a good choice. It's easier to learn, easier to use, and still quite powerful and advanced.
 

mraila

macrumors member
Original poster
Nov 4, 2005
31
0
Thanks for the replies - keep 'em coming!

However, if possible, please explain all terms. I have no idea what "direct x" is, or "openGL." I guess they're programming languages? What are "objects" and "object oriented?"

Thanks again!
 

mms

macrumors 6502a
Oct 8, 2003
784
0
CA
http://en.wikipedia.org/wiki/OpenGL
OpenGL is a specification for writing applications that deal with 3D graphics. I'm assuming that somebody suggested it because you mentioned games. While I don't know much about OpenGL, I don't think it's a language in itself and definitely not something that you want to start out with.

DirectX is a game programming API mainly for Windows game programming so you're probably not going to want to deal with that.

Object-Oriented Programming is a way of looking at the writing of applications. It basically organizes code into a collection of individual units and makes it easier to write, maintain, and learn.
http://en.wikipedia.org/wiki/Object_oriented
 

superbovine

macrumors 68030
Nov 7, 2003
2,872
0
mms said:
http://en.wikipedia.org/wiki/OpenGL
OpenGL is a specification for writing applications that deal with 3D graphics. I'm assuming that somebody suggested it because you mentioned games. While I don't know much about OpenGL, I don't think it's a language in itself and definitely not something that you want to start out with.

DirectX is a game programming API mainly for Windows game programming so you're probably not going to want to deal with that.

Object-Oriented Programming is a way of looking at the writing of applications. It basically organizes code into a collection of individual units and makes it easier to write, maintain, and learn.
http://en.wikipedia.org/wiki/Object_oriented

opengl is an api...
 

Selivanov

macrumors newbie
Nov 7, 2005
9
0
Voronezh, Russia
mraila said:
Thanks for the replies - keep 'em coming!
Java is good for Web and stand-alone applications. But i would recommend to you not to learn particular programming language. I recomend become a project manager. Rather to learn new technologies or languages you ned to know about them and have a good viewpoint on them.
(sorry, my eng is so bad :-( )
 

balamw

Moderator emeritus
Aug 16, 2005
19,366
979
New England
mms said:
From my experience the first language to learn should probably be either Java or Python.
I'll second (or third) this. Java is a good place to start if you really want to learn programming. Python is also a good choice, but remains less common. I will bring up a third option and will probably get run out of town for it. C# is a decent alternative to java, despite it's Microsoft origins, it has become quite cross-platform thanks to the mono project.

None of these languages are ideal for programming fast action, graphically intensive games, you will have to shift over to C++ or Objective-C and make use of graphics APIs (applications programming interfaces) to make something fast enough to be playable. The general concepts will carry over well from java, C# or python.

B
 

mms

macrumors 6502a
Oct 8, 2003
784
0
CA
Once you choose what to learn it's a good idea to look for a good book to get you along. I personally recommend O'Reilly's series since they tend to be pretty solid.
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
None of these languages are ideal for programming fast action, graphically intensive games, you will have to shift over to C++ or Objective-C and make use of graphics APIs (applications programming interfaces) to make something fast enough to be playable. The general concepts will carry over well from java, C# or python.

For that reason alone, I would recommend nothing less that C++ for you. C++ basics are easy to learn (although in later situations pointers will give you headaches) and after that, you can easily go to Objective-C. Those 2 languages are good for games.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.