or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a £14.37 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Groovy in Action [Paperback]

Dierk Konig , Andrew Glover , Paul King , Guillaume Laforge , Jon Skeet
4.2 out of 5 stars  See all reviews (5 customer reviews)
RRP: £35.99
Price: £31.67 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £4.32 (12%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 2 left in stock.
Dispatched from and sold by Amazon. Gift-wrap available.
Trade In this Item for up to £14.37
Trade in Groovy in Action for an Amazon.co.uk gift card of up to £14.37, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

24 Jan 2007 1932394842 978-1932394849 1

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.

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.

Purchase of the print book comes with an offer of a free PDF eBook from Manning. Also available is all code from the book.


Frequently Bought Together

Groovy in Action + Grails in Action
Price For Both: £63.34

Buy the selected items together
  • Grails in Action £31.67


Product details

  • Paperback: 693 pages
  • Publisher: Manning Publications; 1 edition (24 Jan 2007)
  • Language: English
  • ISBN-10: 1932394842
  • ISBN-13: 978-1932394849
  • Product Dimensions: 18.8 x 3.5 x 23.3 cm
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: 343,092 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, and more.

Product Description

About the Author

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.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4.2 out of 5 stars
4.2 out of 5 stars
Most Helpful Customer Reviews
4 of 4 people found the following review helpful
5.0 out of 5 stars Cracking stuff 19 July 2007
Format:Paperback
Whatever you think about the merits of Groovy as a language, a serious contender on the JVM, or a complete mess, you couldn't hope to find a better advocate for Groovy than this book.

One of the secrets of GinA's success is that it assumes the reader is already proficient with Java development, including Swing, Ant and JUnit. It would also help to know about XML, SQL, HTML, JSP and a vague idea of how MVC applies to web apps. You don't need to be an expert in these areas, though. If you've sufficient knowledge to decode the preceeding alphabet soup of initialisations, you'll be ok.

The reward for possessing this background knowledge is that GinA doesn't waste time with trivial examples, and barrels through Groovy the language in the first part, leveraging your existing knowledge of Java to highlight the important differences in Groovy. In particular, the advantages of interpolating strings, simple hash and array construction syntax, optional typing and metaprogramming are stressed. The big win in Groovy over Java is the use of closures and their used in a block-based approach to iteration, which is as well motivated here as the material in, say, The Pickaxe is for Ruby.

The second part of the book provides examples of the Groovy library. It begins with an excellent chapter on Groovy's Builders, which provide a very neat, uncluttered syntax for putting together hierarchical structures. An obvious application is XML, and by extension Ant scripts, which appears to have some major advantages compared to the challenging readability of vanilla Ant. Even more impressive is the SwingBuilder example, which builds a GUI with the minimum of fuss and a complete lack of anonymous inner classes.

Beyond the Builders, there are also compelling chapters on templating HTML and server side Groovy (Groovlets), writing DAOs and DTOs in Groovy to simplify database programming, and a chapter on XML, which even manages to find the space to introduce Groovy for SOAP, XML-RPC and REST web services.

The final part of the book describes some non-core libraries and other applications of Groovy. The chapter on Groovy extensions to JUnit is interesting, although perhaps this is one place where it assumes too little on behalf of the reader. I would have assumed that the average developer sufficiently motivated to pick up a book on Groovy knows enough about unit testing and JUnit that more space could have been given to the advanced topics. Particularly appealing is the idea of testing Java code with dynamically typed Groovy unit tests, which would make mocking and stubbing more palatable; I would have liked more on that subject.

Another noteworthy chapter is the last one, which introduces the web app framework Grails. This has a different style to the other chapters, being a dialogue between two of the authors as they build a simple app. This reader admits to finding it a little bit naff, but it does usefully demonstrate the grails way (which is a lot like Rails).

If you have the slightest interest in Groovy, alternatives to Java on the JVM, or dynamic languages, GinA makes the perfect case for Groovy as a first class integration language for all the bits of Java where you really wish you were working with something like Perl, Ruby or Python. It's well-written, with good examples, clear explanations, and it's relentlessly practical, never forgetting its target audience. It's all the more impressive given lead author Dierk Konig's comment in the preface that English is not his first language. Kudos to him and his co-authors for what they've delivered.

One can only wish that every language had its GinA. Outstanding.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Thorough intro to Groovy. Highly recommended. 2 Jan 2009
Format:Paperback
* The author makes use of assertions to convey how the code behaves which makes learning Groovy with a Java background quite easy.
* It helps if you've used Prototype or jQuery before for things like closures, but the book discusses this very thoroughly too.

Groovy is scripting language that gives Java an overhaul:
* A very terse language by comparison.
* Runs in JVM, so easy to migrate from Java.
* Will be interested in seeing how OSGi will impact Groovy/Grails, since it has it's own mechanism for classloading so Groovy can call Java code or vice-versa. Book made no mention of this.
* Returns to the Smalltalk concept where everything is an object.
* It is reminiscent of Prototype the Ajax library with the way it:
** uses closures for Event handling (no need for awkward inner classes),
** makes use of builders. Builders allow you to do things like write code for Swing GUI's that look reminiscent to JSON. IE: Nested structure of code mirrors nesting of components.
* Enhanced String manipulation. Templating capabilities reminiscent of Velocity/Freemarker or JSP with EL built in.
* Shows how to script conditional logic with Ant builds. No awkward Ant Contrib. Can code call either way. Groovy to Ant or Ant to Groovy. * Enhanced Reflection capabilities through meta object processing allowing duck typing.
** Would make an ideal language to write a code generator in.
* Has first rate handling of collections. SQL (No more boilerplate JDBC code opening & closing resources and doing exception handling. Similar to Springs JDBC template pattern).
* XML manipulation is a doddle compared to Java.
* Book also shows how to use Scriptom to directly manipulate COM objects. Some good food for thought here. But URL's are all broken. Needs to think about .NET these days. COM is like the dark ages... Have posted updates on Manning Forum.
* I agree with B. Esbach. Index is not that great. Was trying to find out what =~ was. If all the symbols were at start it would be better. Found some nested under operators. Had to know parent item to search on... No regex finder method though!

When you add Grails to the mix for doing web development it makes coding a snap. Very similar to AppFuse. Creates code off domain classes that can then be customised. Automates default code generation for prototyping (scaffolding) combining Spring & Hibernate under the covers.
* Shows how easy it is to generate test data too.
Comment | 
Was this review helpful to you?
4 of 5 people found the following review helpful
4.0 out of 5 stars An excellent book for both old and new 25 April 2007
Format:Paperback
The book is well presented, well written; moreover, the examples and instructions WORK. The authors have a very easy-going style, and you find yourself having a lot of fun (my favourite is the Grails example in the back, got me interested enough to rework a new project to use Grails+Groovy instead of my usual Delphi/PHP for web services).

The guys did an incredible job.

My only gripe (and the reason for the 4star rating); the Index is terrible.

Maybe it's just me, but if I'm looking for details on something specific (eg String Objects), I expect to get at least a bit of detail when I turn to the page identified in the index - instead of just finding the word String in italics on the page.

I'm not really familiar with how these things are done, but I would suggest fixing this in the next release of this book.
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges