4 ms·
I created a program that outputs one of my kid's name if the day of year is even, the other kid's name if it's odd. I use it to determine who's turn it is to ta
by chasd00 5y ago
I created a program that outputs one of my kid's name if the day of year is even, the other kid's name if it's odd. I use it to determine who's turn it is to take a shower first. They'll argue with me and each other all day long but for some reason they will not argue with the computer.
- amanzi 5y agoLove this!
- politelemon 5y agoCall it Shower Power
- ghewgill 5y agoI do that too! One of my kids was born on an odd year, month, and day, while the other was born on an even year, month, and day. They know who is who and they don't argue with the calendar. (We do it by day of month and we find another way to decide if we need to on the 31st.)
- srcreigh 5y agohas it been more than a year? How does Jimmy feel about going first on Dec 31 (day 365) and Jan 1 (day 1)?
- netsharc 5y agoI guess it could be change to count whether if the number of days since Jan 1, 1970 up to today has been odd or even...
- conductr 5y agoProbably since otherwise you’d just need a calendar or somehow know the date which most people do without custom code
- jffry 5y agoEven if the decision was merely day-of-week based, that doesn't buy the key characteristic the author values (I assume): the kids will accept the Algorithm's ruling
- evan_ 5y agoThey don't have to take a shower on New Year's Day.
- oh-4-fucks-sake 5y agoInstall a second shower-head and make them shower together. Parallel processing is your friend here.
- heyoni 5y agoImagine how messy async showering would be?