Groovy Programming: An Introduction for Java Developers

  • 5h 30m
  • John Savage, Kenneth Barclay
  • Elsevier Science and Technology Books, Inc.
  • 2007

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.

  • The first comprehensive book on Groovy programming that shows how writing applications and scripts for the Java platform is fast and easy
  • Written by leading software engineers and acclaimed computing instructors
  • Offers numerous programming examples, code samples, detailed case studies, and exercises for self-study

About the Authors

Ken Barclay and John Savage are lecturers in computer science at Napier University in Edinburgh, Scotland. They both have more than 25 years of experience teaching software development to students and professionals in commerce and industry. They have been actively involved with the evolution and development of object-oriented practices in C++, Java, Ada, and the Unified Modeling Language (UML).

Since their first involvement with object orientation, they have led the development of the ROME project—an object modeling tool—that is distributed with their books on object orientation and the UML. They are the authors of several publications about software development, including Object-Oriented Design with UML and Java (Butterworth-Heinemann/ Elsevier, 2003).

In this Book

  • Foreword
  • Groovy
  • Numbers and Expressions
  • Strings and Regular Expressions
  • Lists, Maps, and Ranges
  • Simple Input and Output
  • Case Study—A Library Application (Modeling)
  • Methods
  • Flow of Control
  • Closures
  • Files
  • Case Study—A Library Application (Methods, Closures)
  • Classes
  • Case Study—A Library Application (Objects)
  • Inheritance
  • Unit Testing (Junit)
  • Case Study—A Library Application (Inheritance)
  • Persistence
  • Case Study—A Library Application (Persistence)
  • XML Builders and Parsers
  • GUI Builders
  • Template Engines
  • Case Study—A Library Application (GUI)
  • Server-Side Programming
  • Case Study—A Library Application (WEB)
  • Epilogue
  • Bibliography
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.5 of 526 users Rating 4.5 of 526 users (526)
Rating 4.4 of 61 users Rating 4.4 of 61 users (61)