Yesterday I saw this piece of code in a unit test (We're using JUnit like everyone else) we have for one of our components:
Timestamp dawnOfTheAges = new Timestamp(0);
I immediately e-mailed the person who wrote the code complaining about the fact that constructing a Timestamp like this creates something that's much more recent than the dawn of the ages. It's midnight as it was celebrated at any London pub on January 1st, 1970. Hell, how could this be the dawn of time if I was born over a year before that?
I'm too old for my job as a programmer...
Showing posts with label life. Show all posts
Showing posts with label life. Show all posts
Tuesday, November 21, 2006
Subscribe to:
Posts (Atom)