Code Groovy

Code Groovy

Follow
homebadges
Tag

Programming Blogs

#programming-blogs

More content

Read more stories on Hashnode


Articles with this tag

Small Gem: @Delegate annotation

Sep 30, 20211 min read

While looking through some source code of the open source library groovy-wslite, I came across an annotation I had not seen before - @Delegate. This...

Small Gem: @Delegate annotation

Small Gem: Use MDC to add a prefix to every log statement

Sep 30, 20212 min read

This one was a lifesaver. I was working on code that processes messages, and needed to add the message id to every log statement. While this sounds...

Small Gem:  Use MDC to add a prefix to every log statement

Groovy's MarkupBuilder Magic

Feb 12, 20217 min read

Groovy makes it easy to generate xml. Here's an example using MarkupBuilder: import groovy.xml.MarkupBuilder new MarkupBuilder().books { book { ...

Groovy's MarkupBuilder Magic

Trouble with Properties in Groovy Constructors

Jan 29, 20215 min read

I ran into some issues with groovy constructors today. The real code is rather complicated, so here's a contrived sample that illustrates the...

Trouble with Properties in Groovy Constructors