🐿️
3

Rant: Debugging my first Python script took way too long

Honestly, I've noticed a lot of beginners hit a wall when their code doesn't work right away. Tbh, I was totally in that boat when I made my first Python project. I decided to write a script that organizes my digital photos by date. Ngl, putting the loops and conditions together seemed straightforward. But then it kept throwing errors and I had no idea why. I must have spent three days just Googling every single message. Turns out I was using a list method wrong the whole time. That mess taught me to test small pieces first, which saves so much headache now.
3 comments

Log in to join the discussion

Log In
3 Comments
jake_ward
jake_ward14d ago
Seriously! I read about "rubber duck debugging" where you explain your code out loud to find mistakes, and it actually works.
7
king.wesley
Try explaining it to your dog next.
4
leor37
leor372d ago
My rubber duck just judges my life choices.
3