Compose Grails GORM Queries with DetachedCriteria
Stop repeating the same GORM filters. Learn how DetachedCriteria lets you define query logic once, combine it safely, and execute it inside an active Grails session.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop repeating the same GORM filters. Learn how DetachedCriteria lets you define query logic once, combine it safely, and execute it inside an active Grails session.
Learn how to use Groovy Closures and the delegate property to build clean, internal DSLs for Java-based configuration systems while managing scope and security boundaries.
Groovy Closures with a custom delegate let you build readable internal DSLs for configuration. Learn how delegate and resolveStrategy redirect method calls, see a tiny ConfigBuilder example, and understand the debugging and performance trade-offs.
Groovy closures are first-class objects with lexical scope and delegate resolution. Learn how they work in collection pipelines and avoid common capture and delegation bugs.
Stop copying Docker build and notification logic across Jenkinsfiles. Learn how Jenkins Shared Libraries centralize pipeline code with version pinning.
Learn how to apply Groovy's @CompileStatic annotation to isolate performance‑critical code, gain compile‑time safety, and verify the impact with bytecode inspection and simple timing checks.
Learn how Groovy closures replace verbose Java loops with declarative collection methods like findAll and collect to improve code readability and maintainability.
Groovy's dynamic dispatch is a feature until a renamed method surfaces in production. A look at what @CompileStatic changes, a one-command verification, and where to draw the boundary.
When Groovy’s @CompileStatic can replace dynamic dispatch, how to design for it, test for safety, and handle failures – a practical guide for architects and developers.