Can we talk about how copying code by hand fixed my loop bug?
Last week I spent about 3 weeks stuck on a for loop in Python that kept printing my list sideways, and I was ready to throw my laptop off the balcony. My cousin told me to stop copy pasting from the tutorial and retype the whole block into a fresh file by hand, one line at a time. I thought it was dumb advice but did it anyway at like 1am, and boom, my indentation was off by one space the whole time. Took me 6 minutes of typing to find what 3 weeks of staring could not, so now I am curious who else has fixed a bug just by typing the code out again.
Picture me doing the exact same thing but with a missing colon, three hours of my life gone because Python was just silently judging me. Typing it out by hand is basically a cheat code for finding the dumb stuff your eyes skip over. Your brain goes into autopilot on copy paste and just trusts the tutorial gods, but retyping forces it to actually read each line. Three weeks for one space is brutal though, I would've framed that indentation error and hung it on the wall.