Groovy in Action
Dierk König and Paul King with Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet
  • January 2007
  • ISBN 9781932394849
  • 696 pages
This title is out of print and no longer for sale.

Excellent code samples ... very readable.

Scott Shaw, ThoughtWorks

Second edition of this book is available

Groovy, the brand-new language for the Java platform, brings to Java many of the features that have made Ruby popular. Groovy in Action is a comprehensive guide to Groovy programming, introducing Java developers to the new dynamic features that Groovy provides. To bring you Groovy in Action, Manning again went to the source by working with a team of expert authors including both members and the manager of the Groovy Project team. The result is the true definitive guide to the new Groovy language.

Table of Contents show full

foreword

preface

acknowledgments

about this book

about the authors

about the title

about the cover illustration

1. Your way to Groovy

Part 1 The Groovy language

2. Overture: The Groovy basics

3. The simple Groovy datatypes

4. The collective Groovy datatypes

5. Working with closures

6. Groovy control structures

7. Dynamic object orientation, Groovy style

Part 2 Around the Groovy library

8. Working with builders

9. Working with the GDK

10. Database programming with Groovy

11. Integrating Groovy

12. Working with XML

Part 3 Everyday Groovy

13. Tips and tricks

14. Unit testing with Groovy

15. Groovy on Windows

16. Seeing the Grails light

Appendix A: Installation and documentation

Appendix B: Groovy language info

Appendix C: GDK API quick reference

Appendix D: Cheat sheets

index

About the book

Groovy in Action introduces Groovy by example, presenting lots of reusable code while explaining the underlying concepts. Java developers new to Groovy find a smooth transition into the dynamic programming world. Groovy experts gain a solid reference that challenges them to explore Groovy deeply and creatively.

Because Groovy is so new, most readers will be learning it from scratch. Groovy in Action quickly moves through the Groovy basics, including

  • Simple and collective Groovy data types
  • Working with closures and Groovy control structures
  • Dynamic Object Orientation, Groovy style

Readers are presented with rich and detailed examples illustrating Groovy's enhancements to Java, including

  • How to work with builders and the GDK
  • Database programming with Groovy

Groovy in Action then demonstrates how to Integrate Groovy with XML, and provides,

  • Tips and Tricks
  • Unit testing and build support
  • Groovy on Windows

An additional bonus is a chapter dedicated to Grails, the Groovy web application framework.

What's inside

  • A comprehensive Groovy language tutorial
  • Explore the benefits of dynamic programming
  • Tackle day-to-day tasks like shell scripting and build support
  • Grails, the Groovy web development framework
  • Dozens of reusable examples

About the authors

Dierk Koenig is a senior software developer, mentor and coach. He publishes in leading German magazines on software development and speaks at international conferences. He works at Canoo Engineering AG, Basel, Switzerland, where he is the founding partner and member of the executive board. He joined the Groovy project in 2004 working as a committer ever since.

Andrew Glover is the President of Stelligent Incorporated which helps companies address software quality with effective developer testing strategies and continuous integration techniques that enable teams to monitor code quality early and often. He actively blogs about software quality at thediscoblog.com and testearly.com.

Dr Paul King is Managing Director and Principal Consultant for ASERT, an Australian company specialising 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.

As the official Groovy Project Manager and member of the JSR-241 Expert Group standardizing the Groovy Scripting Language, Guillaume Laforge is a passionate Groovy developer. In his professional career, Guillaume is a software architect and Open Source consultant, working for OCTO Technology, a company focusing on architecture of software and information systems

Jon Skeet is a software engineer and inveterate technological dabbler who happens to specialise in Java and C# development. A recent convert to Groovy, Jon is fanatical about using smarter ways to write cleaner, more readable code.