
Create a Groovy project in IntelliJ IDEA, enable Groovy framework support, write a hello world class, and debug with breakpoints on the JVM to see Groovy syntax and interpolation.
Learn how to install Groovy on Mac or Linux with sdkman. Install sdkman, configure your shell profile, list Groovy versions, and set a default version.
Explore the Groovy console to run code snippets, inspect the abstract syntax tree, and see how a tiny Groovy class automatically generates private properties with public getters and setters.
Master the Groovy spread operator to explode a collection into its elements, inserting them in place or invoking methods on each item with star syntax.
Master how to work with strings in Groovy by using string interpolation and regular expressions to format strings and extract the information you need.
Explore how Groovy handles strings, contrasting regular strings with interpolated strings. Use double quotes and placeholders with $variable and optional curly braces to interpolate values, producing g-strings.
Explore capture groups in Groovy regular expressions to extract the day of the week from a string, using parentheses, match results, and the pattern find and match operators.
Understand groovy's default imports, auto-including java.lang and common collections. See how numbers map to BigDecimal and BigInteger, and how a G suffix creates BigInteger alongside java.util collections.
Explore how Groovy applications start with a public static void main method, using Groovy console scripts, and how weak typing and script simplifications influence main method behavior.
Discover how to define classes and create instances in Groovy, mirroring Java syntax with a lighter touch. Learn when to add public static void main string args for executable scripts.
Discover how groovy properties replace private fields with package-private declarations, with automatic getters and setters. Compare pogo with pojo, see how AST transformations streamline class creation and leverage Java knowledge.
Groovy's operator overloading maps operators to methods invoked behind the scenes, demonstrated by overloading plus and using a greeting wrapper to produce uppercase results with less boilerplate.
Learn how Groovy returns multiple values from a method using a list, replacing Java’s boilerplate classes with lightweight weak-typed syntax, as shown with box dimensions x, y, z.
Welcome to the wonderful world of Groovy!
In this course, we take you step-by-step through the most common features and programming idioms of the Groovy programming language enabling you to supercharge your developer productivity by harnessing the power of Groovy's lightweight and succinct programming syntax!
We'll explore Groovy's lightweight and powerful syntax which slashes development time down to at most a quarter of the time you'd spend in writing the equivalent Java program!
As a Java developer of over 20 years programming in the main investment banks of the world, I'm proficient in Java for sure. But in spite of the skill level I have in Java, Groovy is still my number one go-to language when it comes to knocking up quick scripts to automate drudge work and even for writing full scale applications too (using other frameworks such as Grails and Griffon).
Groovy is predominantly seen today in Jenkins pipelines scripts and in Gradle build scripts, but this really underplays its power and versatility as we'll see in this course. You're gonna excited by it's features and start using it in your day to day developer activities once you take this course!
In particular, you'll learn the following:
Getting set up with Groovy, installing it and creating Groovy projects in the IDE
Exploring the Groovy toolset
Using Groovy Console to execute Groovy code
Common Groovy operators which form the cornerstone of it's powerful syntax
Strings, heredocs and using regular expressions and capture groups to parse and extract strings
Groovy collections and the enhancements delivered by the GDK (Groovy Development Kit)
Iterating collections
Searching through collections
Filtering and transforming collections in Groovy with Groovy's powerful closure mechanism
and much much more!
I can't wait to see you inside and share my passion for Groovy with you - so enrol today and let's get started! ;)