r/computerscience • • Jan 11 '24

Help I don't understand coding as a concept

I'm not asking someone to write an essay but I'm not that dumb either.

I look at basic coding for html and python and I'm like, ok so you can move stuff around ur computer... and then I look at a video game and go "how did they code that."

It's not processing in my head how you can code a startup, a main menu, graphics, pictures, actions, input. Especially without needing 8 million lines of code.

TLDR: HOW DO LETTERS MAKE A VIDEO GAME. HOW CAN YOU CREATE A COMPLETE GAME FROM SCRATCH STARTING WITH A SINGLE LINE OF CODE?????

348 Upvotes

310 comments sorted by

View all comments

1

u/Tarl2323 Jan 13 '24

Counting how many lines of code go into a video game is like counting how many nails are required to build a house.

Yes, someone knows the number, but you are focusing on the wrong things. Forging nails is actually a very complex process, all the way down to mining and steel making/etc.

But you don't have to know how to make a nail to build a house. Same idea.

Software is made up of various pieces of code, all made by various people over decades. All the way down to the hardware drivers on your keyboard. You don't need to know all of it.

You don't need to know how to make a nail to make a house. You don't know how to grow wheat to make pasta. You don't need to know how to make an operating system just to make a video game.

1

u/[deleted] Jan 13 '24

Spot ON!