New To programming, Where to start?

Started by
10 comments, last by DevLiquidKnight 11 years, 9 months ago

C++ is as good a language to start with as any other, in my opinion.


C++ is a horrible starting language, and here is just one example why.

Consider:

sf::Music * song = new sf::Music();
if(!song->OpenFromFile(soundName)) <----- EXCEPTION IS HERE
{
delete song;
throw SoundNotFoundExeception(
soundName + " was not found in call to SoundFileCache::GetSong");



Causes:
Unhandled exception at 0x776915de in Program.exe: 0xC000005: Access violation reading location from 0x91fecba1.


If you've been at this for a long time, you've probably run into this.

If you've been at this for a short period of time, you are probably going to start at the naked pointer and assume it is the guilty culprt, and for good reason, although in the end it is a complete red herring.

If you are new to C++ programming, you are completely screwed.



If you didn't click the link, i'm curious to know if you can guess what the problem is.
Advertisement

Assembly is extremely easy to learn, there are almost no rules and a fairly limited set of instructions (Which you don't have to memorize), its an extremely tedious and difficult language to actually make something with though.

I disagree with this, assembly is extremely straight forward if you understand how a machine works, what your finding hard is not understanding how the computer operates, or how your hardware differs. Its litterally as basic in terms of operations as you can get.


It took me roughly 2 hours from installing Unity and mono until i had my first completed C# game (with no prior experience using C#), i still don't know C# (take away my references and autocomplete and i can't get anything done with it), Ask me to do the same with C++ (which i have over 10 years experience with) and not only will making the same game take me atleast two days, maybe even a week, it will most likely be of lower quality, run slower and have more bugs, Those 2 hours spent with unity also taught me quite a bit about engine interface design and allowed me to experiment a bit with gameplay mechanics, skills that will carry over to anything gamerelated i make in the future, regardless of what language i choose for it.

Unity is a game engine not a language your comparing the wrong things. There are plenty of good game engines for C++ that require little to no programming as well.


Modern languages let you get away with not actually knowing the language while older languages such as x86 assembly, C, C++

What do you mean by a modern language? C++ is very modern, this is entirely dependent on what you consider modern. A programming language made more recently does not mean it is better, or more useful then another. Even FORTAN which was made in 1957 still finds uses today, because of is numeric computation and scientific computing advantages.

Besides this however until you know a language your at a serious disadvantage.

This topic is closed to new replies.

Advertisement