Month: February 2009
-
Making a Groovy class a range
In a recent post, I used the Date class in a range. This always jumps out at Java developers, who aren’t used to seeing it. It’s really cool you can do that in Groovy. That example illustrates both the concept of a range as a collection of values, and that Groovy can add methods to…
-
Links from my GroovyMag article
I’m really happy to have an article in the current issue of GroovyMag, but after it appeared I realized something. When I submitted the article I added several links in the text, thinking that they would still be active in the resulting PDF. That, as they say, turned out not to be the case. I…
-
Groovy Groundhogs
So the groundhog saw his shadow today, implying six more weeks of Winter. Let’s settle this nonsense once and for all. The output is In other words, there are six weeks and six days between Groundhog Day and the first day of Spring. So we’re already going to have an early Spring. 🙂