Groovy in Action is a comprehensive description of the Groovy programming language, its libraries, and its everyday use. With the release of JSR 241, Groovy has become the second standard language for the Java platform. The book introduces Java developers to the new dynamic features that Groovy brings to this platform.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
The first part of the book explains the basic parts of Groovy: datatypes, control flow, object model, and handling specifics. The second part elaborates on enhancements that Groovy brings to standard Java development: builders and template engines, JRE improvements (GDK), integration options, and the special support for XML, regular expressions and database programming. The hands-on experience part of the book presents various tips & tricks for daily programming work, covers unit testing and build support, and shows how to even script Windows via Groovy. An additional bonus track is dedicated to Grails, the Groovy Web Application Framework.
Groovy in Action introduces the language by example, showing lots of reusable pieces of code while explaining the underlying concepts. Java developers who are new to Groovy will find a smooth transition into the dynamic programming world. Groovy experts will find new aspects and triggers of creativity as well as a solid reference.
Chapter 2 Preview
Groovy is the second language for the Java platform after the Java language itself. While the Java language focuses on the technical concerns of power, scalability, and performance, Groovy addresses the human factor of programming by specializing in features that support writing code that is expressive and concise. Since real-world applications need to care about both the technical and the human factors, they profit from the ability of using Java and Groovy interchangeably.
This is where Groovy is unique: it not only brings the advanced language features of modern dynamic languages to the Java platform, but it also integrates with this platform in a seamless way. Groovy can do so because it was specifically designed for running on the Java platform from the first day on. It obeys the Java object model and its runtime, threading, and security architecture, always keeping the perspective of a Java programmer and building on his knowledge.
This three part series is based on chapter two of Groovy in Action from Manning Publications. The chapter introduces the language in a high-level fashion. After reading this series, you will have a solid understanding of Groovy fundamentals.
About the Author
Dierk König works as a senior software developer, mentor, and coach for Canoo Engineering AG, Basel, Switzerland. He is committer to the open-source projects Groovy and Grails, and project manager of Canoo WebTest. Dierk speaks at international conferences and publishes in leading software magazines.