this post was submitted on 08 Oct 2023
1015 points (96.6% liked)

Programmer Humor

19187 readers
1273 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HurgletOfficial@lemmy.basedcount.com 1 points 11 months ago (1 children)

I do this all the time in Python by creating a class like

class Core:
    foo = "bar"
[–] ryannathans@aussie.zone 3 points 11 months ago (1 children)

That's not immutable nor a singleton

[–] xmunk@sh.itjust.works 3 points 11 months ago

That makes it inherently multithread compatible!