Groovy in Action, Second Edition is a thoroughly revised, comprehensive guide to Groovy programming. It introduces Java developers to the dynamic features that Groovy provides, and shows how to apply Groovy to a range of tasks including building new apps, integration with existing code, and DSL development. Covers Groovy 2.4.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
In the last ten years, Groovy has become an integral part of a Java developer's toolbox. Its comfortable, common-sense design, seamless integration with Java, and rich ecosystem that includes the Grails web framework, the Gradle build system, and Spock testing platform have created a large Groovy community
About the Book
Groovy in Action, Second Edition is the undisputed definitive reference on the Groovy language. Written by core members of the Groovy language team, this book presents Groovy like no other can—from the inside out. With relevant examples, careful explanations of Groovy's key concepts and features, and insightful coverage of how to use Groovy in-production tasks, including building new applications, integration with existing code, and DSL development, this is the only book you'll need. Updated for Groovy 2.4.
Some experience with Java or another programming language is helpful. No Groovy experience is assumed.
Comprehensive coverage of Groovy 2.4 including language features, libraries, and AST transformations
Dynamic, static, and extensible typing
Concurrency: actors, data parallelism, and dataflow
Applying Groovy: Java integration, XML, SQL, testing, and domain-specific language support
Hundreds of reusable examples
About the Authors Authors Dierk König, Paul King, Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet are intimately involved in the creation and ongoing development of the Groovy language and its ecosystem. Table of Contents
PART 1 THE GROOVY LANGUAGE
Your way to Groovy
Overture: Groovy basics
Simple Groovy datatypes
Collective Groovy datatypes
Working with closures
Groovy control structures
Object orientation, Groovy style
Dynamic programming with Groovy
Compile-time metaprogramming and AST transformations
Dr. Paul King is Managing Director and Principal Consultant for ASERT, an Australian company specializing in helping its customers leverage emerging technologies. He has provided technical and strategic consulting to hundreds of organizations throughout the U.S. and Asia Pacific and is an active contributor to many open source projects. When not being a taxi service for his seven children, you will find Paul tinkering with the latest Agile or enterprise technologies.
Guillaume Laforge is the official Groovy Project Manager and member of the JSR-241 Expert Group standardizing the Groovy Scripting Language. Guillaume is a software architect and Open Source consultant, working for OCTO Technology.
Cédric Champeau is a core Groovy committer. He joined SpringSource, by Pivotal, in order to help develope the language and he is responsible for the implementation of static type checking and static compilation in Groovy 2.
Erik Pragt is a passionate software developer with a broad range of experience in static languages like Java, and dynamic languages like Groovy. Having worked as a consultant for a broad range of customers mostly in the Telecom, ISP, and banking sector, Erik is now an independent freelance consultant. He founded of the Dutch Groovy and Grails user group, and is a regular conference speaker and trainer.