Java Reference
In-Depth Information
This puzzle only scratches the surface of the defects in Calendar and Date . These APIs are
minefields. Other serious problems with Calendar include weak typing (nearly everything is an
int ), an overly complex state-space, poor structure, inconsistent naming, and inconsistent
semantics. Be careful when using Calendar or Date ; always consult the API documentation.
The lesson for API designers is: If you can't get it right the first time, at least get it right the second;
there may not be a third. If your first attempt at an API has serious problems, your customers may
be forgiving and give you another chance. If your second attempt has problems, you may be stuck
with them for good.
< Day Day Up >
 
 
Search WWH ::




Custom Search