The day I stopped writing functions longer than my grocery list
So I've been teaching myself Python for about 4 months now, mostly through free YouTube tutorials. Last week I was working on a little project to organize my music files, and my main function was like 80 lines long. I kept getting lost trying to figure out where a bug was, scrolling up and down forever. Then I watched a video where a guy broke his code into tiny functions, each one doing just one thing. I rewrote my whole file into 8 small functions, each under 10 lines, and the bug jumped right out at me in maybe 5 minutes. Has anyone else had that moment where you realized simpler code actually works better?