As an extreme example of what not to do, consider the case of java.util.Calendar. Very few people understand its state-space — I certainly don’t — and it’s been a constant source of bugs for years. Joshua Bloch talking about API design In other words, whenever you see Calendar in use, perpare yourself for nasty bugs. [...]
Archive for the ‘puzzler’ Category
Java Calendar Puzzlers
Posted in Java, puzzler on April 25, 2010 | Leave a Comment »