V
27

My friend said my code was 'spaghetti' after I showed him my first Python game

He told me to stop putting everything in one big file and start using functions, so I spent last weekend breaking my 300-line script into smaller parts. Do you think learning to structure code is more important than just getting it to work when you're starting out?
4 comments

Log in to join the discussion

Log In
4 Comments
xenas16
xenas161mo ago
Spaghetti code still runs, right? People act like a messy file is a crime, but it got the game working.
8
green.iris
green.iris1mo ago
How long did it take you to find things in that big file? Getting it working is step one, but keeping it working is the real skill.
7
ramirez.vera
Oh man, tell me about it. It's like trying to find a leak in a wall with no blueprint.
3
harperr82
harperr824d ago
Green.iris is right, but it's just code, not a crime scene.
2