Programming Groovy 2: Dynamic Productivity for the Java Developer, 2/e (Paperback)

Venkat Subramaniam

買這商品的人也買了...

商品描述

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.

商品描述(中文翻譯)

Groovy帶給您最佳的兩個世界:一個靈活、高效、敏捷、動態的語言,運行在Java平台豐富的框架上。Groovy保留了Java的語義並擴展了JDK,為您提供真正的動態語言能力。《Programming Groovy 2》將幫助您,作為經驗豐富的Java開發人員,學習並利用這個豐富的動態語言的最新版本。您將從Groovy的基礎知識到語言的最新進展,包括類型檢查、尾調用和備忘錄優化、編譯時元編程和流暢接口來創建DSL等選項。

您無需離開豐富的Java平台就能利用Groovy。Groovy保留了Java的語義並擴展了JDK,因此在Groovy中編程感覺就像增強了Java語言一樣;就像使用一個更輕巧、更優雅的Java。如果您是一位經驗豐富的Java開發人員,想要了解Groovy的工作原理,這本書將提供您所需的一切。

您將從Groovy編程的基礎知識和它與Java的配合方式開始,然後探索單元測試與模擬對象、使用建造者、處理數據庫和XML以及創建DSL等高級概念。您將掌握Groovy強大而複雜的運行時和編譯時元編程功能。

自《Programming Groovy》第一版出版以來,Groovy語言已經有了很多進展。《Programming Groovy 2》將幫助您學習和應用Groovy的新功能。現在創建DSL更加容易,Groovy已經強大的元編程功能更加完善。您將了解如何使用閉包,包括尾調用優化和備忘錄。本書還介紹了Groovy的新靜態編譯功能。

無論您是學習語言的基礎知識還是對新功能感興趣,《Programming Groovy 2》都能滿足您的需求。

您需要Groovy 2.0.5和Java JDK 5或更高版本來執行本書中的示例。