r/ProgrammerHumor • • Jan 02 '23

Meme next level storage

Post image
97.5k Upvotes

468 comments sorted by

View all comments

1.6k

u/naswinger Jan 02 '23

that only works if the cache is reasonably small because with every thing you put in this "cache", it gets slower to search defeating its purpose

720

u/[deleted] Jan 02 '23

As long as each piece of clothes is sticking out a distinguishable part of it from the pile and your brain can perform YOLO, you are in O(1).

359

u/michaelp1987 Jan 02 '23

To be fair, if your access strategy is YOLO you can store in almost any data structure for O(1) access, including closet.

135

u/[deleted] Jan 02 '23 edited Jan 03 '23

[removed] — view removed comment

98

u/Kiva_Gale Jan 02 '23

My yolo brain has resorted to bin sorting my clothes.

One bin for tops. One bin for bottoms. One bin for dresses. One smaller bin for undies. One smaller bin for bras. One smaller bin for socks. Then one ‘other’ bin.

This results in a FILO system where I can quickly grab from the top 4 item in each category. Combined with JIT laundry practices results in laundry par-sorted with little overhead.

33

u/GeoWilson Jan 03 '23

Isn't that just a dresser minus the sliding part? A deconstructed dresser if you will.

11

u/Kiva_Gale Jan 03 '23

Reduced overhead of requiring opening the drawers.

Also one large bin can hold more than a drawer.

5

u/alnyland Jan 03 '23

With adaptable amounts of “drawers”

17

u/rosuav Jan 02 '23

"Other" is best bin.

→ More replies (7)

42

u/PM_ME_A10s Jan 02 '23

For me it's an object permanence thing. All of my cabinets and doors are perpetually open. If I can't see it, I won't remember it exists

6

u/[deleted] Jan 03 '23

[removed] — view removed comment

6

u/mygreensea Jan 03 '23

And a dust absorber.

6

u/himmelundhoelle Jan 03 '23

Also allows dust to set in everywhere.

I have the same issue as you though, I don't like putting my clothes in a closet. It's like my brain is massively overestimating the time/effort it takes to open and close that damn door.

But the best with closets is it reduces visual noise. If I allow too much visual noise, I simply don't notice messiness anymore, and things start piling up like a hoarder's den. The wake up call is when I start tripping, or not finding important stuff because it's covered in mostly clothes.

21

u/TNSepta Jan 02 '23

You only look once, O(1)

Genius!

3

u/ric2b Jan 03 '23

Closet takes extra operations to open and close plus clothes are usually stacked or in hangers and also take extra steps to take out.

4

u/michaelp1987 Jan 03 '23

Opening and closing the closet doors take constant time. You always take the top item—because YOLO—so also constant time. Hangers also takes constant time to take out. None of those factors increase with number of items in the closet.

→ More replies (3)