Groovy 2 Cookbook
By Andrey Adamovich, Luciano Fiandesio
Publisher: Packt Publishing
Released: October 2013
Pages: 394

In Detail

Get up to speed with Groovy, a language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. This book will show you the powerful features of Groovy 2 applied to real-world scenarios and how the dynamic nature of the language makes it very simple to tackle problems that would otherwise require hours or days of research and implementation.

Groovy 2 Cookbook contains a vast number of recipes covering many facets of today's programming landscape. From language-specific topics such as closures and metaprogramming, to more advanced applications of Groovy flexibility such as DSL and testing techniques, this book gives you quick solutions to everyday problems.

The recipes in this book start from the basics of installing Groovy and running your first scripts and continue with progressively more advanced examples that will help you to take advantage of the language's amazing features.

Packed with hundreds of tried-and-true Groovy recipes, Groovy 2 Cookbook includes code segments covering many specialized APIs to work with files and collections, manipulate XML, work with REST services and JSON, create asynchronous tasks, and more. But Groovy does more than just ease traditional Java development: it brings modern programming features to the Java platform like closures, duck-typing, and metaprogramming.

In this new book, you'll find code examples that you can use in your projects right away along with a discussion about how and why the solution works. Focusing on what's useful and tricky, Groovy 2 Cookbook offers a wealth of useful code for all Java and Groovy programmers, not just advanced practitioners.

Approach

This book follows a Cookbook style and is packed with intermediate and advanced level recipes.

Who this book is for

This book is for Java developers who have an interest in discovering new ways to quickly get the job done using a new language that shares many similarities with Java. The book’s recipes start simple, therefore no previous Groovy experience is required to understand the code and the explanations accompanying the examples.

Product Details
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyGroovy 2 Cookbook
 
4.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 1 customer

Displaying review 1

Back to top

 
4.0

Groovify your knowledge.

By wblancqu

from Melle, Belgium

About Me Developer

Verified Reviewer

Pros

  • Accurate
  • Well-written

Cons

    Best Uses

    • Intermediate

    Comments about oreilly Groovy 2 Cookbook:

    Once again, I received the opportunity from Packt Publishing to review some books. Next in line is the "Groovy 2 Cookbook". The book consists of 10 chapters and after reading them, I see this book more as a reference rather than a work to read at once from beginning til the end. Although it explains thoroughly all the features and syntactic sugar available in the groovy language, I would not advice this book to people who are new in software development. However, this book certainly has added value for existing (java) developers willing to take a dive in a new dynamic language. If you are, like me, new to dynamic languages, this book will show you quickly what a dynamic language has to offer. If you feel interested, my advice would be to read the first three chapters ("Getting started with Groovy", "Using Groovy Ecosystem", "Using Groovy Language Features"), as well as chapter 9 ("Metaprogramming and DSLs in Groovy"). The other chapters give you a more in depth description of which handsome API's this language has to offer, but can certainly be skipped on a first read and be referenced once you actually start using the language. Just remember that Groovy has those beautiful API's and you're good to go.

    What this book doesn't give you are some guidelines or design principles on how to model software using a dynamic language in a proper fashion. However, I believe that most of the object-oriented design patterns still apply, and these dynamic languages are working complementary to what you already know. Although be careful, dynamic languages can easily lead you to a path of unreadable "hackerish"-style of code, which should not be allowed in professional environments.

    Conclusion: Get this book if you are a medior developer willing to learn more on what you can do with dynamic languages, and if you want a reference to all syntactic magic Groovy has to offer. Do not get this book if you are new to development and want to learn development using Groovy.

    Displaying review 1

    Back to top

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook: $29.99
    Formats:  ePub, Mobi, PDF