[For a Beginner] C++ express 2010 or C++ express 2012?

Started by
33 comments, last by EngineProgrammer 11 years, 6 months ago

[quote name='GeneralQuery' timestamp='1348598048' post='4983670']
I cannot think of any reasonable justification for a complete beginner learning C++ over something like C#. "Complete freedom" for a beginner = enough rope to hang yourself many times over. There's nothing that cannot be learned faster and easier with other languages without the frustration of the sort of problems C++ can throw at you. Unless you have an academic or professional reason to learn C++ as a first language, I strongly recommend against it.


Again would I still be able to make good things in C#? I know that I am not going to make an amazing game in a day but I still want to make sure that the language I start with is good.
[/quote]

You're getting too hung up on vague generalizations such as is C++ or C# "good" or "better". Better for what purpose? If one was a simple "one size fits all" case of "better" then why would anyone recommend the "worse" language? But in any case, all of this is inconsequential. Learning programming is only marginally to do with a language's syntax, the rest of the skills are transferable. "Better" in your case would be more beginner friendly and forgiving language that has a more gentle learning curve, something C++ fails on all accounts.
Advertisement
Assuming you don't have any experience with programming in general yet, I'd say start with something other than C++... I'd even say C would be better to start with since there's less baggage to deal with when all you want to do is program (plus it transitions nicely into C++ when you're ready to work with it).

I'm personally a fan of JavaScript. Some may call me crazy but I find it to not only be simple to develop in, but fun as well. I enjoy being able to write a JavaScript-based game that runs in the web browser that any of my friends can connect to and interact with. If you're dead set on following an OOP design strategy you could also use CoffeeScript which lets you just.... go forth and make things. CoffeeScript compiles to JavaScript and hides all the nasty prototype nonsense involved in creating a class in JavaScript.

Another alternative would be Python. It's expressive and powerful. There's also a nice game development library for Python game developers.

Others have suggested C# as a language to use for game development. It definitely is a valid choice and with supportive libraries provided by the likes of XNA and such, you can make some pretty kickass games. However, I feel that C#, like C++ just has baggage you need to sort through before getting to focus on the meat of programming and distracts from being able to just get things done. C# makes some things pretty damn easy (XML serialization, stream i/o, threading) but there's things like the garbage collector that'll become annoyances you have to be mindful of and tiptoe around (or *gasp* play nicely with).

I would say, that if you're just starting, make some 2D games and start out with a language that just lets you focus on programming, programming, and programming. These could be C, Python, JavaScript, or some other languages that I've failed to mention. C++ and C# are powerful, sure, but they'll also weigh you down with a bunch of crap that you, as a beginning game programmer, really don't need to deal with.

Get started with some excellent material over at http://programming-motherfucker.com/become.html.

Here's some good tutorials for Python and C.

Lastly, it never hurts to know more languages. There's nothing stopping you from learning all of the languages mentioned in the thread. Once you learn how to program, it just becomes a matter of learning language syntax for the most part.
If you wanna use C++ (and I think you should) use VC++ 2010, I use it all the time and its great and functional and easy to use. I think the main thing new in visual studio 2012 is windows 8 integration and stuff, once windows 8 gets off the ground you should be able to move to the new IDE pretty simply by just importing your old solution files. Just letting you know that C++ was the first language I learned and it's not that hard, it's not an evil ogre like some people make it out to be, its a clean and elegant language and all kinds of third party libraries can extend its functionality. Just try C++ and if you think its too hard then switch to something else.
C#: you get a simple pong game after 2 weeks if you want to. its easy for a beginner and a good starting point for lerning C++ layter on if you relly need to.
C++: more complex, but harder to learn, especially for a beginner nothing i would recommend. but it is not impossible.

Long story short: The language isn´t that relevant. It´s important to stick to one language and learn it. you have to get used to it. going to another language is really easy if you already know a language.
I personally recommend starting with C#
When you got some more experience you will know what to do next. Keep coding and practicing. Read one or two books and make some small games.
And don´t Rush to 3D to fast

... I'd even say C would be better to start with since there's less baggage to deal with when all you want to do is program (plus it transitions nicely into C++ when you're ready to work with it)...


[s]Really C?
It isn´t even object oriented. Thats definitly not what you want to do if you want to get a game dev. Objects are the base of a game. C seems to be the worst decision for a beginner[/s]

EDIT: look into the forum, there you will see wich languages are commonly used
And here is a good link for you: http://www.gamefroms...-developer.aspx

[quote name='caldiar' timestamp='1348601335' post='4983690']
... I'd even say C would be better to start with since there's less baggage to deal with when all you want to do is program (plus it transitions nicely into C++ when you're ready to work with it)...


Really C?
It isn´t even object oriented. Thats definitly not what you want to do if you want to get a game dev. Objects are the base of a game. C seems to be the worst decision for a beginner
[/quote]

You don't need to be object-oriented to make a game. It definitely can help programmers make sense of how things are organized but it's not a necessity.

However, it's worth noting that it's easily possible to get object-oriented programming happening with C through the use of structs to define, well, objects. Did you know Quake 3 Arena was developed in C? id software seemed to get a game built with C pretty well several times I'd say.

The great thing about C, for the beginner, is that it doesn't come with all the baggage and cruft that C++ has. On the other hand, C++ has a fantastic selection of libraries and makes some things easier and less scary to deal with (std::string vs. c-style strings, new/delete vs. malloc/realloc/calloc/free).

C has similar, but simpler syntax and less gotchas than C++.
I dont want to start a flamewar...
sure they made good games with C, but now it is way more easy and future oriented to start object oriented. procedual (C-like) programming is always included in C++/C#/Java etc.

There are more then enough threads about wich language to choose.
The language isn't that important as long as you choose one that is commonly used (for two reason, it's easier to get help with problems and it's easier to get a job if you want a career as a programmer). If you choose C++ or C# then I think you should use visual studio 2012. However I think you need visual studio 2010 if you want to use XNA/C#.
There is no reason you can't install both vs2012express (get desktop edition)and vs2010 express. Vs2012 is MUCH better for c++ than 2010, only use 2010 when you have to for compatibility reasons.

As for c++/c# for a first language, you will have an easier time learning c#. You will have a harder time learning c++. Writing c++ code usually takes more work and more lines of code. However the trade off is more speed and power (which c# people may argue against).

There are some other very good alternatives to Microsoft IDE's. Such as QT Creator the IDE that comes with QT SDK, Code::blocks, eclipse, and more. These are all free and open source.

If this post or signature was helpful and/or constructive please give rep.

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

// Easy to learn 2D Game Library c++

SFML2.2 Download http://www.sfml-dev.org/download.php

SFML2.2 Tutorials http://www.sfml-dev.org/tutorials/2.2/

// Excellent 2d physics library Box2D

http://box2d.org/about/

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20


I dont want to start a flamewar...
sure they made good games with C, but now it is way more easy and future oriented to start object oriented. procedual (C-like) programming is always included in C++/C#/Java etc.

There are more then enough threads about wich language to choose.


I don't think a flamewar is being started. I didn't bash C++ and say C is superior or anything of the sort. However, for a beginner, learning to program is much more important than learning how to work around crazy gotchas and odd rules of a language. C is simple, capable, powerful.

I can't tell you the number of times I see beginners (and some fairly well-versed programmers) lose sight of the program itself and get caught up on details like "how to best organize an inheritance tree for my classes" and deciding if they should define an object as a collection of objects or as a specialized derived type of some master parent class (which could be derived from an even more generic parent class, etc... This is closely related to how to organize an inheritance structure). This just distracts from the main goal of getting programming done.

C++ has some great features as part of the standard language and as part of various libraries. Don't get me wrong, I like the language. I wouldn't wish it upon any beginner though as I feel it's extremely important to learn how to form a program from blocks of logic rather than having to worry about how a language does things. C++ has too much stuff going on for the same abilities as C. Yes, C++ is great for OOP designs but keep in mind that OOP is not a silver bullet to solve all programming solutions but just one of many paradigms to help describe and organize sets of problems for programmers to make sense of.

I feel quite strongly that if the OP starts off with C++ without having a general idea of how to program to begin with, he's just going to wind up spending more time pulling his hair out over things (first to come to mind is class inheritance) specific to the language rather than pulling his hair out over the actual problem at hand.

This topic is closed to new replies.

Advertisement