F
31

Just realized my first Python script ran 100 times without crashing

I made a simple script to rename a bunch of image files. It was just a for loop and some string stuff. I ran it on a folder with 100 pictures last night. It worked on every single one. I was sure it would break on file number 50 or something. That's the first time something I wrote actually finished the job. Feels like a real win. Has anyone else had a small program just... work?
4 comments

Log in to join the discussion

Log In
4 Comments
sean48
sean481mo ago
That trust fall feeling is real.
3
max_schmidt77
Wait until you have to debug someone ELSE'S trust fall script three months later, that's when the REAL falling starts. Nothing like finding out your perfectly working code was actually held together by luck and good vibes.
6
laura_wilson
Know that feeling, it's like the planets finally align. I get it with my old truck sometimes, you fix one thing expecting three others to go wrong, and then it just... runs fine. That first clean run of a script is a special kind of trust fall with your own brain.
1
jesse_lopez14
Totally! Save that script version right now.
2