News for hackers. Stuff that matters.
Re:Falsehoods Programmers Believe About Time (2012) by fauigerzigerk on Monday October 10, 2016 @04:30AM (#12675821)
>Many, if not most of these things are problems with the environment, not things programmers should think about or try to solve. In fact, most of them should explicitly not be thought about. All that that will do is lead to defensive programming - What if X happens? What if Y? The answer to most of them is simple - Crash.

When it comes to time, a crash is not the most likely outcome of not thinking about what could happen. More likely your code will stall or do the wrong thing.

Think about polling, pinging other systems or rate limiting. At the end of daylight savings time your code could easily stall for an hour or DDOS another system because rate limiting fails.

There are no comments on this comment yet.