Spent 3 months copy-pasting code from tutorials before I figured out what a function actually does
Back in March I was building a little to-do app in Python and I had the same block of code pasted in four different places, all doing basically the same thing. Every time I wanted to change how a task got marked done, I had to go fix it in all four spots and I kept missing one, so my app was half broken for like a week. Then I watched a free video on functions and the guy said "if you're typing it twice, you're doing it wrong" and something clicked for me. I went back and turned that whole mess into one function and suddenly my file was 40 lines shorter. I sat there kind of mad at myself because I'd been fighting the code instead of letting it work for me. Nobody ever explained it that plain in the class I took at the community college. How long did it take you all to actually get functions instead of just typing along with a tutorial?