News for hackers. Stuff that matters.
Re:Infinite loop in macOS Night Shift in the summer near the... by smudgymcscmudge on Friday June 28, 2019 @09:23PM (#20310212)
Aside from having a falsehoods checklist that includes this, how would this be caught by a programmer who isn’t mindful of the fact that you don’t always have a sunset?
Re:Infinite loop in macOS Night Shift in the summer near the... by caf on Friday June 28, 2019 @11:56PM (#20310734)
Consider the loop conditions (which are clearly non-trivial) and ask "is it certain that this loop will always terminate"?

Presumably in this case you would have arrived at an answer along the lines of "yes, so long as there's always a sunset". Which should then prompt the question: hang on, is there always a sunset? A quick scan over whatever datafile it's using for input should answer that.