this post was submitted on 03 Oct 2025
539 points (98.7% liked)

Programmer Humor

26713 readers
1100 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

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] IcedRaktajino@startrek.website 7 points 1 day ago (1 children)

For me, it's the rigid and wonky virtual environments. I get why they're useful and necessary, but they're awkward to use. Like, Node just works from the working directory with no fuss and python has to be all source {venv}/bin/activate and lord help you if you need to move it.

Plus, I have never liked that the spacing is load-bearing.

[–] eager_eagle@lemmy.world 5 points 1 day ago* (last edited 1 day ago) (1 children)

uv mostly gets rid of the "venv activation" thing (mostly bc you can still use it if you really want, but you don't need to), you can do uv run main.py and it'll just work, no need to even install packages explicitly, it'll also do that for you and make sure your uv.lock is in sync with your environment.

it's the most hassle-free experience I've had with python, by a long shot.

[–] IcedRaktajino@startrek.website 4 points 1 day ago (2 children)

Sounds like at least a minor improvement. Can those me moved and still work? Like, if I move the project folder, do I have to reinitialize it and download all the packages again?

[–] WhyJiffie@sh.itjust.works 1 points 12 hours ago

you can always keep the venv dir in the project dir, even without uv. that's what I do most of the times

[–] eager_eagle@lemmy.world 2 points 1 day ago

ah, it's a massive improvement. Everything is in your project dir, so you can move it around. But uv is the fastest package manager, so reinstalling most things doesn't take time; with the exception of dependencies that need to compile code in different langs.