Groovy and Grails Recipes and over one million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime free trial required. Sign up when you check out. Learn more
More Buying Choices
Have one to sell? Sell yours here
Groovy and Grails Recipes: A Problem-Solution Approach
 
 
Start reading Groovy and Grails Recipes on your Kindle in under a minute.

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

Groovy and Grails Recipes: A Problem-Solution Approach [Paperback]

Bashar Jawad
3.0 out of 5 stars  See all reviews (1 customer review)
RRP: £35.49
Price: £33.72 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.77 (5%)
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
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.
Want guaranteed delivery by Thursday, May 31? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £23.39  
Paperback £33.72  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Plus, get an extra £5 Gift Certificate when you trade in books worth £10 or more before June 30, 2012. Visit the Books Trade-In Store for more details.

Frequently Bought Together

Groovy and Grails Recipes: A Problem-Solution Approach + The Definitive Guide to Grails 2nd Edition (Expert's Voice in Web Development) + Beginning Groovy & Grails: From Novice to Professional (Expert's Voice in Open Source)
Price For All Three: £102.85

Show availability and delivery details

Buy the selected items together

Product details

  • Paperback: 397 pages
  • Publisher: APRESS; 1 edition (1 Dec 2008)
  • Language English
  • ISBN-10: 143021600X
  • ISBN-13: 978-1430216001
  • Product Dimensions: 23.5 x 17.8 x 2.1 cm
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 920,541 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Bashar Abdul-Jawad
Discover books, learn about writers, and more.

Visit Amazon's Bashar Abdul-Jawad Page

Product Description

Product Description

Groovy and Grails Recipes is the busy developer's guide to developing applications in Groovy and Grails. Rather than boring you with theoretical knowledge of “yet another language/framework,” this book delves straight into solving real–life problems in Groovy and Grails using easy–to–understand, well–explained code snippets. Through learning by example, you will be able to pick up on Groovy and Grails quickly and use the book as an essential reference when developing applications.

What you’ll learn

  • Discover elegant and efficient solutions to common programming problems and web development tasks.
  • Get and reuse practical examples for both Groovy language and Grails framework, using the latest stable versions of each.
  • Perform a wide range of development tasks that cover all of the web development tiers, from View Layer to Service Layer to Domain Layer.
  • Access the wide range of available Grails framework plug–ins.
  • Obtain the recipes to integrate Spring, Hibernate, SiteMesh, and more with the Grails web framework.

Who this book is for

This book is for Java and web developers who are interested to learn more about Groovy and/or Grails and are looking for real–life, working examples of how to achieve common programming tasks in Groovy and Grails.

Table of Contents

  1. Getting Started with Groovy
  2. From Java to Groovy
  3. Groovy Data Types and Control Structures
  4. Object-Oriented Groovy
  5. Closures
  6. Builders
  7. Working with Databases
  8. Testing with Groovy
  9. Miscellaneous Recipes
  10. Getting Started with Grails
  11. The Web Layer
  12. The Data Layer
  13. Scaffolding
  14. Security
  15. Testing
  16. Miscellaneous Recipes

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

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

5 star
0
4 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
Format:Paperback
It's worth picking up this book if you want to be a Grails expert and discover some interesting corner cases not covered in other books.
The main failing of this book is the sheer number of gaffs in terms of errors I spotted. Apress could have done with having a few proof readers look over the text before it went to print.
This book is split into two parts:

1) An introduction to Groovy : Chapters 1-9 : 2 star rating.

Ch 1: Getting Started with Groovy : Installation, Groovy Shell, Console, Eclipse, IntelliJ (fails to mention chgmod for bin folder for UNIX flavours P9)
Ch 2: From Java to Groovy
Ch 3: Groovy data types and Control Structures
Ch 4: Object Orientated Groovy : Incorrectly mentions Groovy doesn't support multiple inheritance on P76: Luke Daley wrote the Injecto library used in GLDAPO to facilitate this. This appears to have gone walkabout on Luke's site. Otherwise I'd include a link. It's on the internet archive though (Wayback Machine). Since Groovy 1.6 there has been the @mixin annotation. Mixin got a mention in GroovyMag Apr 2009 (What's new in Groovy 1.6) and Dec 2009 (Groovy MetaObject Programming) issues.
Ch 5: Closures
Ch 6: Builders
Ch 7: Working with databases : - Best Groovy chapter. USP* for buying book
Ch 8: Testing with Groovy : - This chapter is a howler. The main reason for loss of a star.
Section 8-2 P158. Bubblesort routine. If you do a for loop in Groovy with a range of the format for (n in m..<n), if m contains 1 and n contains 0, then the loop will execute once. So the test case would not work for an empty list or a list with one entry. This is not the same as a conventional Java for loop. for (int i=1; i<0;i++) which will never execute.
Ch 9: Miscellaneous Recipes :

There are far better Groovy guides out there. I often felt the author failed to use the best syntax or omitted things that you can do in Groovy. That combined with the number of typos and errors combined accounts or the low rating for the Groovy half of the book.
Scott Davis Groovy Recipes is far superior as a Getting started guide to Groovy.
Groovy in Action if you prefer a reference to a recipe book. GinA is more complete. (The second edition will be out later this year).
I think the Scott's Recipe book is one you'd refer to more often.

2) An introduction to Grails : Chapters 10-16 : 4 star rating.

