Which programming language should I teach myself?

Started by
14 comments, last by AlanWu 11 years, 4 months ago

I have spent a few weeks learning c++ and have written a few long programs but everyone tells me c++ is useless. Is that true? If so what is the best language to start with? I plan to try and create my own games once I settle on a language.


Useless? Lol heck no. A bit of a pain to use compared to more recently developed languages? Yes. I think Python is the best to start with. You need to spend time learning computer science and when trying to learn a language AND computer science at the same time you want a language that won't get in the way of the CS component (because that is FAR more important than the specifics of the language). It's relatively easy to pick up a second programming language once you have the computer science fundamentals down.

I've plugged it several times on this board and I'll plug it again, but Udacity is a great place to start learning computer science with Python. Another great resource is the inventwithpython.com website which has two free books for beginners that is completely centered around making games. I'm using these books to teach Python to my daughter (she's 11). Python is just a fun language to work with. My daughter will actually come home from school and ask "Hey Dad, can we work with Python today?" I think that alone should speak volumes.
Advertisement

Try http://www.sfml-dev.org/tutorials/1.6/ for 2D graphics, high level functioning event handlers, audio, image manipulation, etc. Works well with C++. For the very basic, just figure out how to make pong.

Also, there is no best language. Think of programming languages as vehicles. There is no one good vehicle, they are all based on the individuals preference. Each language has their own unique functionality. C++ is known to be much faster in some aspect of game development when dealing with complex algorithms, number crunching, large amounts of collision detection needed as well.


great advice, but you linked to the 1.6 version of SFML, and as for now the 2.0 is very mature and almost perfect, i would go for the 2.0 if you follow this route!
Thanks for the replies everyone. After doing some more research I have decided to stick with c++ and learn it inside and out. From what I have read that seems like the best course of action. I have also enrolled in a cs and intro to programming course for next semester. Im really looking forward learning all of this!
What languages will you be using in your course ? So far in my degree, we have used :

Haskel
C
rPeanut (a mini assembly language designed for learning)
Java
The best thing you can learn is concepts, techniques and ideas. A programming language is merely a tool to construct the combination of these ideas and techniques with. So it shouldn't really matter which language you start with. It is recommended to start with a language that has enough resources backing it up, so either C++, C# or any other popular programming language could be fine to start with. If you know the concepts on the other hand you could implement ideas in whatever language you like (you do have to learn a little syntax though, of course).

Don't focus too much on a certain programming language, pick whichever you want based on your goals and the resources available for the language. But there are certain more important concepts that apply to all programming languages: Learn game maths, learn about creating algorithms for problems (there is a wide array of books available on this), etc. And meanwhile you can just enjoy learning the syntax of whatever programming language you like.

Of course this is just my 2 cents, but imho the concepts are more important than learning a specific syntax. But if you do want a specific language recommendation I'd say either C++ or C# based on the resources both on the net and in the book store.
i don't think c++ is useless,i think it is the best language,speed is faster than other (not all of them) and it is special,like pointer,i think pointer is very useful but if you can't control it very well it will be bad.
I think c++ is very flexible and its implement efficiency is very good,but its development efficiency is slower than other language.

This topic is closed to new replies.

Advertisement