Groovy Recipes: Greasing the Wheels of Java (Paperback)
暫譯: Groovy 食譜:潤滑 Java 的輪子 (平裝本)

Scott Davis

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2008-03-11
  • 售價: $1,225
  • 貴賓價: 9.5$1,164
  • 語言: 英文
  • 頁數: 250
  • 裝訂: Paperback
  • ISBN: 0978739299
  • ISBN-13: 9780978739294
  • 相關分類: JVM 語言Java 程式語言
  • 立即出貨 (庫存 < 3)

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

商品描述

Description

Groovy and Grails give you the power of the Java platform together with the flexibility and dynamism of a scripting language. Pick one of the many example projects in this book: at first you'll scratch your head and ask, "where's all the code?" Then you'll smile as you realize that Groovy allows you to write code the way you always thought you should. You will never look at Java the same way again.

Groovy Recipes is targeted at the busy Java professional who needs quick solutions to everyday problems. Each recipe shows a concise code example right away. If you need more information, each recipe is explained in plain English.

Nearly every aspect of the development process can be sped up using Groovy. Groovy makes mundane file management tasks like copying and renaming files trivial. Reading and writing XML has never been easier with XmlParsers and XmlBuilders. JDBC gets a fresh makeover. Breathe new life into Arrays, Maps, and Lists with a number of convenience methods. Even Ant gets turbo-charged. You can mix Groovy right into your build.xml, or replace it completely with code from an AntBuilder.

As an added bonus, this book also covers Grails. You'll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file, a web server (Jetty), a database (HSQLDB), Spring, Hibernate, Sitemesh, even Ant. If you're looking for Ajax support, Grails ships with leading libraries like Prototype, script.aculo.us, Yahoo UI, and Dojo. We cover everything from getting a basic application up and running to advanced features such as deploying to other webservers and databases, adding a Captcha, integrating with legacy EJB applications, and even adding a Google Map.

商品描述(中文翻譯)

**描述**

Groovy 和 Grails 給予您 Java 平台的力量,結合了腳本語言的靈活性和動態性。選擇本書中的許多範例專案之一:起初您可能會感到困惑,問自己「所有的程式碼在哪裡?」然後您會微笑,因為您會意識到 Groovy 讓您可以以您一直認為應該的方式來編寫程式碼。您將不會再以同樣的方式看待 Java。

《Groovy 食譜》針對忙碌的 Java 專業人士,提供日常問題的快速解決方案。每個食譜都會立即展示一個簡潔的程式碼範例。如果您需要更多資訊,每個食譜都會用簡單的英文進行解釋。

幾乎開發過程的每個方面都可以使用 Groovy 加速。Groovy 使得像複製和重新命名檔案這樣的平凡檔案管理任務變得微不足道。使用 XmlParsers 和 XmlBuilders 讀取和寫入 XML 從未如此簡單。JDBC 也獲得了全新的改造。透過多種便利方法,為 Arrays、Maps 和 Lists 注入新的活力。甚至 Ant 也得到了增強。您可以將 Groovy 直接混合到您的 build.xml 中,或完全用 AntBuilder 的程式碼替換它。

作為額外的獎勵,本書還涵蓋了 Grails。您會驚訝於從零開始快速建立一個一流的網頁應用程式。Grails 將您所需的一切都包含在一個壓縮檔中,包括一個網頁伺服器(Jetty)、一個資料庫(HSQLDB)、Spring、Hibernate、Sitemesh,甚至 Ant。如果您在尋找 Ajax 支援,Grails 附帶了如 Prototype、script.aculo.us、Yahoo UI 和 Dojo 等領先的函式庫。我們涵蓋了從建立基本應用程式到進階功能的所有內容,例如部署到其他網頁伺服器和資料庫、添加 Captcha、與舊有的 EJB 應用程式整合,甚至添加 Google 地圖。