Jump to content

  • Log In with Google      Sign In   
  • Create Account


Which programming language should I teach myself?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
15 replies to this topic

#1 Sean12111   Members   -  Reputation: 119

Like
0Likes
Like

Posted 09 December 2012 - 12:37 AM

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.

Sponsor:

#2 Steve_Segreto   Crossbones+   -  Reputation: 1475

Like
1Likes
Like

Posted 09 December 2012 - 12:40 AM

I don't think C++ is useless. I think its still worthwhile to learn C++ even for game development. It might not be the most productive language to learn for gamedev though.

#3 Sean12111   Members   -  Reputation: 119

Like
0Likes
Like

Posted 09 December 2012 - 12:45 AM

Ive written a bunch of fully functional console programs with c++ but Im not really sure where to go from there to start creating graphical programs. Im still very new at all this

#4 Cdrandin   Members   -  Reputation: 443

Like
1Likes
Like

Posted 09 December 2012 - 01:24 AM

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.

Edited by Cdrandin, 09 December 2012 - 01:26 AM.


#5 kunos   Crossbones+   -  Reputation: 2188

Like
7Likes
Like

Posted 09 December 2012 - 02:33 AM

everyone tells me c++ is useless.


ask these "everyones" what OS they have and yep, it's written in C/C++. Ask them which browser they use, yep, C/C++ again. Ask them if they have played any big game lately... you've guessed, C/C++. Ask them what program they use day to day on their PC/Phones/Tablet.. here we go again, C/C++.. and if they tell you they use Java,.NET, Python, Javascript, you name it.. ask them how the jvm, the clr and the other runtime are coded with? right.. C/C++ .
As Herb Sutter puts it: "the world is built on C/C++".
Stefano Casillo
Lead Programmer
TWITTER: @KunosStefano
AssettoCorsa - netKar PRO - Kunos Simulazioni

#6 Sausie   Members   -  Reputation: 139

Like
0Likes
Like

Posted 09 December 2012 - 05:38 AM

nvm

Edited by Sausie, 09 December 2012 - 05:39 AM.


#7 Gavin Williams   Members   -  Reputation: 642

Like
0Likes
Like

Posted 09 December 2012 - 05:49 AM

You'll find C# or Java much easier to learn and use. I personally believe that these languages are ideal for independent game-development and that C++ is overkill. I remember when I first opened up a c++ IDE and tried to use Direct X, it was a real pain, then I discovered C# and XNA and I was blown away with what it could do. Managed languages are so much better for a whole range of applications including small to medium size games. IMO.

#8 azonicrider   Members   -  Reputation: 421

Like
0Likes
Like

Posted 09 December 2012 - 07:49 AM

So the guy should jump right into object-oriented programming?

I started with Java, and had no idea what I was doing, so I spent awhile with Python, then came back to Java.

Easiest way to make games, I love LÖVE && My dev blog/project

 

*Too lazy to renew domain, ignore above links


#9 MaxieQ   Members   -  Reputation: 128

Like
0Likes
Like

Posted 09 December 2012 - 08:37 AM

I use C#. It's enough for most purposes unless you want to write the really low-level stuff, but I can't see why you would want to do that under most scenarios unless you're building a graphics engine from scratch. But that seems to be overkill to me when there are good libraries out there for that purpose; libraries that allow me to concentrate on writing a game, and not reinventing the wheel.

C# with MonoGame give you a good starting point, and it gives you a pretty good base of platforms as well.
---
"Why do you knuckle-draggers insist on doing things the hard way... very well. " - Mr Burke

#10 ic0de   Members   -  Reputation: 808

Like
0Likes
Like

Posted 09 December 2012 - 08:38 AM

Nothing is wrong with C++. It was my first language and I loved it. Seeing as you already started I see no reason why you shouldn't continue

If so what is the best language to start with?

In my opinion that would be C++.

SDL is a great library for getting started with 2d game development.

Edited by ic0de, 09 December 2012 - 08:39 AM.

you know you program too much when you start ending sentences with semicolons;


#11 BMO   Members   -  Reputation: 170

Like
1Likes
Like

Posted 09 December 2012 - 09:30 AM

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.

#12 Sparkon   Members   -  Reputation: 351

Like
0Likes
Like

Posted 09 December 2012 - 09:30 AM

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!

#13 Sean12111   Members   -  Reputation: 119

Like
1Likes
Like

Posted 09 December 2012 - 11:17 AM

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!

#14 Gavin Williams   Members   -  Reputation: 642

Like
0Likes
Like

Posted 09 December 2012 - 09:14 PM

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

#15 SpringDev   Members   -  Reputation: 148

Like
0Likes
Like

Posted 10 December 2012 - 09:13 AM

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.

#16 AlanWu   Members   -  Reputation: 190

Like
0Likes
Like

Posted 10 December 2012 - 06:21 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS