F
8
c/coding-for-beginnersbrianm66brianm662d agoMost Upvoted

I just hit 50 lines of code that actually worked on the first try

It was a simple Python script to rename files, but it felt like magic... has anyone else had a moment where it just clicked?
3 comments

Log in to join the discussion

Log In
3 Comments
keith_bennett
Cherish that feeling, it's rarer than my code working.
4
hollywhite
I once had a whole script run perfectly on the first go, and it felt so wrong I spent an hour looking for bugs that weren't there. That kind of luck is almost a curse because you know it'll never happen again. It makes you question reality more than when your usual code falls apart in five different ways. You just sit there waiting for the other shoe to drop.
5
foster.jordan
Fifty lines of code worked on the first try, that's basically a unicorn.
4