Tag Archives: good practices

Why not use java clone method

The Java Language is very nice. It has a lot of useful features and APIs. But it isn’t perfect. There are a lot of bad design decisions that, due to the decision of maintaining full backwards compatibility, stays as they … Continue reading

Posted in java | Tagged , , , | 3 Comments

Store date attributes as primitive longs?

I was reading the item 24 of this book and, in one of the last paragraphs, the author comments about storing date objects as a primitive long. The text is about making defensive copies of objects in your constructors and … Continue reading

Posted in java | Tagged , , , | 4 Comments