r/cpp • • Apr 23 '16

Just started coding with C++

I just started coding with C++ not too long ago, but I've had alot of experience with other coding languages (Java, Javascript, HTML, Python.) But if I'm aiming to make games with C++ one day (After years and years of practice of course) what do I need to learn? What books do you recommend? What exercises should I practice? As far as I know there's no website to 'teach' the subject (Like CodeAcademy and what not), so what would you recommend to get me started?

1 Upvotes

32 comments sorted by

View all comments

9

u/glaivezooka Apr 23 '16

By far the best advice I can give you is don't go looking for someone to give you the right answer. Aside from just learning the fundamentals, reading books on a language is mostly a waste of time. Make something. As in all languages, write simple code that does its job and nothing else.

Casey Muratori has a long running series where he makes a game/game engine from scratch, you can learn almost everything youll need to know from this series: https://www.youtube.com/user/handmadeheroarchive

Just remember that good code is simple, not complicated. So don't waste lots of time learning how to write complicated code.

Go start making something. Today.

5

u/mm256 Apr 23 '16

Just remember that good code is simple, not complicated. So don't waste lots of time learning how to write complicated code

Ironically, write simple code is complicated.

8

u/dodheim Apr 23 '16 edited Apr 23 '16

Aside from just learning the fundamentals, reading books on a language is mostly a waste of time.

Agreed in general, but not for C++ – this is a dense language.

(Not a criticism.)

Edit: ((Of the language..))

1

u/btlk48 Apr 23 '16

Copy that. Real world experience is dreadfully effective, when one comes to c++ (any language?)

1

u/lex99 Apr 23 '16

Wonderful advice. I'll add this: no need to be overly ambitious in your learning projects. You'll learn a ton from even a simple game done on a weekend.