BlogMatrix
 

Coding Horror

edit Tim Desjardins 2007-11-03 04:45 UTC add comment  ·

I ran across this gem today...

static public Date getYesturdaysDate() {
        Date yesterday = new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24);
        return yesterday;
}

All I can say is WTF? How does something like this get through and then hang around without being cleaned up.

Add Comment