F
6

Hit 100 lines of code for the first time and it actually worked

I've been learning Python for about a month and finally wrote something that wasn't just 'hello world' or a calculator. It was a little script that sorts my downloads folder by file type. Took me like 3 evenings to get it right. Felt pretty good when it ran without errors. Anyone remember their first real project that actually did something useful?
3 comments

Log in to join the discussion

Log In
3 Comments
beth276
beth2762d ago
Did you name the script? I named my first working one 'the organizer' and it was so satisfying watching it actually move files around.
9
ivanbell
ivanbell2d ago
Oh, "The Organizer" - that's what I named mine too. It felt like I was some kind of digital Marie Kondo, but for files nobody asked for. Did yours actually work on the first try, or did it start moving things to folders you didn't even know existed? Mine had a bug where it kept tossing random .tmp files into a folder called "Important Stuff" and I still haven't cleaned that mess up. That feeling of watching it work though, nothing beats that first moment you hit run and files actually dance around.
3
jamie_adams
Funny how we get so proud of basic stuff like moving files around, it's just sorting files not launching a rocket. I mean cool it worked but let's not act like we cured cancer with a Python script. Still, I get it that first time something actually does what you told it to feels weirdly powerful.
3