Apache Groovy 4 Fundamentals
Groovy is a well-known language that complements Java. This course will teach you the core Groovy features that let you write complex code effectively.
What you'll learn
Though Java has been widely adopted, it is verbose and needs a lot of ceremony. In this course, Apache Groovy 4 Fundamentals, you’ll learn how to write concise code to achieve complex tasks. First, you’ll explore the syntax of Groovy, the simple and complex data structures provided by the language. Next, you’ll discover how to use looping constructs to control the flow of your program. Then, you'll dive into exception handling, file handling techniques, and regular expressions. Later, you'll be shown key Groovy features like Closures, metaprogramming, and builders. Finally, you’ll learn how to process XML and JSON documents in Groovy. When you’re finished with this course, you’ll have the skills and knowledge of writing concise Groovy code that complements Java needed to automate and maintain your day-to-day tasks.
Table of contents
- Introducing Groovy Programming 2m
- Course Structure 4m
- Understanding the Business Problem 2m
- Setting up the Development Environment 4m
- Value Proposition of Groovy 4m
- Writing Your First Groovy Program 6m
- Checkpoint 01 - Print a message to the console 0m
- Groovy Utilities 4m
- Accepting User Input 2m
- Debugging the Groovy Program 4m
- Checkpoint 01 - Print a message to the console 0m
- Groovy Simple Datatypes 5m
- Checkpoint 02 - Create a variable and assign it a value 0m
- Groovy Operators - Part 1 5m
- Groovy Operators - Part 2 3m
- Groovy Dynamic Datatypes 4m
- Checkpoint 03 - Print the sum of two integers to the console 0m
- Groovy Complex Datatypes - Range 3m
- Groovy Complex Datatypes - Arrays and List 4m
- Groovy Complex Datatypes - Maps 3m
- Checkpoint 04 - Print the size of a range variable to the console 0m
- Checkpoint 04 - Print the size of a range variable to the console 0m
- Checkpoint 02 - Create a variable and assign it a value 0m
- Branching Logic in Groovy 4m
- Checkpoint 05 - Write an if statement and check a string's value 0m
- Looping Logic in Groovy 5m
- Conditional Logic in Groovy 3m
- Checkpoint 06 - Write a for loop and use a break statement to exit 0m
- Switching Logic in Groovy 4m
- Controlling the Loops in Groovy 2m
- Iterating Using Groovy Built-in Methods 4m
- Checkpoint 05 - Write an if statement and check a string's value 0m
- Basics of Exception Handling 3m
- Exception Handling Using try/catch Block 6m
- Checkpoint 07 - Add an Exception argument and print the stack trace to the console 0m
- Performing Cleanup after Execution 2m
- Throwing an Exception 4m
- Checkpoint 08 - Write a finally statement and perform resource cleanup 0m
- Checkpoint 08 - Write a finally statement and perform resource cleanup 0m
- Introducing Closures 2m
- Writing Simple Closures 5m
- Checkpoint 09 - Print the list of elements using closures 0m
- Passing Parameters and Returning Values in Closures 6m
- Using Closures in Methods and Collections 6m
- Using Closure Scope and Delegates 8m
- Groovy Closure Advanced Features 3m
- Checkpoint 10 - Write a Closure that accepts two parameters and print them to the console 0m
- Checkpoint 09 - Print the list of elements using closures 0m
- Checkpoint 10 - Write a Closure that accepts two parameters and print them to the console 0m
- Opening and Closing Files and Directories in Groovy 6m
- Reading Files in Groovy 6m
- Checkpoint 11 - Print selected files from a directory 0m
- Writing to Files in Groovy 4m
- Searching Files in Groovy 3m
- Checkpoint 12 - Print the number of lines in a file 0m
- Checkpoint 11 - Print selected files from a directory 0m
- Basic Pattern Matching in Groovy - Part 1 5m
- Basic Pattern Matching in Groovy - Part 2 2m
- Checkpoint 13 - Check if the string contains a particular text 0m
- Extracting Matches in Groovy Using Regex 5m
- Replacing Text Using Regex 4m
- Checkpoint 14 - Replace specific text in a line 0m
- Rewriting Files Using Regex 4m
- Checkpoint 14 - Replace specific text in a line 0m
- Defining Classes and Methods 4m
- Constructor Overloading and Methods 3m
- Checkpoint 15 - Create an instance of a class 0m
- Working with Inheritance 3m
- Working with Interface 3m
- Using Traits in Groovy 3m
- Checkpoint 16 - Create a class that implements the interface 0m
- Using Groovy Beans 5m
- Checkpoint 16 - Create a class that implements the interface 0m
- Building XML Documents in Groovy 4m
- Building HTML Documents in Groovy 2m
- Checkpoint 17 - Parse and read XML files 0m
- Building JSON Documents in Groovy 4m
- Reading XML and JSON Payloads in Groovy 4m
- Checkpoint 18 - Print a JSON payload to the console 0m
- Reading JSON from External API 4m
- Checkpoint 17 - Parse and read XML files 0m
- Introducing Metaprogramming 6m
- Aspect-oriented Programming in Groovy 4m
- Expanding a Class Functionality in Groovy 3m
- Compile-time Metaprogramming in Groovy - Part 1 5m
- Checkpoint 19 - Access object properties using metaprogramming 0m
- Compile-time Metaprogramming in Groovy - Part 2 2m
- Checkpoint 20 - Write a Groovy Transform 0m
- Checkpoint 20 - Write a Groovy Transform 0m
- Working with Databases 5m
- Unit Testing in Groovy 4m
- New Features in Groovy 4 7m
- Checkpoint 21 - Write a case statement using modern Switch 0m
- Differences between Groovy and Java 3m
- Best Practices and Resources 4m
- Checkpoint 22 - Use Groovy 4 built-in macro methods 0m
- Checkpoint 22 - Use Groovy 4 built-in macro methods 0m