« Mocking GWT widgets with GWTMockUtilities | Main | Test-Driven Google Web Toolkit article in the GWT documentation »

March 08, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e55055486e8833011168cbb444970c

Listed below are links to weblogs that reference Pimp My Library: 5.minutes with the Time And Money Library:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Gabriel C

I don't know a thing about the Time & Money library, but if you want to leverage the type system to have a compile time error when you do 2.minutes + 2.months, 2.months shouldn't return a duration. It must be something that can't be added to 2.minutes...

Daniel Wellman

@Gabriel This makes sense. My thought was to create two different RichDuration types; one for a basis in seconds, the other in months. Then implement the + method such that you can only add units of the same type.

Alex Baranosky

I'm really enjoying learning Scala; there is so much it can do, while still staying statically typed. I found your blog from the Cyrus Innovation website; do you use much Scala in your work there?

Daniel Wellman

@Alex We don't use it on any projects right now, but we're considering getting started by writing new tests for an existing Java project in Scala. It seems like a fairly simple way to ease into using the language.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.