Groovy on TDD: KCJUG Follow Up

I had a great time presenting on “Groovy and TDD” last night at the Kansas City JUG. There was a great turn-out, and I had a chance to meet and greet lots of interesting people.

As promised, here is the code we wrote together in our TDD exercise, verbatim. There was also a question about using System.identityHashcode() when caching properties during metaprogramming. During our hack, it seemed that this method was not producing a unique identifier for each object we were passing through to it. After further inspection, I’ve found that is was working properly, and it was probably a mistake on my part during the testing that made it seem to be in error. If you’d like to take a look at the proof, I’ve added some further identity testing and logging to this version of the project we worked on last night.

Also, if you’d like to see the full functionality of the sample unit converter we were shooting for, and an alternate version of the test were wrote during TDD, please check out the complete original project on github. You don’t need git to view it, you can just download it from the site.

This entry was posted in presentation and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Check out the latest GroovyMag to see an interview with me about the 1.1 release of GrailsUI: