Programming Groovy 2: Dynamic Productivity for the Java Developer (Pragmatic Bookshelf) ペーパーバック – イラスト付き, 2013/7/25
Groovy brings you the best of both worlds: a flexible, highly productive, agile, dynamic language that runs on the rich framework of the Java Platform. Groovy preserves the Java semantics and extends the JDK to give you true dynamic language capabilities. Programming Groovy 2 will help you, the experienced Java developer, learn and take advantage of the latest version of this rich dynamic language. You'll go from the basics of Groovy to the latest advances in the language, including options for type checking, tail-call and memoization optimizations, compile time metaprogramming, and fluent interfaces to create DSLs.
You don't have to leave the rich Java Platform to take advantage of Groovy. Groovy preserves Java's semantics and extends the JDK, so programming in Groovy feels like the Java language has been augmented; it's like working with a lighter, more elegant Java. If you're an experienced Java developer who wants to learn how Groovy works, you'll find exactly what you need in this book.
You'll start with the fundamentals of programming in Groovy and how it works with Java, and then you'll explore advanced concepts such as unit testing with mock objects, using Builders, working with databases and XML, and creating DSLs. You'll master Groovy's powerful yet complex run-time and compile-time metaprogramming features.
Much has evolved in the Groovy language since the publication of the first edition of Programming Groovy. Programming Groovy 2 will help you learn and apply Groovy's new features. Creating DSLs is easier now, and Groovy's already-powerful metaprogramming facilities have improved even more. You'll see how to work with closures, including tail call optimization and memoization. The book also covers Groovy's new static compilation feature.
Whether you're learning the basics of the language or interested in getting proficient with the new features, Programming Groovy 2 has you covered.
What You Need
To work on the examples in the book you need Groovy 2.0.5 and Java JDK 5 or higher.
Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., and an adjunct faculty at the University of Houston. He has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia, and is a regularly invited speaker at several international conferences. He's (co)author of multiple books, including the 2007 Jolt Productivity award winning book Practices of an Agile Developer.
- 出版社 : Pragmatic Bookshelf; 第1版 (2013/7/25)
- 発売日 : 2013/7/25
- 言語 : 英語
- ペーパーバック : 370ページ
- ISBN-10 : 1937785300
- ISBN-13 : 978-1937785307
- 寸法 : 19.05 x 1.96 x 23.5 cm
Digno de menção os capítulos referentes as DSL(Domain-specific languages) aos builders. Mesmo os experientes com a linguagem irão encontrar farto material de estudo e técnicas bastante avançadas de metaprogramming outro tópico relevante e que vale a pena mencionar.
Para mim, foi uma grata surpresa essa obra que viaja do básico até praticas bastante refinadas do Groovy e programação com muita maestria e didática.
Achei pequenos erros nos exemplos mas nem isso me fez tirar uma estrela da aliviação pois no resto o ebook, no meu ponto de vista, é impecável.
Parabéns ao autor, livro altamente recomendado mesmo que você não queira aprender sobre Groovy mas esteja interessado em tópicos como DSL e metaprogramming.
As a disclaimer, I have tweeted directly with him, as we have a difference of opinion regarding the viability of functional languages.
However the last time I tried to tweet Venkat, I found he had unsubscribed from my tweet account, or did something that made it impossible to tweet him. Probably for a good reason.
However this book is excellent, and since Groovy is the fastest growing general purpose programming language, I highly recommend it. If you've been stuck coding in C# or Java, you're going to love Groovy.
And if you are a member of a local user group, see if you can get Venkat to give a talk. I saw both Venkat and Oracle give a "Java next version" talk, and Venkat's was 100% better.
I really enjoyed the humor in the book and the analogies by the author. At times I busted out laughing while reading this book. For example did you know an XML document is like a puppy. It's cute and fun to play with when its little, but when it grows up and gets bigger, its annoying. That's spot on and the authors humor is laced throughout the book.
Very good read and I know enough about Groovy from this book to get started.