Groovy Programming: An Introduction for Java Developers (Paperback)
暫譯: Groovy 程式設計:Java 開發者入門 (平裝本)

Kenneth Barclay, John Savage

  • 出版商: Morgan Kaufmann
  • 出版日期: 2006-12-01
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0123725070
  • ISBN-13: 9780123725073
  • 相關分類: JVM 語言Java 程式語言
  • 立即出貨(限量) (庫存=1)

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

商品描述

Description

Groovy Programming is an introduction to the Java-based scripting language Groovy. Groovy has much in common with popular scripting languages such as Perl, Python, and Ruby, but is written in a Java-like syntax. And, unlike these other languages, Groovy is sanctioned by the Java community for use on the Java platform. Since it is based on Java, applications written in Groovy can make full use of the Java Application Programmer Interfaces (APIs). This means Groovy can integrate seamlessly with applications written in Java, while avoiding the complexities of the full Java language. This bare-bones structure also means Groovy can be used as an introduction to Java and to programming in general. Its simpler constructions and modern origins make it ideal as a first language and for introducing principles such as object-oriented programming.
This book introduces all the major aspects of Groovy development and emphasizes Groovy's potential as a learning tool. Case studies and exercises are included, along with numerous programming examples. The book begins assuming only a general familiarity with Java programming, and progresses to discuss advanced topics such as GUI builders, Groovlets, Unit Testing, and Groovy SQL.

 

Table of Contents

Preface; Chapter 1: Groovy; Chapter 2: Numbers and Expressions; Chapter 3: Strings and Regular Expressions; Chapter 4: Lists, Maps and Ranges; Chapter 5: Simple Input and Output; Chapter 6: Case Study: A Library Application (Modelling); Chapter 7: Methods; Chapter 8: Flow of Control; Chapter 9: Closures; Chapter 10: Files; Chapter 11: Case Study: A Library Application (Methods); Chapter 12: Classes; Chapter 13: Case Study: A Library Application (Objects); Chapter 14: Specialization; Chapter 15: Unit Testing (JUnit); Chapter 16: Case Study: A Library Application (Specialization); Chapter 17: Persistence; Chapter 18: Case Study: A Library Application (Persistence); Chapter 19: XML Builders and Parsers; Chapter 20: GUI Builders; Chapter 21: Template Engines; Chapter 22: Case Study: A Library Application (GUI); Chapter 23: Server Side Programming; Chapter 24: Case Study: A Library Application (Web); Chapter 25: Epilogue; Bibliography; Appendix A: Software Distribution; Appendix B: Groovy; Appendix C: More on Numbers and Expressions; Appendix D: More on Strings and Regular Expressions; Appendix E: More on Lists, Maps and Ranges; Appendix F: More on Simple Input and Output; Appendix G: More on Methods; Appendix H: More on Closures; Appendix I: More on Classes; Appendix J: Advanced Closures; Appendix K: More on Builders; Appendix L: More on GUI Builders; Index

商品描述(中文翻譯)

**描述**
**Groovy 程式設計** 是一本介紹基於 Java 的腳本語言 Groovy 的書籍。Groovy 與流行的腳本語言如 Perl、Python 和 Ruby 有許多相似之處,但其語法類似於 Java。與這些其他語言不同的是,Groovy 得到了 Java 社群的認可,可以在 Java 平台上使用。由於它是基於 Java 的,因此用 Groovy 編寫的應用程式可以充分利用 Java 應用程式介面(APIs)。這意味著 Groovy 可以與用 Java 編寫的應用程式無縫整合,同時避免了完整 Java 語言的複雜性。這種簡化的結構也意味著 Groovy 可以作為學習 Java 和程式設計的一個入門語言。其簡單的結構和現代的起源使其成為理想的第一語言,並引入物件導向程式設計等原則。
本書介紹了 Groovy 開發的所有主要方面,並強調了 Groovy 作為學習工具的潛力。書中包含案例研究和練習,以及眾多程式範例。本書假設讀者對 Java 程式設計有一般的熟悉程度,並逐步討論進階主題,如 GUI 建構器、Groovlets、單元測試和 Groovy SQL。

**目錄**
前言;第 1 章:Groovy;第 2 章:數字和表達式;第 3 章:字串和正則表達式;第 4 章:列表、映射和範圍;第 5 章:簡單的輸入和輸出;第 6 章:案例研究:圖書館應用程式(建模);第 7 章:方法;第 8 章:控制流程;第 9 章:閉包;第 10 章:檔案;第 11 章:案例研究:圖書館應用程式(方法);第 12 章:類別;第 13 章:案例研究:圖書館應用程式(物件);第 14 章:專業化;第 15 章:單元測試(JUnit);第 16 章:案例研究:圖書館應用程式(專業化);第 17 章:持久性;第 18 章:案例研究:圖書館應用程式(持久性);第 19 章:XML 建構器和解析器;第 20 章:GUI 建構器;第 21 章:模板引擎;第 22 章:案例研究:圖書館應用程式(GUI);第 23 章:伺服器端程式設計;第 24 章:案例研究:圖書館應用程式(網頁);第 25 章:後記;參考文獻;附錄 A:軟體發佈;附錄 B:Groovy;附錄 C:更多數字和表達式;附錄 D:更多字串和正則表達式;附錄 E:更多列表、映射和範圍;附錄 F:更多簡單的輸入和輸出;附錄 G:更多方法;附錄 H:更多閉包;附錄 I:更多類別;附錄 J:進階閉包;附錄 K:更多建構器;附錄 L:更多 GUI 建構器;索引