Tag Archives: date

DSL in Scala for Date Calculation

I’ve been attending a course about Java Architecture in Caelum these last weeks. In one of those Saturdays, the instructor mentioned a little bit about DSLs. Better yet, he gave us an example using Scala =) Now, the example was … Continue reading

Posted in scala | Tagged , , , , , , | 11 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