Hacker News new | past | comments | ask | show | jobs | submit login

Because getting time right is surprisingly hard.

I once went, "Oh, this time conversion function is simple. I should have it done this afternoon." About a week later I was still writing test cases that broke it.

Using a well debugged time library is worth it. Spend your cycles writing tests for it, if you must.




Hmmm....reminds me of a time when I naively tried to code a date.next() method. Never again..




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: