this post was submitted on 20 Oct 2023
1139 points (97.6% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 22 comments
sorted by: hot top controversial new old
[–] fubo@lemmy.world 70 points 2 years ago (1 children)

Just be sure to pause for garbage collection occasionally.

[–] jaybone@lemmy.world 13 points 2 years ago

And mark items dirty.

[–] JPAKx4@lemmy.sdf.org 49 points 2 years ago

There is increased corruption as the lifespan of the cache grows, maintaining speed but reducing element quality

[–] RojoSanIchiban@lemmy.world 31 points 2 years ago

Normalize and index your damn drawers or you're deadlocked!

[–] tias@discuss.tchncs.de 27 points 2 years ago* (last edited 2 years ago) (1 children)

This is unironically how I think. Also carrying single items to their designated place is inefficient. I wait until there's a pile so I can process in batch and avoid latency overhead. Same for vacuum cleaning, I need to strike a thoughtful balance between accumulated dust and the time expended on vacuuming. All to maximize throughput in my life.

[–] Dyskolos@lemmy.zip 8 points 2 years ago* (last edited 2 years ago)

Same. You can't imagine the amount of discussions with wifey i had about this. Life is hard 🙄

Also it's not chaos when i exactly know where everything is. Even if there are socks on top of it. I put them there. For a reason.

[–] trailing9@lemmy.ml 16 points 2 years ago (1 children)

Remember that cache goes stale

[–] magikmw@lemm.ee 12 points 2 years ago (1 children)

Is mom the cache invalidator we deserve?

[–] trailing9@lemmy.ml 5 points 2 years ago

But not the one you need. When she notices a smell it's already too late.

[–] lowleveldata@programming.dev 15 points 2 years ago (1 children)

Access to the chair cache is O(n) tho

[–] gvasco@discuss.tchncs.de 11 points 2 years ago (2 children)
[–] lowleveldata@programming.dev 8 points 2 years ago (1 children)

Mom is way too harsh to call it a messy pile with only 1 cloth on the chair...

[–] gvasco@discuss.tchncs.de 3 points 2 years ago
[–] sigh@lemmy.world 0 points 2 years ago (2 children)
[–] Natanael@slrpnk.net 3 points 2 years ago

Random fractal cloth patches for an irrational n

[–] gvasco@discuss.tchncs.de 0 points 2 years ago

N is the number elements to be parsed by the function

[–] BannanaLama@lemmy.world 10 points 2 years ago (1 children)

Posts and Comments like this is why I love this place

[–] perishthethought@lemm.ee -1 points 2 years ago

Yeah, who needs R*****.

[–] cupcakezealot@lemmy.blahaj.zone 5 points 2 years ago

big closet sounds like one of jay pritchett's competitors

[–] CurlyMoustache@lemmy.world 2 points 2 years ago

LIFO for lyfe!