Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mroach1477y@matsaki95 We Label when we opened it so we can identify milk that’s been open for a while and maybe should be thrown away. These cartons are UHT so the clock really starts ticking when they’re opened.
-
endor56667yAlso, you gotta throw another exception in case there are NO bottles in the fridge.
Or at least add a "Are there any bottles of milk in the fridge?" between "Did you check? -> Yes" and "Open a new bottle" -
mroach1477y@endor Background: the milk is stored outside the fridge in crates. It’s UHT so unrefrigerated. But yeah procedural code would be nice too!
-
@mroach You forgot to check the date on the open bottle now two things are going to happen:
1. People are going to drink bad milk and put the blame on you
2. People are going to notice the milk is bad and put it back into the fridge.
Either ways there is chaos at the end...
Every day in the office kitchen I find bottles of milk open and left out, in the fridge with no date, and empties everywhere. Yesterday I found 11 open and partially used bottles of milk. I’ve designed this flow chart to help educate people (in a way developers can understand) on how to manage milk which is apparently a real challenge for some.
rant