D
10

Hit 500 lines of Python code today and actually understood all of it

I've been working through Automate the Boring Stuff for about 3 months now, and today I hit the 500th line of code I've written from scratch. It's just a little script that renames photo files based on their creation date, but I didn't copy a single line from a tutorial. Has anyone else hit a milestone like that where it finally felt like you “got it”?
2 comments

Log in to join the discussion

Log In
2 Comments
clark.iris
clark.iris1mo agoMost Upvoted
500 lines is cool but did you actually understand the edge cases in the script or just the main flow? Like what happens when a photo has no creation date or two photos have the same timestamp?
6
gavin_kim3
gavin_kim31mo ago
Honestly, I used to just look at the main flow too, but you're right - those edge cases hit hard. Ngl this comment actually made me go back and check my own script for missing dates.
5