Ch 10: Installing Grails : Eclipse / IntelliJ integration (both now a bit dated what with Spring Tool Suite and IntelliJ 8 & 9 now being out)
Ch 11: Web layer. Nice architectural diagram. The Grails section of the book is presented in a rather peculiar sequence. The author decided to showcase the view first (GSP's and Controllers).
In order to get a prototype of a Forum app up and running the author saves all the data off to the session first.
This is like swimming against the tide with Grails, since Grails facilitates automation of this stuff with scaffolding that you can later adapt by converting the scaffolding from dynamic (generated on the fly in memory) to static (generates a source you can modify).
Ch12: Covers the data layer and all things GORM. This is a good chapter, with the exception of Section 12-7. A mistake on P276. The like statements needed percent signs to make them work as a contains. Minor issue. Should have emphasised the need for Serialized on Composite keys in text - it's in example...
Ch13: Scaffolding. A really nice chapter. Would have thought it better to put ch 11 after 13.
This is one of the books USP's. Covers how to change templates and add property editors to render a rating property in a Domain class. Like the Amazon five star review using a Rich UI plugin tag. It's a bit rough round the edges, but an excellent intro.
Ch14: Security The usual stuff on XSS & protecting against SQL injection & restricting Request Methods on actions (so you can't delete a domain instance with a hacked URL), Codecs and Filters. Rounds out with best part (a USP*) on Acegi (Spring) Security (a brief overview is provided to get you started) and a discussion on OpenId.
Ch15: On Testing Grails apps. Really nice chapter. Unit testing Controllers - mocking operations. Integration Testing. Testing Taglibs (could have done with identifying folder these go into), Domain Classes and Functional Testing with Canoo Web Test. Mentions the Firefox plug-in to record these.
Ch16: Miscellaneous Recipes. Highlights for me were Using Grails with Maven 2 and Apache CXF, the successor to XFire is showcased for doing SOAP web services. It's handy to use Maven here for dependency resolution. A huge number of jars are required for this.
Services, REST, logging and tweaking web.xml and spring bean configuration (via XML & GroovyBuilders) round out the chapter. Log4j pattern matching could have done with a table of what the codes meant. Lucky I have a copy of APress's Pro Apache Log4J!

Overall this part of the book isn't one I'd recommend over Jon Dickinson's newer Grails 1.1 book by PACKT for Depth of coverage - although this is easier to follow.
It goes into slightly more detail than Dave Klein's Quick Start book.
The author doesn't always show just the best way of doing things. So this is sometimes handy if you want a quick and dirty fix and broadening your Groovy & Grails skills which it undoubtably will do.

As I said at the start, it's worth picking up this book if you want to be a Grails expert and discover some interesting corner cases not covered in other books.
* USP = Unique Selling Point
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  9 reviews
5 of 5 people found the following review helpful
Good introduction into Groovy and Grails 14 Jan 2009
By Lars Vogel - Published on Amazon.com
Format:Paperback
Groovy and Grails Recipes is an good introduction into programming with Groovy and Grails.

Personally I find the title misleading; from a "Recipes" book I would general expect typical solutions for complex problems. This book is an introduction into Groovy and Grails and not necessary a recipes book which you uses for specific problems.

Despite this the book can be used to start Groovy and Grails. It is devided into two parts (Groovy Page 3 -203) and Grails (Page 207 - 376). The Groovy part covers the basic concepts of the language, describes builders, connection with databases, testing and some handling of XML.

The Grails part covers the the creation of controllers, GSP, domain models, security and testing.
3 of 3 people found the following review helpful
Sweet and to the point 25 Dec 2008
By M. Hirzalla - Published on Amazon.com
Format:Paperback
I bought this book as a first Groovy and Grails reference since I am already a Java programmer and I was not disappointed. It served exactly what I needed it for through a very easy to follow structure and good organization.

The author does an excellent job in explaining ideas in simple terms and great examples. The passion of the author clearly shows in the text and in the overall style of the book.

I think the book is oriented towards those who understand programming in general and have some Java knowledge in particular. If you are totally new to programming, I would recommend another book in addition to this one where programming principles are explained. This book will always have a place on my desk since I can always refer to short snippets of useful code and solutions. I think the online version of the book is great as well since you can find things faster.

Overall, a great book and fills a gap in the available books about Groovy and Grails.
3 of 3 people found the following review helpful
Great book to start working with groovy and grails 15 Dec 2008
By Steven Shucker - Published on Amazon.com
Format:Paperback
This is a great book to dive into groovy and grails with. It's written for someone familiar with web development but no experience with groovy or grails. Ignore the publisher's roadmap on the back cover - this is the first book to read, not the second. There's some comparison with traditional java development, but you could pick up this book coming from almost any language.

I got this book after working with grails for a month or so. Grails is an easy environment to learn (especially since I already knew hibernate and spring), but I still picked up a lot from going back and reading - especially the groovy section. The whole first half of the book is dedicated to groovy before even touching on grails. I would have preferred some more coverage of how easy/powerful ajax is, but the thorough coverage of closures and builders more than makes up for it.
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


Look for similar items by subject


Feedback


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