Groovy
Functional Style List Manipulation: Scala Vs Java 8 Vs Groovy
I need to improve my Java 8 game. I was looking for a comparison; Groovy List Closure operations vs. Java 8 Stream operations. @sujeet100's post delivered. Moreover, I got a better understanding of how Java 8 Streams work:
The stream operations in Java 8 are not evaluated horizontally but are evaluated vertically, i.e. each element of the stream moved vertically down the chain. Thatβs why when a book matched the mentioned filter criteria, it is passed to the next operation in chain and the evaluation of other stream elements is delayed. This allows us to create a stream of infinite elements since all the elements are not loaded at once and are not evaluated for every operation in the chain. While working on bigger data, this might be a performance boon.
Although I still prefer Scala and Groovy succinctness, streams are a step in the right direction.
Getting property class from property name
I recently needed to do a similar thing to the one Sachin VermaI describes in this blog post:
Recently in one of my project, I had a requirement of identifying the class of a property of an object with object class and property name and then determining whether itβs an Enum class or not
Raspberry Pi & Groovy : Morse Code Translator
Christmas leisure time surfaces interesting experiments. Discover how @dekay created his own Morse code translator with a Groovy script running on a Raspberry Pi.
Grails
Grails Sketches
During 2018 we are launching a new initiative; Grails Sketches. One hour, free online webinars which aim to introduce technologies around Grails development.
- π Feb 9th - Developing Grails app with Grails 3
- π Mar 6th - Browser automation testing with Geb & Grails
- π Mar 9th - Build a better API with GORM and Graphql
- π Apr 6th - Database migration with Grails 3
Register now!
Use docker to provide external services to your Grails app
I currently work in a Grails application which uses Elastic Search. I run Elastic Search on my development computer via Docker. I worked in a Grails 3 app in MacOs which used GORM Hibernate implementation connected to a Microsoft SQL Server. It was possible thanks to Docker.
In this Grails Guide, you learn how to use a Postgresql database in your Grails application with a Docker container.
Grails as a Docker Container
We took a page from mrhaki's book and wrote a Grails Guide which shows to how to distribute your Grails application as a Docker container.
Comment
At the Grails OCI team, we are planning a list of webinars and training events for 2018. See below for more details.
This issue contains an interesting comparison Groovy vs Java 8, Groovy tricks and Grails + Docker links. Enjoy!
Sergio del Amo