The rise of Ruby on Rails has signified a huge shift in how we build web applications today; it is a fantastic framework with a growing community. There is, however, space for another such framework that integrates seamlessly with Java. Thousands of companies have invested in Java, and these same companies are losing out on the benefits of a Rails–like framework. Enter Grails. Grails is not just a Rails clone. It aims to provide a Rails–like environment that is more familiar to Java developers and employs idioms that Java developers are comfortable using, making the adjustment in mentality to a dynamic framework less of a jump. The concepts within Grails, like interceptors, tag libs, and Groovy Server Pages (GSP), make those in the Java community feel right at home. Grails' foundation is on solid open source technologies such as Spring, Hibernate, and SiteMesh, which gives it even more potential in the Java Spring provides powerful inversion of control and MVC, Hibernate brings a stable, mature object relational mapping technology with the ability to integrate with legacy systems, and SiteMesh handles flexible layout control and page decoration. Grails complements these with additional features that take advantage of the coding–by–convention paradigm such as dynamic tag libraries, Grails object relational mapping, Groovy Server Pages, and scaffolding. Graeme Rocher , Grails lead and founder, and Jeff Brown bring you completely up–to–date with their authoritative and fully comprehensive guide to the Grails framework. You'll get to know all the core features, services, and Grails extensions via plug–ins, and understand the roles that Groovy and Grails are playing in the changing Web.
Ein der größten Probleme von Grails ist der Mangel an relevante aktuelle Literatur. Im Gegensatz zu anderen beliebten Frameworks wie z.B Ruby on Rails gibt es nur 7 Bücher über Grails und 3 über Groovy. Allerdings aus diesem 7 nur 3 sind nennenswert:
- Grails in action (gerade erschienen) - Beginning Groovy and Grails - The Definitive Guide to Grails (Second Edition)
Grails in Action ist noch zu neu aber der Manning Verlag ist immer ein gutes Qualitätssiegel und der Autor ist sehr bekannt in der Grails-Community. Weiterhin ist BGG zwar ein gutes Buch aber eine zu kurze Einführung zu dem Framework. Die anderen bringen nichts neues und sind sogar schon veraltet. Deswegen kann ich sofort sagen, wenn man sich ein Buch über Grails zulegen möchte, welches alle mögliche Themen abdeckt und sowohl für Einsteiger, Java-Umsteiger oder erfahrene Grails-Entwickler geeignet ist, sollte The Definitive Guide to Grails sein.
Das Buch ist sehr schnell lesbar, Graeme Rocher - der Erfinder vom Grails- kann alles ausführlich aber gleichzeitig verstädnlich erklären (was häufig ein Problem bei Programmierungsbüchern ist). Dank dem Buch habe ich Grails gelernt und schon für einige Projekte eingesetzt.
Vielleicht wäre der einzige Kritikpunkt, dass es zu wenig über Groovy gesagt wird. Allerdings ist die Online-Doku von Groovy sehr gut und die Java-Ähnlichkeit macht den Bedarf nach einem auführlichen Groovy-Kapitel überflüßig.
Good introduction to Grails with all aspects of the system covered in some degree. It was written 5 years ago, and that's a lifetime in development years, so check for Grails updates elsewhere. Written by the founder of Grails who is currently a lead developer at SpringSource.
As usual, too low information density for my liking and slightly too much noise but nevertheless a useful intro to Grails. Now I need to read the second edition.