this post was submitted on 06 May 2026
206 points (98.1% liked)

Programmer Humor

31506 readers
1022 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
 

A picture of a car with a license plate that reads LUAAAAA.

top 14 comments
sorted by: hot top controversial new old
[–] RustyNova@lemmy.world 37 points 2 weeks ago (1 children)

Me writing factorio mods.

I hate non typed languages. It should be the compiler / linter's job to check I don't read a number as an array. Not my stupid brain

[–] Melusine@tarte.nuage-libre.fr 8 points 2 weeks ago (2 children)

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)

[–] lime@feddit.nu 6 points 2 weeks ago (2 children)
[–] Melusine@tarte.nuage-libre.fr 3 points 1 week ago (1 children)

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)

[–] lime@feddit.nu 1 points 1 week ago (1 children)

is django a requirement? because fastapi works amazingly with mypy.

[–] Melusine@tarte.nuage-libre.fr 1 points 1 week ago (1 children)

All our codebase is django and the admin is nice, and my manager is more conservative on the stack choice for the company XD

[–] lime@feddit.nu 1 points 1 week ago

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.

[–] cmrss2@aussie.zone 2 points 1 week ago (1 children)

Until something is Any or Unknown and everything stops working

[–] lime@feddit.nu 3 points 1 week ago (1 children)

and that's why you don't let those types in

[–] zea_64@lemmy.blahaj.zone 1 points 1 week ago

libraries let them in

[–] marcos@lemmy.world 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

You can set a connection pool. Or use a database proxy.

EDIT: Oh, you are using Django for shell scripts?

[–] Melusine@tarte.nuage-libre.fr 1 points 1 week ago

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)

[–] owenfromcanada@lemmy.ca 21 points 2 weeks ago (1 children)
[–] three@piefed.social 7 points 2 weeks ago

😂 First thing I thought of when I saw this