News for hackers. Stuff that matters.
Re:Simple, correct, fast: in that order by DannyB2 on Monday July 09, 2018 @10:37AM (#17490449)
But I could write a simpler (incorrect) leap year function than yours!
Re:Simple, correct, fast: in that order by ythn on Monday July 09, 2018 @10:50AM (#17490546)
You missed the point of the article if you interpreted it as correctness being intentionally sacrificed for simplicity.

Plus, a complete leap year implementation is already what I would consider simple and most standard libraries already have an implementation for it you can use directly.