I know it’s too late, almost 2 weeks, since the GIDS16 (Great Indian Developer Summit 2016) ended – But the thought that “it’s better to be late than never” is motivating me to write down this post. It was a 5 days event – initial 4 days in Bengaluru and the last day in Pune. […]
It was indeed an amazing GR8Conf IN 2016 with more than 200 participants, marvelous line-up of speakers and fully packed parallel sessions at The Lalit, New Delhi. This year the conference was sponsored by OCI, which is the new home for Grails. The entire conference was also live streamed by #fame with more than 4000 […]
Use Case While writing functional tests sometimes we need to test whether a certain javascript objects have some particular values. If we have a JavaScript object such as in our page [code] var myObj = { attr1 : ‘attr1-val’, attr2 : ‘attr2-val’}; [/code] then after reaching that page we can execute the below in our GEB […]
Groovy Language enhancements that help with Regex Slashy Strings is the first thing that comes to my mind while talking about regex in Groovy. They are a simpler way to represent regex patterns as String compared to their Java counterparts. If we have to find all numbers in a String we can do something like this […]
A very basic migration flow looks as follows: In this scenario, you have a CMS(that could be Sitecore, Drupal, WordPress or any other CMS) which has source content that needs to be migrated to AEM. To achieve this, we typically need to do following things: Get content from source CMS in any format(XML, CSV, etc) […]
Have you ever wondered how come your Collection is being updated and ended up spending time on debugging? We are going to see how can we get to know immediately if our Collection is altered. In this blog, we will do this using ObservableList for ‘List’ and same can be applied for Map and Set […]
Groovy is an expressive language, that is what we are going to talk about making the usage of “with” method for specifying closure delegate and making our code more succinct (brief and clearly expressed). In my recent project, I was writing a code to resolve tenant and setting some properties to object tenant. resolver.tenant.subdomain = “india” resolver.tenant.username […]
Groovy 2.4 was released in January 2015, with native support for Android development. It allows to write Android applications fully using Groovy. Running Groovy on Android Step 1: Create a new Android project in Android Studio Step 2: Open this build.gradle (Module: app) file: Insert the following code before the first line: [java]buildscript { repositories […]
Dealing with collections is a part of a Developer’s daily life. However, sometimes it becomes quite cumbersome when we have to iterate through each collection every time we want a manipulated Collection. Ever thought of a groovier way to manipulate a collection and get a Map in a single line? Well, multiple iterations to convert […]