Groovy in Action by Jon Skeet, Dierk Koenig, Andrew Glover, Paul King, Guillaume

By Jon Skeet, Dierk Koenig, Andrew Glover, Paul King, Guillaume Laforge

Groovy, the brand-new language for the Java platform, brings to Java the various beneficial properties that experience made Ruby renowned. Groovy in Action is a accomplished advisor to Groovy programming, introducing Java builders to the recent dynamic good points that great offers. To convey you Groovy in Action, Manning back went to the resource by way of operating with a workforce of professional authors together with either participants and the chief of the Groovy venture crew. the result's the real definitive consultant to the hot Groovy language.

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

simply because Groovy is so new, such a lot readers could be studying it from scratch. Groovy in Action fast strikes throughout the Groovy fundamentals, including:
* uncomplicated and collective Groovy information types
* operating with Closures and Groovy keep an eye on Structures
* Dynamic item Orientation, Groovy style

Readers are offered with wealthy and specified examples illustrating Groovy's improvements to Java, including
* how one can 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:
* counsel and Tricks
* Unit checking out and construct Support
* Groovy on Windows

an extra bonus is a bankruptcy devoted to Grails, the Groovy net program Framework.

buy of the print e-book comes with a suggestion of a unfastened PDF e-book from Manning. additionally to be had is all code from the book.

Show description

Read Online or Download Groovy in Action PDF

Similar java books

Java 7 Concurrency Cookbook

Over 60 basic yet exceptionally potent recipes for studying multithreaded program improvement with Java 7
* grasp all that Java 7 has to provide for concurrent programming
* become familiar with thread administration, the Fork/Join framework, concurrency sessions and lots more and plenty extra during this e-book and book
* a realistic Cookbook choked with recipes for reaching an important Java Concurrency projects

In element

Java is still the worldwide typical for constructing a variety of functions and firm software program, and the release of Java 7 brings with it interesting new services for concurrent programming in terms of the concurrency utilities enhancement. this permits builders to utilize their purposes with parallel job functionality. "Java 7 Concurrency Cookbook" covers all parts of the Java concurrency API, supplying crucial recipes for making the most of the intriguing new capabilities.

On your machine, you could take heed to track whenever you edit a observe rfile and skim your emails, unexpectedly! this is why your working approach permits the concurrency of initiatives, very similar to the Java platform which deals numerous periods to execute concurrent projects inside of a Java software. "Java 7 Concurrency Cookbook" covers crucial gains of the Java concurrency API, with certain emphasis at the new services of model 7.

With every one model, Java raises the on hand performance to facilitate improvement of concurrent courses. This booklet covers an important and valuable mechanisms integrated in model 7 of the Java concurrency API, so that you might be capable of use them at once on your applications.

"Java 7 Concurrency Cookbook" comprises recipes to provide help to in achieving every little thing from the elemental administration of threads and projects, to the hot Fork /Join framework, via synchronization mechanisms among projects, types of concurrent initiatives that Java can execute, info constructions that needs to be utilized in concurrent functions and the periods of the library that may be customized.

With the step by step examples during this e-book you’ll be capable to practice an important and invaluable positive aspects of the Java 7 concurrency API.

What will you examine from this e-book
* grasp the fundamentals of thread administration and synchronization sooner than diving into better point concurrency initiatives
* familiarize yourself with interesting new concurrency positive factors of Java 7, together with the Phaser type and the Fork/Join Framework
* effectively delegate thread administration to executors
* customise the most precious sessions of the Java concurrency API with real-world examples
* discover ways to use high-level Java utilities to regulate synchronization among threads
* Get a sneak peek at utilizing Eclipse and NetBeans for debugging concurrency code
* keep away from issues of facts inconsistency by means of studying the information buildings you might want to use in concurrent functions
* reap the benefits of an advantage appendix choked with assistance that each programmer may still think about whilst constructing a concurrent program


"Java 7 Concurrency Cookbook" is a pragmatic Cookbook full of real-world options. Intermediate–advanced point Java builders will research from task-based recipes to take advantage of Java’s concurrent API to application thread secure solutions.

Making Java Groovy


Making Java Groovy is a realistic instruction manual for builders who are looking to mix Groovy into their day by day paintings with Java. It starts off through introducing the foremost adjustments among Java and Groovy—and how one can use them for your virtue. Then, it courses you step by step via life like improvement demanding situations, from internet purposes to internet providers to computer purposes, and exhibits how Groovy makes them more uncomplicated to place into production.

