Got some hard feedback on my first project and it actually helped
I showed my first little Python script, a simple number guesser game, to a friend who codes. He said 'Your code works, but it's one big block of text. If you need to change the rules later, you'll have to dig through the whole thing.' I mean, he was right. I had everything in one main function that was like 50 lines long. So I spent last weekend breaking it up. I made separate functions for getting the user's guess, checking if it was right, and even for the welcome message. It took me a few tries to get the variables passing between them right, but now it's way cleaner. I can see how to add a hint system without messing up the core game. Has anyone else had that moment where splitting things into functions finally clicked for them?