16
Hit 100 lines of code that actually worked on the first try
I was working on a small Python script to sort my movie list. Kept getting errors. Took a break, came back, and just typed. Finished it. Ran it. No red text. Counted the lines. Exactly 100. It wasn't fancy, just a simple script. But it was mine and it ran. Felt like a real win after weeks of small mistakes. Has anyone else had a moment where a chunk of code just clicked and ran clean?
3 comments
Log in to join the discussion
Log In3 Comments
dakotaellis2mo ago
Dude, that's the BEST feeling in the world!
3
paulc9318d ago
My 100 line script had a bug where the sorting broke if a movie title started with a number, so it took me like 45 minutes to figure that out. @dakotaellis is right though, that clean run feeling is something else. My personal best was a 47 line web scraper that grabbed guitar tab links on the first go, and I practically did a victory lap around my desk. Still waiting for my next one, but I'm pretty sure it's gonna be when I least expect it, like at 2am after a bad day.
3
hernandez.jordan2mo ago
That feeling when you finally get a clean run is the best. It's like your brain finally sorted itself out during that break. Makes all the earlier frustration worth it.
2