Reviews: Getting Started with Grails, Rails for Java Developers and Groovy Recipes
Join the DZone community and get the full member experience.Join For Free
two weeks ago, i mentioned a number of books i was hoping to read to get up to speed on rails and grails quickly . over the last two weeks, i was able to polish off three of these (listed in order of reading):
below are short reviews of each book.
getting started with grails
the good: this is the perfect book to learn the basics of grails quickly. at 133 pages, i was able to read this entire book in one sitting. the first couple chapters are very introductory, but likely necessary for beginners. the good news is you start writing your first grails application on page 7 (chapter 3).
chapter 4 (improving the user experience) is good in that it shows you how to do warning, error and confirmation messages. this is something often overlooked in web frameworks and rails and its "flash" concept seem to have made it important again. i remember way back in 2003 when i complained about frameworks not allowing messages to live through a redirect - everyone said it was something you didn't need. now it's a standard part of most web frameworks.
the bad: uses grails 0.3.1. this is understandable since the book was written in 2006 and published in 2007. also, it doesn't cover testing that much (5 pages). if testing is so easy with groovy and if grails has canoo webtest support built-in, it should be shown imo.
rails for java developers
the good: this was an interesting book for me because it uses appfuse for many of its java-based examples. unfortunately, it uses the struts 1.x version which is cumbersome and verbose as far as java web frameworks go. the most impressive part of this book is how justin and stu do an excellent job of walking the line and not insulting java nor developers using it. they provide an easy to understand view of rails from a java developer's perspective. there's detailed chapters on activerecord (as it compares to hibernate), activecontroller (compared to struts) and activeview (compared to jsp). this book has excellent chapters on testing, automating the development process and security.
the bad: this book was published over a year ago, so it uses an older version of rails. this means some commands don't work if you're using rails 2.0. it's also a little light on ruby, so i didn't feel i learned as much about the language as i was hoping to. that's understandable as it's more of a rails book than a ruby book.
(beta from jan 3, 2008)
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 the easiest to read of the three. 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.
now i'm reading jruby on rails (apress) and programming groovy (pragmatic programmers). following that, i'll be perusing dead-tree versions of struts 2 web 2.0 projects (apress), prototype and script.aculo.us (pragmatics) and laszlo in action (manning). if any publishers want to send me books on gwt and flex, i'd be happy to add them to my list. ;-)
Opinions expressed by DZone contributors are their own.