By Jon Skeet, Dierk Koenig, Andrew Glover, Paul King, Guillaume Laforge
Groovy, the brand-new language for the Java platform, brings to Java a few of the positive aspects that experience made Ruby well known. Groovy in Action is a complete consultant to Groovy programming, introducing Java builders to the hot dynamic positive factors that fab presents. To deliver you Groovy in Action, Manning back went to the resource by means of operating with a crew of professional authors together with either contributors and the chief of the Groovy undertaking crew. the result's the genuine 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 gentle transition into the dynamic programming international. Groovy specialists achieve a superior reference that demanding situations them to discover Groovy deeply and creatively.
simply because Groovy is so new, such a lot readers should be studying it from scratch. Groovy in Action fast strikes during the Groovy fundamentals, including:
* basic and collective Groovy facts types
* operating with Closures and Groovy keep an eye on Structures
* Dynamic item Orientation, Groovy style
Readers are offered with wealthy and distinctive examples illustrating Groovy's improvements to Java, including
* easy methods to paintings with developers and the GDK
* Database programming with Groovy
Groovy in Action then demonstrates the way 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 proposal of a loose PDF e-book from Manning. additionally on hand is all code from the book.
Read or Download Groovy in Action PDF
Similar java books
Totally up to date to mirror Java SE 7 language alterations, center Java®, quantity II—Advanced positive aspects, 9th version, is the definitive advisor to Java’s strongest positive factors for company and computer program development.
Designed for critical programmers, this trustworthy, impartial, no-nonsense educational illuminates complicated Java language and library positive factors with completely validated code examples. As in past variants, all code is straightforward to appreciate and screens sleek best-practice options to the realworld demanding situations confronted through specialist developers.
Volume II quick brings you up-to-speed on key Java SE 7 improvements, starting from the recent dossier I/O API to more advantageous concurrency utilities. All code examples are up to date to mirror those improvements. whole descriptions of latest language and platform gains are highlighted and built-in with insightful factors of complicated Java programming strategies. You’ll examine all you must construct powerful construction software program with
• Streams, records, and commonplace expressions
• Database programming amenities
• JNDI/LDAP listing integration
• complex Swing options
• JavaBeans parts
• internet prone
• complicated platform safety features
• disbursed items
• local tools, and more
For unique insurance of basic Java SE 7 positive factors, together with gadgets, sessions, inheritance, interfaces, mirrored image, occasions, exceptions, pictures, Swing, generics, collections, concurrency, and debugging, search for middle Java™, quantity I—Fundamentals, 9th variation
The MVC structure for constructing net purposes is still a robust idea and the preferred layout development identified through builders. Spring MVC is a model-view-controller framework for Java net functions to simplify the writing and trying out of Java internet functions, which totally integrates with the Spring dependency injection framework.
Quartz task Scheduling Framework finds the best way to utilize Quartz with nearly any Java EE or Java SE program, from the smallest standalone application to the biggest e-commerce software. Best-selling writer Chuck Cavaness exhibits builders and designers the best way to combine Quartz with prime open resource Java frameworks, together with Hibernate and Struts.
Eclipse has confirmed to be a best-of-class, open resource, extensible software improvement framework. Eclipse bargains many instruments for constructing Java functions together with wizards, unit trying out, debuggers, and editors. no longer all of those instruments aid the advance of company purposes. To make up for that, professional Eclipse JST is the 1st publication on firm improvement in keeping with the newest Eclipse three common.
- java(TM).rmi: The Remote Method Invocation Guide
- SWT/JFace in Action: GUI Design with Eclipse 3.0
- JBoss EAP6 High Availability
- Raven: Scripting Java Builds with Ruby
Additional resources for Groovy in Action
Efficient lookup for all related Java classes in the project or dependent libraries. groovy files. ■ A Groovy file-type icon. GroovyJ has a promising future, which is greatly dependent on its implementation of IDEA’s Program Structure Interface (PSI) for the Groovy language. It will do so by specializing the Groovy grammar file and generating a specialized parser for this purpose. Because IDEA bases all its advanced features (such as refactoring support, inspections, navigation, intentions, and so forth) on the PSI, it seems to be only a matter of time before we will see these features for Groovy.
Dierk founded the open-source Canoo WebTest project and has been its manager since 2001. His consulting and engineering activities are related largely to agile software development practices and test automation. He joined the Groovy project in 2004 and has worked as a committer ever since. ANDREW GLOVER is an established expert in automated testing frameworks and tools. He is an author for multiple online publications, including IBM’s DeveloperWorks and O’Reilly’s ONJava and ONLamp portals. He is the co-author of Java Testing Patterns.
Because the code was clean, it was a breeze to optimize the solution and decrease the operation count. It would have been much more difficult to recognize the optimization potential in Java code. The final result can be used from Java as it stands, and although we certainly still have the option of porting the optimized solution to plain Java, which would give us another performance gain, we can defer the decision until the need arises. The seamless interplay of Groovy and Java opens two dimensions of optimizing code: using Java for code that needs to be optimized for runtime performance, and using Groovy for code that needs to be optimized for flexibility and readability.