Video description
Extend and enhance your Java applications with Groovy. Groovy programming is a great way to speed up and modernize your Java applications with better efficiency
About This Video
- Explore Groovy’s lightweight and powerful syntax that slashes down the development time
- Learn to write and adapt Groovy scripts to maximize your productivity
- Filter and transform collections in Groovy with Groovy’s powerful closure mechanism
In Detail
There are not many technologies that can brag about staying relevant for more than 30 years. Java is one of those technologies that is not only staying relevant but also evolving with time. However, in Java, due to verbose and complexities in coding, developers started using different platforms and languages to counterfeit this downside.
Apache Groovy is the number one go-to language when it comes to knocking up quick scripts to automate drudge work and even for writing full-scale applications (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 will learn many exciting features of Groovy and see how it reduces execution time with its lightweight syntaxes.
This course will teach you how to set up Groovy, install it, and create Groovy projects in the IDE. Then you’ll be exploring the Groovy toolset and using the Groovy console to execute Groovy code. Moving ahead, you’ll learn common Groovy operators that form the cornerstone of its powerful syntax. You will then learn how to use regular expressions and capture groups to parse and extract strings. You’ll also look at Groovy collections and the enhancements delivered by GDK (Groovy Development kit). Finally, you’ll be filtering and transforming collections in Groovy with Groovy’s powerful closure mechanism and much more.
By the end of this course, you will learn Groovy’s features and start using them in your day-to-day activities with ease.
Publisher resources
Table of contents
- Chapter 1 : Getting Set Up
- Chapter 2 : Groovy Operators
- Chapter 3 : Groovy Strings
-
Chapter 4 : Collections in Groovy
- Section Introduction
- Creating Lists and Sets
- Creating Maps
- Composing Collections of Different Types
- Accessing Elements of a List
- Using Groovy Truthiness with Collections
- Creating and Accessing Composite Collections
- Processing Lists and Sets
- Processing Lists and Sets by Index
- Processing Maps by Key and Value
- Filtering Collections
- Finding the Matching Element in a Collection
- Testing Elements in Collections
- Collecting Elements to a List
- Collecting Entries to a Map
- Creating Aggregate Functions with Inject
-
Chapter 5 : Groovy Language Features
- Section Introduction
- Default Imports and Classes
- Main Methods in Groovy Applications
- Creating Classes and Instances in Groovy
- Adding methods and state to Groovy Classes
- Using Inheritance in Groovy
- Overriding Methods in Groovy
- POGOs and Groovy Property Generation
- Operator Overloading
- String Equality in Groovy
- Returning Multiple Values from a Method
- Autogenerating Equals and HashCode with Groovy AST Transformations
- Named Constructors
- Chapter 6 : Wrapping Up
Product information
- Title: Groovy Programming Fundamentals for Java Developers
- Author(s):
- Release date: April 2021
- Publisher(s): Packt Publishing
- ISBN: 9781801074063
You might also like
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn't clean, it can bring a development organization …
video
Python Fundamentals
51+ hours of video instruction. Overview The professional programmer’s Deitel® video guide to Python development with …
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Building Microservices, 2nd Edition
Distributed systems have become more fine-grained as organizations shift from code-heavy monolithic applications to smaller, self-contained …