xml-json

Parse and generate XML and JSON: readers, builders, object mapping, and serialization, with practical examples you can run and adapt.

Groovy Idiomatic Patterns – Category, Delegation, and Closure Patterns

Groovy idiomatic patterns that have no Java equivalent. 12 tested examples covering Category, @Delegate, closure-based DSLs, builder patterns, method chaining, and patterns that only work because Groovy is Groovy. “Design patterns are not about memorizing class diagrams – they’re about recognizing recurring problems. In Groovy, half the GoF patterns collapse into a closure and a map.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate | Reading Time: 20 minutes Our Groovy Design Patterns post ... Read More

Groovy Design Patterns – Singleton, Strategy, Observer with 10 Examples

Ask a Java developer for the Observer pattern and you get five files; ask a Groovy developer and you often get a list of closures. The Gang of Four ideas still matter on the JVM, but the ceremony does not. This guide works through Groovy design patterns, from @Singleton and closure-based Strategy to trait-backed Decorator, with 10+ tested examples. “Design patterns are not about being clever. They are about being clear. Groovy makes them so clear you almost forget they ... Read More

Groovy DSL and Builder Pattern – Create Domain-Specific Languages with 10 Examples

Groovy DSL and Builder patterns with 10+ examples. Master MarkupBuilder, CliBuilder, ObjectGraphBuilder, delegate strategy, and custom DSL creation. “A well-designed DSL reads like a conversation between the developer and the domain. Groovy makes writing those conversations remarkably easy.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate to Advanced | Reading Time: 25 minutes If you have used Gradle, you have already used a Groovy DSL without realizing it. That clean, readable syntax in build.gradle ... Read More