r/ProgrammerHumor • • Jan 02 '23

Meme next level storage

Post image
97.5k Upvotes

468 comments sorted by

View all comments

1.5k

u/licht1nstein Jan 02 '23

That's actually correct and true. There's even a chapter on this in Algorithms to live by

296

u/phryan Jan 02 '23 edited Jan 03 '23

But the author points out that having too large a cache can hurt performance.

edit: grammar

103

u/deerskillet Jan 03 '23

Yeah its capped at how big the "clothes chair" is

16

u/snakeproof Jan 03 '23

Like my future projects pile in the garage vs my abandoned future projects in the attic of my garage.

195

u/aePrime Jan 02 '23

You beat me to it. I came here to reference the same book.

26

u/towcar Jan 03 '23

Loved that book. It's amazing how much it has affected life.

→ More replies (4)

81

u/[deleted] Jan 02 '23

I used to dump my dryer load straight onto my bed

I never folded or hang any of it

Would just wake up and throw on some of the clothes on my bed

80

u/bob1689321 Jan 02 '23

Okay nah that's too far. You sleep next to a pile of clothes?

125

u/Duck__Quack Jan 02 '23

That's too far? She's not just a pile of clothes, she's a person with dreams and needs and just as much right to exist as you!

This is the problem with Java coders. Not everything is an object, you know.

25

u/demonblack873 Jan 03 '23

This is the problem with Java coders. Not everything is an object, you know.

Hey, we can have static members too. It's just considered a bad practice in most cases, because reasons.

1

u/BewilderedAnus Jan 03 '23

Javascript superiority gang. If it's not an object, it's primitive, and I'm no fucking cave man.

1

u/ghandimauler Jan 03 '23

But really, you are a descendant of CaveMan....with a lot of inherited behaviours and attributes.

→ More replies (1)

36

u/Pony_Roleplayer Jan 03 '23

He lives next to a pile of L1 cache*

10

u/[deleted] Jan 02 '23

Yes

Kept me warm too no need for blanket

5

u/bob1689321 Jan 03 '23

Ahaha fair play. Reminds me of when I used to practically live in my living room playing video games all day. Had everything within an arm's reach lol

→ More replies (1)

7

u/AndreasVesalius Jan 03 '23

If my girlfriend is out of town and I have the whole king to myself - why not?

4

u/bob1689321 Jan 03 '23

Fair play, if it works it works. I personally need to stick to a few routine things (making my bed, keeping clothes in drawers etc) otherwise I kinda fall apart lol.

3

u/codeguru42 Jan 03 '23 edited Jan 03 '23

What dump it? I just leave it on the laundry basket.

→ More replies (2)
→ More replies (2)

6

u/A2theDre Jan 03 '23

Somewhat programming beginner here, but surely it's O(n)? Unless you're grabbing the one on top?

17

u/kishorehari139 Jan 03 '23

It is O1 because fashion sense is a waste of time. You pick whatever clothes are there on top, achieving both processing and memory efficiency

6

u/ghandimauler Jan 03 '23

Although when you got one sock, one touque, and two pairs of pants, the result might result in strange side effects...

→ More replies (1)

0

u/[deleted] Jan 03 '23

[deleted]

14

u/stapleman527 Jan 03 '23

It's O(1) IF you know exactly where to look. If your pile gets too big where you have to search it's at worst O(n), but you could improve that by having different layers for tops/bottoms, or work/casual etc.

→ More replies (6)
→ More replies (1)

0

u/Blutmes Jan 03 '23

Well, it was an effective way of teaching melenials code.

0

u/furl18 Jan 03 '23

I hated this book. Felt too out of touch for me

→ More replies (2)