Groovy Recipes: Greasing the Wheels of Java

  Author:    Scott Davis
  ISBN:    0978739299
  Sales Rank:    63443
  Published:    2008-03-11
  Publisher:    Pragmatic Bookshelf
  # Pages:    250
  Binding:    Paperback
  Avg. Rating:    5.0 based on 15 reviews
  Used Offers:    8 from $19.54
  Amazon Price:    $23.07
  (Data above last updated:  2008-11-12 06:50:03 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Groovy Recipes: Greasing the Wheels of Java
  
Each recipe in Groovy Recipes begins with a concise code example for a quick start, followed by in-depth explanation in plain English. These recipes will get you to-to-speed in a Groovy environment quickly.

You'll see how to speed up nearly every aspect of the development process using Groovy. Groovy makes mundane file management tasks like copying and renaming files trivial. Reading and writing XML has never been easier with XmlParsers and XmlBuilders. Breathe new life into Arrays, Maps, and Lists with a number of convenience methods. 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.

As an added bonus, this book also covers Grails. You'll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file⎯a web server (Jetty), a database (HSQLDB), Spring, Hibernate, even a Groovy version of Ant called GANT. We cover everything from getting a basic website in place to advanced features that take you beyond HTML into the world of Web Services: REST, JSON, Atom, Podcasting, and much much more.

                  Reader Reviews 1 - 14 of 14                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
05-23-08 5 (NA)
(Hide Review...)  Great book for getting into Groovy
Reviewer Permalink
Groovy Recipes is an excellent introductory book into Groovy programming. The first few chapters give clear instructions for learning how to use Groovy. The remaining chapters give clear instructions for using some of Groovy's cool features: using Groovy with Java, Grails programming, metaprogramming, working with XML, File manipulation, and web services).
Much akin to the fun and energetic manner that Davis speaks in his presentations he writes Groovy Recipes.
If you haven't heard him speak(and even if you have), do a quick Google Video search for Scott Davis Groovy and you'll find a presentation or two of his. I recommend them.
One technique that I found especially useful is how Davis compared performing a simple task in the Java world, and then showed how it could be done in the Groovy world. Of course, it's easier in the groovy world for all the examples. It's nice to see areas where we can take advantage of Groovy's strengths.
Groovy Recipes has enough content to sit on an experienced Groovy developer's book shelf, but the more novice Groovy people will find more value in Groovy Recipes.
(Review Data Last Updated: 2008-11-12 06:52:13 EST)
05-19-08 3 0\1
(Hide Review...)  Some nice Recipes
Reviewer Permalink
It is a nice little book to have by your computer, if you are working with Groovy. I give this book 3 star review because this could have done without first 5 chapters. I think Groovy is a great language, and in my humble opinion it is more useful to a Java programmer, then Ruby, however the quality of Ruby books is far superior to books available in Groovy.
(Review Data Last Updated: 2008-05-24 05:16:57 EST)
05-09-08 5 (NA)
(Hide Review...)  Want to pick up Groovy quick? Get this.
Reviewer Permalink
So you're in a hurry to pick up Groovy, and you're not a big fan of books that while informative, fill you with more language theory than useful knowledge. This buck, while around 240 pages in length, manages to take you from Hello World! to Web Service programming and Grails rapid development in a short period. If you know Java, you'll feel right at home with Groovy, and will feel good about your skills after you're done reading this book.
(Review Data Last Updated: 2008-05-20 04:50:12 EST)
05-09-08 5 (NA)
(Hide Review...)  Groovy Baby Very Groovy!!
Reviewer Permalink
'Groovy Recipes: Greasing the Wheels of Java' is a typical Pragmatic release in that it is written well, free of bells and whistles, and jam full of relevant and useful information. There is 250+ pages of information here on how to use and implement Groovy, the wonderful Java addition that makes programming easier and more exciting for any and all developers!

Content is spread over 12 chapters:

01. Intro
02. Getting Started
03. New to Groovy
04. Java + Groovy
05. Command Line Groovy
06. File Tricks
07. XML Parsing
08. Writing XML
09. Web Services
10. Metaprogramming
11. Grails
12. Grails + Web Services

As can be seen by the TOC, this is a book for programmers of today living in a networked world. The focus is on writing efficient, good code that is fast and useful. This book is extremely beneficial to any and all Groovy developers that want to learn better and faster this wonderful technology.

***** RECOMMENDED
(Review Data Last Updated: 2008-05-20 04:50:12 EST)
05-08-08 5 (NA)
(Hide Review...)  A top pick for any Java library.
Reviewer Permalink
Computer libraries catering to busy Java professionals will find GROOVY RECIPES a winner, offering quick, at-a-glance solutions to everyday, common Java issues. Each 'recipe' begins with a quick-start code example followed by a clear and easy explanation. The idea is to get up to speed quickly, not become bogged down in theory and detail. Arrays, Maps, Grails and more applications receive quick, easy referencing under Scott Davis hand, making GROOVY RECIPES a top pick for any Java library.

Diane C. Donovan
California Bookwatch
(Review Data Last Updated: 2008-05-20 04:50:12 EST)
04-29-08 5 (NA)
(Hide Review...)  The K&R of the Groovy World
Reviewer Permalink
(Disclaimer: I know Scott Davis, but don't hold that against him)
Groovy Recipes does what the title says: gives you recipes for how to get stuff done in Groovy. But that's only part of the value of this book. It also teaches how to become an idiomatic Groovy developer. And that's incredibly important. The classic book on C, the K&R book The C Programming Language, did 2 things for C. First and foremost, it taught developers about the c programming language. But the second more subtle thing it did was to teach developers how to be idiomatic C programmers. I can remember reading the book and marveling at the conciseness of the code, which had as much to do with the way the language was used as the language itself.
Anytime you learn a new language, you have 2 battles: first, learn the syntax (which is the easiest part -- it's just details of how familiar concepts are expressed in the new syntax). The second battle is the more important one: how to become an idiomatic programmer in that language. Developers new to a language tend to write new code just like code from their former language, using new syntax. Only when they've had time to steep in the better, more elegant ways of expressing yourself in a new language do they truly become proficient. That's what Groovy Recipes does for Groovy developers. It shows not just the syntax, but how to idiomatically use that syntax to become proficient with Groovy. Groovy is a much more powerful language than Java. While you can take a Java source file and rename it with a groovy extension and have it still work, you're writing Groovy code like a Java developer. After you've seen and used Groovy for a while, you start writing code like a Groovy developer. The Groovy Recipes book is two things: recipes for using Groovy to solve problems. But, more importantly, it teaches idiomatic Groovy programming, which is the long-term benefit of the book. It is an excellent book, well written and highly informative.
(Review Data Last Updated: 2008-05-08 04:46:07 EST)
04-29-08 5 (NA)
(Hide Review...)  Great reference book
Reviewer Permalink
For me, the best part of the whole book was Chapter 3: "New to Groovy". The "New to Groovy" chapter essential lists out all the Groovy answers to "why Java can be painful and how Groovy soothes". I liked the very short "here's how you do X in Groovy" format - and any Java developer immediately can see the benefits to adding Groovy to their development arsenal.

However, the part of the book that helped (more accurately, is helping) me get Groovy integrated into my projects at work is the information about "Java and Groovy Integration". The projects build on existing internal and external Java APIs; so the information here was very helpful in proving Groovy will not interfere with the current investment in Java.

This is definately put together as a reference book; flipping through the chapters and reading what looks interesting hasn't disappointed me yet.
(Review Data Last Updated: 2008-05-08 04:46:07 EST)
04-07-08 5 (NA)
(Hide Review...)  Incredible Groovy Reference
Reviewer Permalink
For those of you who haven't heard of Groovy, Groovy is a scripting language that is built on top of Java. Since it is written on top of Java, a Java developer can pick up pick Groovy in a snap.

About a year ago, I was able to hear Scott Davis give an incredible talk on Groovy. When I found out that he was coming out with a book on Groovy, I couldn't wait to read it. His book covers the Groovy language basics in a clear and concise manner with plenty of examples that you can use in your own code to solve a problem. In addition to providing every day solutions to common problems, this book has one of the best explanations I have seen of how Groovy handles private variables. After covering the basics, his book includes loads of useful "Groovy Recipes" such as how to compile your Java Classes with Groovy classes, how to execute commands easily on the command line, other useful file tricks, and too many other useful recipes to mention. I learned a great deal of what I can do with Groovy by reading this book.

This book is a must have for any Groovy developer.
(Review Data Last Updated: 2008-04-29 05:28:43 EST)
03-24-08 5 (NA)
(Hide Review...)  Concise and right to the point
Reviewer Permalink
If you need a quick reference on how to do common things in Groovy, get this book. This is like "Quick Reference Handbook" (QRH) that each air crew of any major airline has.
(Review Data Last Updated: 2008-04-07 16:58:14 EST)
03-08-08 5 (NA)
(Hide Review...)  An agile reference for agile learning...
Reviewer Permalink
Disclosure: I was a technical reviewer of this book.

Scott's approach to the book is very agile, in that, after a brief discussion of the Groovy language, it essentially answers lots of very specific questions regarding "How to..." in Groovy. Each section starts with a code snippet that is designed to be copied directly into your code, letting you quickly solve a problem (e.g. parsing XMl documents) and move on. The detail in these examples ensures that this book will remain useful for some time to come. Along with the toolset you get, these examples really demonstrate the power of the Groovy language and provide an excellent way to learn the language.

While perhaps not as all encompassing a primer on Groovy as GINA, Scott does a good job, in the early part of the book, presenting most of the language's features in sufficient depth that I am comfortable suggesting this as your first book on Groovy. And once the basics are covered, Scott goes on to present some excellent examples of how to use idiomatic Groovy to solve common programming problems, including file I/O, XML processing, Web Services, basic metaprogramming, and a nice introduction to Grails, the web framework built with Groovy. After the Grails intro, Scott presents some nice examples of how to use Grails in a similar manner to his treatment of Groovy.

Highly recommended!
(Review Data Last Updated: 2008-03-25 21:13:40 EST)
02-27-08 5 (NA)
(Hide Review...)  outstanding and indispensable
Reviewer Permalink
I absolutely love this book. I have no idea how it would read for a newbie, but as a developer well-versed in Java and very familiar with Groovy, this is an incredibly empowering book.

I own and have studied, and liked, 4 other Groovy books, but since I am not using it full-time yet, I tend to forget just the stuff I would like to have at my fingertips just when I need it. Reading the other books is kind of like looking at a new car in the showroom: you see the features, but not much more. This book is like taking a test drive on a race course: you immediately experience the power of using it like it should be used.

The subtitle for this book could be: How to do incredibly useful things *immediately* with Groovy. As the author says in chapter 6, he's not a sys admin, but Groovy makes it almost enjoyable to do all the sys tasks a developer has to handle all the time.

I cannot recommend this book highly enough. Will it teach you Groovy from the beginning, will it teach you the internals? I don't know, all I do know is that each page tells you how to do something you need to do, how to do it quickly and easily, and it tells you in a way that clarifies a lot of what I have read in other books.

This is one of the most useful books I have ever read since K&R.


(Review Data Last Updated: 2008-03-09 13:30:40 EST)
02-24-08 5 (NA)
(Hide Review...)  Like having a well-trained team of Groovy ninjas ready to take on any task
Reviewer Permalink
Scott has clearly assembled *the* go-to guide for turning Groovy into every Java developer's perfect utility knife. Whether you need to quickly parse an Atom feed, serve up an Excel spreadsheet from your Grails app, or create a tarball on the fly, this book will show you how. In true Groovy style, Scott does away with all unnecessary ceremony and gets right down to business. In almost every section, the very first thing you see is code - the recipe for solving to the problem at hand - and if you want to stick around for the clear and informative explanation, well, that's strictly optional.
(Review Data Last Updated: 2008-02-27 18:36:20 EST)
02-09-08 5 0\1
(Hide Review...)  An Enjoyable Way to Learn Groovy
Reviewer Permalink
The Good: I really like the style of this book and that it shows you how to get things done quickly with code samples. It's very no-nonsense in the fact that it contains a lot of code and howtos. I really like Scott's writing style and found this book to be a real page-turner. This may have something to do with my eagerness to learn Groovy more than anything. The most refreshing part about this book is how up-to-date it is. Because it's a Beta, it seems to contain the most up-to-date information on Groovy and Grails. After reading Getting Started with Grails and working with it for a couple weeks, the first Grails chapter seemed a little basic - but that's likely because I've figured out how to mix all those recipes already. The Grails and Web Services chapter definitely has some interesting content, but I've rarely had a need to implement these recipes in a real-world environment. I'd rather see recipes on testing the UI (with the WebTest plugin) and how to use GWT and Flex with Grails. If SOUIs are the way of the feature, this is a must.

The Bad: Not much information on testing with GroovyTestCase, mock objects or implementing Security. If one of Groovy's sweet spots is testing, why isn't there more coverage on this topic? The Java and Groovy integration chapter is especially good, but there's very limited information on Ant and Maven. It's likely the websites provide sufficient documentation, but the Maven section only fills 5 lines on an otherwise blank page. The biggest problem I have with this book is I really like the recipes writing style and would love to see more tips and tricks. At 250 pages, I was able to finish this book with pleasure in a few days.
(Review Data Last Updated: 2008-02-24 19:15:13 EST)
01-16-08 5 1\2
(Hide Review...)  Indispensible source of Groovy tips and techniques
Reviewer Permalink
Learning the syntax of a language is one thing; learning how to use it productively is something else entirely. While nothing can replace Dierk Koenig et al's Groovy in Action, that book is only the first step to becoming a productive Groovy developer. Scott Davis here provides short, practical examples of how to incorporate Groovy into your everyday Java work in a wide variety of ways.

Like most recipes books, the book works best for me as a reference. Whenever I'm working on a Groovy application and need to know the "grooviest" way to accomplish a particular task, I can quickly find a sample here and use it.

One of the best features of Groovy is that it provides a very easy learning curve for Java developers. The samples in this book show you how to gradually add Groovy snippets to existing Java systems, as well as how to build those systems in a Groovy fashion from the start. When you add in Scott's customary easy-going style, the result is a book that I expect to be a major seller in the community for years to come.
(Review Data Last Updated: 2008-02-10 01:14:48 EST)
  
                  Reader Reviews 1 - 14 of 14                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)