Groovy
Groovy Goodness: Customising The Groovy Compiler - Messages from mrhaki
Several months ago, while drinking beers after one Madrid Groovy User Group, @mariogarr told me he configured, in a Grails Project, the Groovy Compiler to annotate the project's classes with @CompileStatic by default.
I am a big fun of using @CompileStatic. However, I am not sure If want the compiler to do it automatically for me. Nonetheless, I made a mental note to try it myself.
Months went by; I still have not tried it. However, in the latest talk at Madrid GUG [SPANISH] Mario revisited the topic.
Moreover, he linked to a @mrhaki post which explains how to customize the Groovy Compiler.
Spock
[BOOK] Spock: Up and Running
Agust 2015, #Issue 11. I linked to @rfletcherEW's talk: Idiomatic Spock. Two years later, it is still in top 3 of Spock's links. That it is why I am excited about this book.
Most developers would agree that writing automated tests is a good idea, but writing good, well-structured tests is still an elusive skill for many.
TDD with Spock, Groovy and Java
An example of how to follow TDD with spock by Myzzreal
If you expect your code to be difficult to maintain in the future, do your future self a favour and spend some time making those tests. If some old functionality breaks when adding new features, your future self will know what, where and why - assuming you name your tests thoroughly and define clear test conditions.
Test Often and Prosper
Spock's overview by @snekse. Great deep dive into Parametrized tests, and Mocks.
Moreover, nice slides about Grouping assertions by Subject and Conditional Testing.
Grails
Google Home Guide
@ryanvanderwerf, Tony Stark's of Groovy ecosystem, put together a Guide which shows you how to create a Grails application to host a Google Action for your Google Home device to interact with.
The guide show how to build, deploy, and setup everything necessary to facilitate this on Google Appengine Flexible and Google APIs.
Video
▶ Make concurrency groovy again
I attended @alotor at this year's Greach.
Concurrency is always a hairy topic. However, he sliced the problem with tactful and deep analysis while comparing several approaches.
Libraries
GPars: Unsung Hero of Concurrency in Practice
A big GPars presentation where @yermilov17 introduces several GPars concepts such as withPool, Agents, Actors, DataFlow.
The slides are a bit difficult to follow without a live presentation due to the animations but the material is good.
Comment
In the airport ✈️, headed to GR8Conf EU. I will be giving several talks around Grails at the conference. I hope to drink a ☕️with some of you.
This week, I link to a lot of Spock material and one of the projects which does not get as much as attention as it should; GPars.
Speaking about concurrency, I am going to spawn a new thread to avoid missing my flight.
Sergio del Amo