this post was submitted on 06 May 2026
164 points (97.7% liked)
Programmer Humor
31275 readers
1753 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
My main pain point with python at work. I lpke to write shitty scripts with it, but django was a mistake (the ORM opens then close connection to db with each request)
just run mypy dude
I do, and still a pain in the ass because mypy is an afterthought of python (if your models aren't in a migration then it's an error)
is django a requirement? because fastapi works amazingly with mypy.
All our codebase is django and the admin is nice, and my manager is more conservative on the stack choice for the company XD
yeah that's fair. and migrating a codebase to being typed is a nightmare. it's worth it, but fixing all the little edge cases that you didn't know you had, or just boxing with the type checker when it freaks out, is an extremely frustrating experience.
Until something is
AnyorUnknownand everything stops workingand that's why you don't let those types in
You can set a connection pool. Or use a database proxy.
EDIT: Oh, you are using Django for shell scripts?
Yeah, but the python runtime still needs to open sockets. We have some kafka listeners using the ORM and we got the bad surprise of openning too many connection because django would keep opening them without closing them
We used it for some batch processing and to have the admin for some managing (specially for retries)