---
title: "Miriam (@mimi) | Hashnode"
description: "software engineer. Read the latest articles by Miriam on Hashnode."
url: "https://hashnode.com/@mimi"
---

@mimi

# Miriam

@mimi · Joined January 2021

software engineer

### [Small Gem: @Delegate annotation](https://codegroovy.com/small-gem-delegate-annotation?utm_source=hashnode&utm_medium=feed)

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 annotation adds all public instance methods of the annotated field to the present class. In the ...

1 min read · [codegroovy.com](https://codegroovy.com/small-gem-delegate-annotation?utm_source=hashnode&utm_medium=feed)

[Sep 30, 2021](https://hashnode.com/posts/small-gem-delegate-annotation/61560a0ae896275f335dfbe3)

### [Small Gem: Use MDC to add a prefix to every log statement](https://codegroovy.com/small-gem-use-mdc-to-add-a-prefix-to-every-log-statement?utm_source=hashnode&utm_medium=feed)

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 straightforward, in reality it wasn't. Here's a very simplified version of the code that illustrate...

2 min read · [codegroovy.com](https://codegroovy.com/small-gem-use-mdc-to-add-a-prefix-to-every-log-statement?utm_source=hashnode&utm_medium=feed)

[Sep 30, 2021](https://hashnode.com/posts/small-gem-use-mdc-to-add-a-prefix-to-every-log-statement/61560961e896275f335dfbda)

### [Groovy's MarkupBuilder Magic](https://codegroovy.com/groovys-markupbuilder-magic?utm_source=hashnode&utm_medium=feed)

Groovy makes it easy to generate xml. Here's an example using MarkupBuilder: import groovy.xml.MarkupBuilder new MarkupBuilder().books { book { name('Groovy in Action, Second Edition') authors { author('Dierk KÃ¶nig') author('...

7 min read · [codegroovy.com](https://codegroovy.com/groovys-markupbuilder-magic?utm_source=hashnode&utm_medium=feed)

[Feb 12, 2021](https://hashnode.com/posts/groovys-markupbuilder-magic/6025d4a4c6d91052dafe9211)

### [Trouble with Properties in Groovy Constructors](https://codegroovy.com/trouble-with-properties-in-groovy-constructors?utm_source=hashnode&utm_medium=feed)

I ran into some issues with groovy constructors today. The real code is rather complicated, so here's a contrived sample that illustrates the issue. Take this very simple groovy class: class Person { String firstName String lastName String ful...

5 min read · [codegroovy.com](https://codegroovy.com/trouble-with-properties-in-groovy-constructors?utm_source=hashnode&utm_medium=feed)

[Jan 29, 2021](https://hashnode.com/posts/trouble-with-properties-in-groovy-constructors/601389b5255cd51040956140)
