this post was submitted on 26 Jul 2025
859 points (99.0% liked)
Programmer Humor
25282 readers
1421 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I always get irrationally angry when i see python code using os.path instead of pathlib. What is this, the nineties?
What big advantages does pathlib provide? os.path works just fine
Just off the top of my head.
I suppose os.path is simpler? It's a string and operation.
Python is all about 'attention efficiency,' which there's something to be said for. People taking the path of least resistance (instead of eating time learning the more complex/OOP pathlib) to bang out their script where they just need to move a file or something makes sense. I'm with you here, but it makes sense.
...Also, os.path has much better Google SEO, heh.
if you don't need those, why burden the program with another dependency?
It's in the standard library, just like os or shutil.
And what's with the string addition? Never heard of f-strings or even .format()?
Make a PR
Be the change you want to see in the world.