Archive for the ‘Design Patterns’ Category

Calculating time difference in months as a decimal number

Wednesday, October 8th, 2008

There’s a number of functions out there for calculating the length of time in months but they only provide integer results. MySQL can do it too, for instance. But what if you need to get a precise number?

2008-11-15 minus 2008-10-01 can’t be one if you’re calculating rent. It must be 1.466…

(more…)

A Conversation with Erich Gamma

Friday, November 3rd, 2006

When searching for more information on design patterns I found a series of interviews with Erich Gamma, co-author of the book, Design Patterns: Elements of Reusable Object-Oriented Software, on Artima Software website. (more…)