Jump to content
  • Advertisement
Sign in to follow this  
RaoulJWZ

Is c++ good

This topic is 1575 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone,

About a week ago i started learning the basics of c++. 

I know it's a long hard way, but my ultimate goal is to make games.

For fun i just looked to the classifieds page and there i saw that most people,

who need a programmer. Need one who knows c#. My question is: is c++

still so good for game programming?

Thanks.

 

Share this post


Link to post
Share on other sites
Advertisement

As I said in another thread, C++ is IMHO a language every programmer should know but almost none should use. Learning it will teach you a great deal about the lower levels, but it's incredibly annoying and unproductive to use, mostly for historical reasons. C# (and many other languages) got a fresh start in the modern days and is much easier to use. Programming is hard enough as it is.

Share this post


Link to post
Share on other sites

Choose the language you're most comfortable with - you'll get a lot more done in a given amount of time. Personally, I prefer a hybrid between C & C++ (often called C with objects). I find it easy to write clear code, which largely self documents, and I find it aesthetically pleasing. This is obviously totally subjective.

 

Some people will tell you that C/C++ will offer better performance, but the truth is that well thought out and efficient algorithms gain far more performance (in any language) than micro optimisations performed at the last minute.

Share this post


Link to post
Share on other sites

I agree with most of the comments here. C/C++ are great to learn to use but they are fazing out in a lot of more common areas.  They still have their place and will probably have their place for a very long time yet to come.  Learning will make you a better programmer overall even in more modern languages.  For games you really do not need C++ or C.  There are lots of great technologies out there today that are beyond capable of keeping up.  Heck even today much of the games you play are done with scripting languages and those languages hook into the C++ rendering engine on the backend.

 

The main reason I say C/C++ will be for around for a long time is mainly because of specific areas like kernel development as well as embedded micro controller development.  Sure there are new languages coming out that are compiled to machine code like Google's Go.  The big downfall of those types of languages is the lack of direct memory access through pointers and direct interfacing with assembly code.  In the world of Kernels and embedded micro controller (think ARM Cortex M, PIC, AVR) you really need that otherwise you can't really do anything without extreme C interfacing hoops.  Some of those chips are so tiny in memory you would be lucky to get a runtime driven language on them.  These are extreme cases.

 

So in the end if you are learning your first language I would recommend it not be C++.  I would rather see a new programmer on their first language use pure C, C#, Java, or Python.  C is a very simple language to learn and will let you learn some really useful concepts this is still my all time favorite language.  C#, Java, and Python are also relatively simple languages that rule out memory management and will allow you to focus on core algorithm concepts.  Choose something you want to choose not what everyone forces you to choose and stick with it for a while before moving on.  Every language you learn will teach you something new.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!