About this Book

You don't want the entire strength of Java while you're writing a construct script, an easy method application, or a light-weight net app—but that's the place Groovy shines brightest. This stylish JVM-based dynamic language extends and simplifies Java so that you can be aware of the duty to hand rather than coping with minute information and pointless complexity.

Making Java Groov is a pragmatic advisor for builders who are looking to reap the benefits of Groovy of their paintings with Java. It begins by means of introducing the most important variations among Java and Groovy and the way to take advantage of them on your virtue. Then, you'll concentrate on the events you face on a daily basis, like eating and developing RESTful internet providers, operating with databases, and utilizing the Spring framework. You'll additionally discover the nice Groovy instruments for construct techniques, checking out, and deployment and find out how to write Groovy-based domain-specific languages that simplify Java development.

Written for builders accustomed to Java. No Groovy event required.

Purchase of the print publication features a loose booklet in PDF, Kindle, and ePub codecs from Manning Publications.

What's Inside
• more straightforward Java
• Closures, developers, and metaprogramming
• Gradle for builds, Spock for trying out
• Groovy frameworks like Grails and Griffon

About the Author

Ken Kousen is an self reliant advisor and coach focusing on Spring, Hibernate, Groovy, and Grails.

Table of Contents
<ol><h5>PART 1: in control WITH GROOVY</h5> • Why upload Groovy to Java?
• Groovy by way of instance
• Code-level integration
• utilizing Groovy gains in Java
<h5>PART 2: GROOVY TOOLS</h5> • construct techniques
• checking out Groovy and Java tasks
<h5>PART three: GROOVY within the actual WORLD</h5> • The Spring framework
• Database entry
• RESTful net prone
• construction and trying out net applications

Beginning Java Programming: The Object-Oriented Approach

A finished Java advisor, with samples, workouts, case reviews, and step by step instructionBeginning Java Programming: the item orientated procedure is an easy source for buying all started with one of many world's so much enduringly renowned programming languages. in keeping with sessions taught via the authors, the publication begins with the fundamentals and progressively builds into extra complicated innovations.

Cocoon 2 Programming: Web Publishing with XML and Java

Because of the tireless efforts of open-source builders, Cocoon has speedy received visibility because the preeminent XML-based internet publishing framework. regrettably, its documentation is still an important shortcoming. in case you are new to Cocoon, gaining a feeling of precisely what you are able to do with it may be tricky, and really getting began will be even tougher.

Extra resources for Groovy in Action

Example text

1250), aka Fibonacci, was a mathematician from Pisa (now a town in Italy). He introduced this number sequence to describe the growth of an isolated rabbit population. Although this may be questionable from a biological point of view, his number sequence plays a role in many different areas of science and art. For more information, you can subscribe to the Fibonacci Quarterly. Compiling and running Groovy 19 Run this file as a Groovy program by passing the file name to the groovy command. You should see the following output: > groovy Fibonacci 1 1 2 3 5 8 13 21 34 55 The groovy command has many additional options that are useful for commandline scripting.

Codehaus. org/Other+Plugins. AUTHOR’S When programming small ad-hoc Groovy scripts, I (Dierk) personally use CHOICE UltraEdit on Windows and Vim on Linux. For any project of some size, I use IntelliJ IDEA with the GroovyJ plug-in. Summary 25 As Groovy matures and is adopted among Java programmers, it will continue to gain support in Java IDEs with features such as debugging, unit testing, and dynamic code-completion. 6 Summary We hope that by now we’ve convinced you that you really want Groovy in your life.

Besides the Groovy support, it is a feature-rich, quick-starting, all-purpose editor. org/UltraEdit+Plugin. The JEdit plug-in for Groovy supports executing Groovy scripts and code snippets from within the editor. A syntax-highlighting configuration is available separately. org/JEdit+Plugin. codehaus. org/Other+Plugins. AUTHOR’S When programming small ad-hoc Groovy scripts, I (Dierk) personally use CHOICE UltraEdit on Windows and Vim on Linux. For any project of some size, I use IntelliJ IDEA with the GroovyJ plug-in.

Download PDF sample

Rated 4.09 of 5 – based on 10 votes