Wowser! |
|
I REALLY need to learn a computer language. Can anyone tell me what is the best language to learn? I want to make video game when I get into college... since Im not doing much now that is contributing to my future... I have ALOT of time. I have a game written out and ready for programming but there are problems... 1. I dont have my own computer yet and 2. I do not know a computer language. Can anyone help me with this? |
|
Wowser! |
|
I don't mean to piss in your cornflakes |
|
(\_ _/)
(='.'=)
(")_(")
As Ynot said, don't expect to learn one language in one week/month/year/whatever and be able to write a consumer-grade video game. Google's Peter Norvig wrote an article on this subject called Teach Yourself Programming in Ten Years. It's worth the read. |
|
Games huh? Learn C. C and C++ are used almost exclusively in gaming and C++ is just a kind of extension of C. It's object oriented which can be tricky to learn if you don't have any basics so C is the best bet. |
|
Last edited by ninja9578; 02-22-2008 at 01:17 AM.
But don't think of it that way because to use C++ well you have to program in a completely different mindset from C. In fact, Accelerated C++, often regarded as the best (although somewhat dry) introduction book to C++, jumps right into the STL with vectors, linked lists, and strings, and it doesn't teach C arrays or pointers until chapter 10. |
|
Yeah, the mindset when programming in one verses the other is very different, I was merely stating that syntactically they are very similar. C will compile under a C++ compiler, doesn't CPP convert C++ to C then use it's GCC compiler for the final compilation? Maybe I'm thinking of a different compiler, but I know there is a common one that does that. |
|
Indeed they are. |
|
Oops, yeah I was thinking of G++. I don't use command line for compilation, I always forget what the compilers are really called |
|
C++ is not a true superset of C because some constructs behave differently in C++. Wikipedia lists some of the differences here and here. Take for example the fact that char literals in C have type int rather than char, so sizeof('a') == sizeof(int) is true in C while sizeof('a') == sizeof(char) is true in C++. Therefore, you cannot use a C++ compiler to compile some C code. |
|
Coding in C is like sending a 3 year old to do groceries. You gotta tell them exactly what you want, or you'll end up with a cupboard full of pop tarts and pancake mix. |
|
This space is reserved for signature text. A signature goes here. A signature is static combination of words at the end of a post. This is not a signature. Its a signature placeholder. One day my signature will go here.
Signed,
Me
Didn't I say that? I even put exactly in italics too |
|
I can just see the 3 yr.old sitting on the curb, crying |
|
(\_ _/)
(='.'=)
(")_(")
The best lang to learn for the gaming business is c++. |
|
It depends on what you're doing in it. The gaming business is pretty diverse. C++ is better for the engine, physics, and artificial intelligence. For the renderer C is still king. |
|
Last edited by ninja9578; 02-24-2008 at 01:34 AM.
Bookmarks