Groovy in Action

By Jon Skeet

Groovy, the brand-new language for the Java platform, brings to Java some of the beneficial properties that experience made Ruby well known. Groovy in Action is a complete advisor to Groovy programming, introducing Java builders to the hot dynamic gains that great presents. To carry you Groovy in Action, Manning back went to the resource by way of operating with a group of professional authors together with either participants and the chief of the Groovy venture workforce. the result's the real definitive advisor to the recent Groovy language.

Groovy in Action introduces Groovy by way of instance, offering plenty of reusable code whereas explaining the underlying ideas. Java builders new to Groovy discover a delicate transition into the dynamic programming global. Groovy specialists achieve a superb reference that demanding situations them to discover Groovy deeply and creatively.

Because Groovy is so new, such a lot readers might be studying it from scratch. Groovy in Action fast strikes throughout the Groovy fundamentals, including:

  • Simple and collective Groovy information types
  • Working with Closures and Groovy regulate Structures
  • Dynamic item Orientation, Groovy style

Readers are provided with wealthy and unique examples illustrating Groovy's improvements to Java, including

  • How to paintings with developers and the GDK
  • Database programming with Groovy

Groovy in Action then demonstrates tips on how to combine Groovy with XML, and provides:

  • Tips and Tricks
  • Unit checking out and construct Support
  • Groovy on Windows

An extra bonus is a bankruptcy devoted to Grails, the Groovy internet program Framework.

buy of the print ebook comes with a suggestion of a unfastened PDF booklet from Manning. additionally on hand is all code from the ebook.

Show description

Preview of Groovy in Action PDF

Best Java books

Mastering Lambdas: Java Programming in a Multicore World (Oracle Press)

The Definitive consultant to Lambda Expressions gaining knowledge of Lambdas: Java Programming in a Multicore global describes how the lambda-related positive aspects of Java SE eight will permit Java to fulfill the demanding situations of next-generation parallel architectures. The publication explains tips to write lambdas, and the way to exploit them in streams and in assortment processing, delivering code examples all through.

Mastering JavaFX 8 Controls (Oracle Press)

Layout and installation High-Performance JavaFX Controls bring cutting-edge functions with visually lovely UIs. getting to know JavaFX eight Controls presents transparent directions, particular examples, and ready-to-use code samples. the way to paintings with the newest JavaFX APIs, configure UI elements, immediately generate FXML, construct state of the art controls, and successfully practice CSS styling.

Data Abstraction and Problem Solving with Java: Walls and Mirrors (3rd Edition)

The 3rd version of info Abstraction and challenge fixing with Java: partitions and Mirrors employs the analogies of partitions (data abstraction) and Mirrors (recursion) to educate Java programming layout recommendations, in a manner that starting scholars locate obtainable. The booklet has a student-friendly pedagogical method that conscientiously debts for the strengths and weaknesses of the Java language.

Java Software Solutions: Foundations of Program Design (7th Edition)

Java software program recommendations teaches a beginning of programming strategies to foster well-designed object-oriented software program. Heralded for its integration of small and massive lifelike examples, this around the world best-selling textual content emphasizes construction stable problem-solving and layout abilities to jot down fine quality courses.

Extra info for Groovy in Action

Show sample text content

It truly is beneficial—but now not required—to were uncovered to a couple different scripting language. this allows you to attach what you learn to what you realize. the place applicable, we indicate similarities and ameliorations among Groovy and different scripting languages. approximately THIS ebook xxvii Code conventions This e-book presents copious examples that express how one can utilize all of the themes coated. resource code in listings or in textual content seems to be in a fixed-width font like this to split it from traditional textual content. additionally, category and approach names, item houses, and different code-related phrases and content material in textual content are provided utilizing fixed-width font. sometimes, code is italicized, as in reference. dump(). as a consequence reference shouldn't be entered actually yet changed with the content material that's required, comparable to the ideal reference. the place the textual content comprises the pronouns “I” and “we,” the “we” refers to all of the authors. “I” refers back to the lead writer of the respective bankruptcy: Guillaume Laforge for chapters eleven and 15, Andrew Glover for bankruptcy 14, and Dierk König for the rest chapters. lots of the code examples comprise Groovy code. This code is particularly compact so we current it “as is” with none omissions. until acknowledged in a different way, you could reproduction and paste it right into a new dossier and run it right now. In infrequent situations, whilst this wasn’t attainable, we now have used … ellipsis. Java, HTML, XML, and command-line enter might be verbose. in lots of situations, the unique resource code (available on-line) has been reformatted; we’ve additional line breaks and transformed indentation to deal with the web page area to be had within the publication. In infrequent instances, whilst even this was once no longer adequate, line-continuation markers have been further. Code annotations accompany the various listings, highlighting very important innovations. often times, numbered cueballs hyperlink to extra motives that stick to the directory. you could obtain the resource code for all the examples within the ebook from the publisher’s site at www. manning. com/koenig. maintaining up to now the area doesn’t cease turning for those who end writing a ebook, and getting the e-book via construction additionally takes time. consequently, the various info in any technical publication turns into speedy superseded, specially within the dynamic international of agile languages. This e-book covers Groovy 1. zero. Groovy will see various advancements, and by the point you learn this, it’s attainable that an up to date model can have turn into on hand. New Groovy models consistently include a close record of alterations. it truly is not going that any of the center Groovy techniques as specified by this e-book will switch xxviii approximately THIS e-book considerably prior to Groovy 2. zero; or even then the emphasis could be on extra options and contours. This outlook makes the ebook a sensible funding, even in a speedily altering global. we'll do our greatest to maintain the web assets for this e-book quite modern and supply information regarding language and library adjustments because the venture strikes on. Please money for updates at the book’s online page at www.

Download PDF sample

Rated 4.55 of 5 – based on 34 votes