The "opportunity for bugs" I didn't realize until I was over 10 years into my professional career: 10 AM 11 AM 12 PM 01 PM 02 PM 03 PM I see large software systems for things like airlines and trains sometimes make this mistake, for instance a 1 hour trip on a ticket that says "11:30AM - 12:30AM" which is actually negative 11 hours. I have a collection of photos somewhere of every time I've caught it. If I could chan…
Falsehoods programmers believe about time
131–140 of 212 posts
Re: Falsehoods programmers believe about time
#132Earlier quoted context omitted.
First they came for the Special Hats, but I did not speak out -- because I was hatless...
Grandpa, tell me a story about the Time Hat Wars Well sonnie-boy, listen up... it all started on 01-01-1970...
Re: Falsehoods programmers believe about time
#133The "opportunity for bugs" I didn't realize until I was over 10 years into my professional career: 10 AM 11 AM 12 PM 01 PM 02 PM 03 PM I see large software systems for things like airlines and trains sometimes make this mistake, for instance a 1 hour trip on a ticket that says "11:30AM - 12:30AM" which is actually negative 11 hours. I have a collection of photos somewhere of every time I've caught it. If I could chan…
Re: Falsehoods programmers believe about time
#134Sure, you might run into some quirk at some point in your career but they will end up being just another weird war story.
I worked directly with NTP. The nitty-gritty details and the leap second smears and all of that, for an absolutely huge network and I find this list patronizing, smug and worthless. It's some sort of intellectual masturbation or just another instance of https://news.ycombinator.com/item?id=32335165.
Re: Falsehoods programmers believe about time
#135> The system clock will always be set to the correct local time. I work on a sometimes offline educational product for children. Kids for some reason love to mess with their system clocks. The hoops we've tried jumping through to get a reasonable time frame of events from iPads that were offline for any period of time is hilarious. We gave up, and if the time of events is unreasonable, we just shift the entire set wa…
There are plenty of mobile games that will time-gate in-game rewards (e.g. wait x hours to unlock y). Often, messing with the system clock skips these delays. You're welcome.
Re: Falsehoods programmers believe about time
#136Re: Falsehoods programmers believe about time
#137> The system clock will always be set to the correct local time. I work on a sometimes offline educational product for children. Kids for some reason love to mess with their system clocks. The hoops we've tried jumping through to get a reasonable time frame of events from iPads that were offline for any period of time is hilarious. We gave up, and if the time of events is unreasonable, we just shift the entire set wa…
They are cheating at games!
Re: Falsehoods programmers believe about time
#138> A week (or a month) always begins and ends in the same year Okay, of course a week can begin in an year and end in the next, but how exactly would a month not begin and end in the same year?
It could also be a reference to the start of the calendar, but that isn't bound to happen again.... Well, unless it does.
Then, on the other hand (because Time is funky that way) your time may not be the same as my time, since we could be in different time zones.
Re: Falsehoods programmers believe about time
#139Re: Falsehoods programmers believe about time
#140But this one jumped out at me: "Any 24-hour period will always begin and end in the same day". It would be a lot more plausible if "always" were replaced with "never". Add 24 hours to a time, and it will (almost) always be the next day.