-
Testing Groovy Scripts
I often start Groovy development with scripts rather than classes. Scripts are quick and easy, both to write and to run, and the feeling of having only a few lines of code makes me more willing to experiment. Most of my scripts eventually turn into classes, but once in a while, either for convenience or…
-
Groovy Groundhogs (again)
Last year on Groundhog Day I posted a short Groovy script about the consequences of the groundhog seeing his shadow. I wasn’t going to do it again, but then I thought about the movie and realized I had to. Here’s the script, which I’ll explain afterwards. Date and time manipulation in Java has always been…
-
An easier way to add Spock to an Eclipse/STS project
Normally I’m a big fan of Mr. Haki and his blog posts about Groovy. Recently, however, he wrote a blog post entitled Spocklight: Add Spock Support to Java Project in STS/Eclipse in which he accomplished his goal in what I find to be an overly complicated way. I’d like to suggest a much simpler alternative…
-
What is “Making Java Groovy”, anyway?
This week, the first two chapters of my book Making Java Groovy became available through the Manning Early Access Program (MEAP). I thought I’d explain a bit more about the purpose of the book here, while potential readers still have a chance to affect it. Also, this post is an attempt to answer the question,…
-
Unit testing Grails controllers, revisited
I’ve been neglecting my blog, which I blame on a combination of using twitter and being on a book project. More about those later. In the meantime, I’ve recently been working on some Grails projects and found an issue with unit testing controllers. I’m now on Grails 1.3.5, and I’m trying hard to do unit…
-
10 years, and never missed a day
On May 31, 2000, I formally left United Technologies Research Center and joined the Golden Consulting Group (now BIT Advisors) as a full-time technical trainer. I’m posting now to celebrate the fact that, having just passed my 10th anniversary at a technical trainer, I’ve still never missed a day. 🙂 I spent almost 12 years…
-
The Rest Can Wait, too
Rather than talk about the band this time, I’ll actually say something about the album. For those who missed my earlier post, Xander’s band, The Tension, has released their first album on the Sling Slang label, entitled The Rest Can Wait. It’s available at CDBaby online, as well as iTunes, Amazon’s MP3 Marketplace, and others.…
-
The Rest Can Wait
This month, my son’s band, The Tension, released their first CD, entitled “The Rest Can Wait“. It’s currently available at CDBaby, and will eventually be on iTunes, Amazon, etc. I love the album, but since I’m the lead singer’s father, it’s natural to think I might be biased. So there’s not much point in me…
-
Twitter Follower Value, revisited
In my last post, I presented a Groovy class for computing Twitter Follower Value (TFV), based on Nat Dunn’s definition of the term (number of followers / number of friends). That worked just fine. Then I moved on to calculating Total Twitter Follower Value (TTFV), which sums the TFV’s of all your followers. My solution…
-
Twitter Follower Value in Groovy
Nat Dunn, who runs the training company Webucator, posted an interesting idea on his blog. He was thinking about Twitter, and wondering about how the number of followers and friends (he called them “followees”) affected the likelihood of someone actually reading your tweets. If a person is following too many people, they can’t possibly read…