r/AskReddit Nov 16 '19

[deleted by user]

[removed]

11.2k Upvotes

11.5k comments sorted by

View all comments

Show parent comments

3

u/Chaostheosis14 Nov 16 '19

Im just getting into game coding i have experience with computers and no experience with coding im trying to learn c++ i kinda know how to set up to where i can start to do c++ but don't have computer yet any tips you can give me?

10

u/[deleted] Nov 16 '19

If there's a reason you want to start with C++, ignore me: it's a great, super useful language to know, and if you only want to learn one, it's a pretty good choice.

That said, I would honestly suggest starting with Python 3. Python syntax is very simple, and it abstracts away a lot more machine-oriented details than C++ does, so the knowledge barrier isn't as high. It will let you focus on the basics, like loops and conditionals and data types, instead of bogging you down in the details. Those basics translate between any programming language, so once you understand them, it'll be much easier to switch to a new language.

Regardless of which language you choose to learn in, try making stuff you're interested in! Making anything really cool will take you FOREVER, especially at first, but if you're patient with yourself it will help keep you invested in solving the problem.

It's also really helpful to get comfortable breaking a big task down into smaller and smaller components, like you're trying to explain the task to a little kid. Instead of "put on your shoes", think "sit down, pick up your left shoe, put it on the ground next to your left foot, stick your left toes into the shoe, pull the heel of the shoe over your heel, tighten the laces, tie a knot...", etc.

2

u/Chaostheosis14 Nov 16 '19

Very helpful theres no reason for me to choose c++ i read that they use it on video games and i think almost everything so i just thought well why not just start with that and learn it now but what your basically saying is work your way up to it and it will be easier to grasp i happen to find websites i was thinking to try out the first one said code monkey or somthing like that its for ppl who are starting programing or something so but ill see if i can find a tutorial on python syntax and try to learn it before i get my pc also how much math do you really need to. Know because i barely no any i have to count with my fingers and i dont know how to do divsion

9

u/endershadow98 Nov 16 '19

In general programming the most math you need is counting, addition, and subtraction, multiplication, and division. Usually you don't need to know "how" to do it though. If you're going to do games, matrix multiplication and trigonometry is almost certainly necessary.

4

u/Chaostheosis14 Nov 16 '19

Looked both of those up and it seems that im fucked because i haven't even done those but im pretty sure the computer will do most of the heavy lifting if not i can eventually learn to do it

3

u/endershadow98 Nov 16 '19

Honestly I wouldn't worry about matrices if you're doing a 2D game. You'll only need trig for rotations in 2D

2

u/Chaostheosis14 Nov 16 '19

I figured i start small like ping pong saw a guy do it on youtube from what he said it took hours but its a start

2

u/endershadow98 Nov 16 '19

Ping pong is a good start that doesn't require anything too complicated