Groovy
The power of Groovy DSLs
@Schlogen explains you how to dip your toe in the water of Groovy DSLs.
A closure combined with a delegate and resolve strategy is the cornerstone of the type of DSL this article discusses.
Build Excel, Word and PDF files with a Groovy DSL
In the previously linked article @Schlogen mentions a Groovy DSL to simplify the creation of Excel files with the Apache POI library. This is a link to this library's documentation. As it is becoming usual with Groovy libraries, it has a great documentation. 👏
Do you need to work with Word or PDFs? Checkout @craigburke1's Groovy Document Builder
Grails
Skip Bootstrap code
Did you know Grails can run multiple *Bootstrap classes at startup? Did you know you can skip the executing of BootStrap classes with a Java System property? @mrhaki, explainer-in-chief, shows you how.
Configuring Rolling Logging with Logback
What is a rolling log file?
Splitting up a regular log file into many ones based on a specific schedule, such as daily, weekly, monthly, or even hourly, minutely
@zacharyaklein shows how to configure rolling logging in a Grails 3 app
Let’s say we want to split out our log files by day, and keep 30 days worth of log files around (deleting any older ones). In addition, we don’t have unlimited hard drive space, so we’ll also set a file size cap so that the total disk space used by our logs never exceeds 2GB.
Demo instagram, created with Groovy On Grails framework
Back in issue #2 I linked to a Grails Event in Azerbaijan.@ziyaaskerov, @S_V_J_P and the rest of the crew stroke back. This time with a Grails Conference the past 29 of October.
One of the talks had a provocative name: Build Instagram with Grails in 60 Minutes. This link will get you to the Github repository of the demo they produced.
If you speak Azerbaijani, checkout the video
Gradle
Awesome Gradle Plugins
Back in last year Greach Conf I attended @aalmiray's talk: Gradle Glam: Plugins Galore. I loved it. In fact I already linked to several of the plugins mentioned in the talk.
This GitHub repository is a curated list of awesome Gradle Plugins. Yes, I ❤️curated content.
Video
▶ [SPANISH] Express Development with Grails 3
Great intro workshop to Grails (focused in Grails 3) by @quindimildev. If you want to introduce Grails to a Spanish speaker, this is a video to share with them.
Comment
This issue contains a couple of links to Groovy DSL examples. DSL creation is one of the greatest capabilities of the language.
First time I discovered Groovy I liked how succinct the language is. How easy it is to perform common operation such as File manipulation or XML building. I saw DSLs in action and marvel about the clarity they offer but I did not understand what a DSL was. I did not understand how they worked. In fact I was unaware DSL acronym stood for Domain Specific Language 😞. However, when someone explains you how to build a DSL is like someone shows you how to pull a rabbit out of a hat. You are invited to take you language use to the next level.
Excuse the self promotion. If you are in Madrid (Spain) area and are interested in 🕷, scrapers and Geb come to the next Madrid Groovy User Groovy Meetup. If you can't make it next week, hope to see you in CodeMotion in two weeks.
Groovy Calamari