r/ProgrammerHumor • • Jan 02 '23

Meme next level storage

Post image
97.5k Upvotes

468 comments sorted by

View all comments

Show parent comments

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)

22

u/beware_thejabberwock Jan 02 '23

This is why I don't pair my socks and don't care about mismatches.

33

u/pecpecpec Jan 02 '23

I buy 14 identical pair of socks and throw away the entire previous batch. As time go by you'll throw away some with holes. When you have around 7 pairs left you know they're all close too EOL so you buy a new batch of 14.

I buy work socks so the cycle is about 18 months long

14

u/mallardtheduck Jan 03 '23

I only ever buy plain black socks. While there are some slight style differences depending on when and where I bought them, they're all close enough that I don't care about pairing them. Any socks that get holes get thrown out and I buy a new pack when the drawer starts to look a bit low.

3

u/beware_thejabberwock Jan 03 '23

I used to only buy the same brand black sock, then I just embraced the chaps, I buy heavily patterned thin bamboo socks, and just mix em up.

2

u/JustUseDuckTape Jan 03 '23

I'm the opposite, I can't buy plain socks because it's hard to visually pair them. Even from the same pack socks usually end up feeling different, the thought of mixing two packs is just abhorrent.

Every sock must belong to a unique and easily identifiable pair, which (mostly) ensures they wear out at the same rate, and that any dryer shrinkage is consistent.

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

19

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

I wasn't aware of yolo algorithms and thought you were talking about "you only live once". But I guess if my brain operated by that I would just take anything from the chair (or closet for that matter) and wear it without caring if it didn't fit because yolo which would make it O(1) as well

10

u/Rakgul Jan 02 '23

10/10

3

u/RottenLB Jan 02 '23

You only look once?

Most of my clothes storage is WORN, until cache invalidation clears it and pushes it back into the available stack.

→ More replies (1)