• Complain

Venkat Subramaniam - Programming Groovy 2: Dynamic Productivity for the Java Developer

Here you can read online Venkat Subramaniam - Programming Groovy 2: Dynamic Productivity for the Java Developer full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Pragmatic Bookshelf, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Venkat Subramaniam Programming Groovy 2: Dynamic Productivity for the Java Developer
  • Book:
    Programming Groovy 2: Dynamic Productivity for the Java Developer
  • Author:
  • Publisher:
    Pragmatic Bookshelf
  • Genre:
  • Year:
    2013
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Programming Groovy 2: Dynamic Productivity for the Java Developer: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Programming Groovy 2: Dynamic Productivity for the Java Developer" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Groovy brings you the best of both worlds: a flexible, highly productive, agile, dynamic language that runs on the rich framework of the Java Platform. Groovy preserves the Java semantics and extends the JDK to give you true dynamic language capabilities. Programming Groovy 2 will help you, the experienced Java developer, learn and take advantage of the latest version of this rich dynamic language. Youll go from the basics of Groovy to the latest advances in the language, including options for type checking, tail-call and memoization optimizations, compile time metaprogramming, and fluent interfaces to create DSLs.
You dont have to leave the rich Java Platform to take advantage of Groovy. Groovy preserves Javas semantics and extends the JDK, so programming in Groovy feels like the Java language has been augmented; its like working with a lighter, more elegant Java. If youre an experienced Java developer who wants to learn how Groovy works, youll find exactly what you need in this book.
Youll start with the fundamentals of programming in Groovy and how it works with Java, and then youll explore advanced concepts such as unit testing with mock objects, using Builders, working with databases and XML, and creating DSLs. Youll master Groovys powerful yet complex run-time and compile-time metaprogramming features.
Much has evolved in the Groovy language since the publication of the first edition of Programming Groovy. Programming Groovy 2 will help you learn and apply Groovys new features. Creating DSLs is easier now, and Groovys already-powerful metaprogramming facilities have improved even more. Youll see how to work with closures, including tail call optimization and memoization. The book also covers Groovys new static compilation feature.
Whether youre learning the basics of the language or interested in getting proficient with the new features, Programming Groovy 2 has you covered.
What You Need
To work on the examples in the book you need Groovy 2.0.5 and Java JDK 5 or higher.

Venkat Subramaniam: author's other books


Who wrote Programming Groovy 2: Dynamic Productivity for the Java Developer? Find out the surname, the name of the author of the book and a list of all author's works by series.

Programming Groovy 2: Dynamic Productivity for the Java Developer — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Programming Groovy 2: Dynamic Productivity for the Java Developer" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Programming Groovy 2 Dynamic Productivity for the Java Developer by Venkat - photo 1
Programming Groovy 2
Dynamic Productivity for the Java Developer
by Venkat Subramaniam
Version: P1.0 (July 2013)
Copyright 2013 The Pragmatic Programmers, LLC . This book is licensed tothe individual who purchased it. We don't copy-protect itbecause that would limit your ability to use it for yourown purposes. Please don't break this trustyou can use this across all of your devices but please do not share this copywith other members of your team, with friends, or via file sharing services. Thanks.
Dave & Andy.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.

Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein.

Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com.

To Mythili and Balufor being much more than an aunt and an unclefor being there when I needed them most.

Table of Contents
Copyright 2013, The Pragmatic Bookshelf.
What readers are saying about Programming Groovy 2

If you ever wondered why dynamic languages in general, and Groovy in particular, are so popular and how you can leverage them in your own work, this is the book for you.

Joe McTee
Developer, JEKLsoft

Whether youre a Java developer starting to dabble with Groovy, an intermediate Groovy developer looking to improve your understanding of the language, or an experienced Groovy developer looking for an introduction to the latest features in Groovy 2, this book is the perfect way to take your skills to the next level.

Peter Bell
hackNY

In this update for Groovy 2, Venkat has done a great job showing you both the theory and the practice of using Groovy. From basic, everyday tasks to advanced usage like compile-time metaprogramming and AST transforms, method interception and synthesis, and creating DSLs, youll find a ton packed into this relatively thin book. Best, it wont become a desk anchor since youll constantly refer to its many great examples!

Scott Leberknight
Co-founder and senior software architect, Near Infinity Corp.

Im delighted that Venkat has revised this essential Groovy tutorial to reflect the developments in the language and ecosystem since the first edition. Everyone learning Groovy should have this book in the library.

Tim Berglund
GitHub trainer and evangelist

Many other programming books assume too much. What makes Venkats books unique is that they welcome various levels of readers without insulting their intelligence. Programming Groovy 2 is no exceptionit is crafted with small palatable examples that guide the reader in a natural and incremental learning experience from novice to expert.

Daniel Hinojosa
Consultant, programmer, speaker, author of Testing in Scala

Foreword to the Second Edition

As the saying goes, time flies. In the first edition of this book, Venkat guided you through all the nice features of Groovy 1.5 and turned you into a proficient Groovy-ist, but its now time to discover what Groovy 2 has in store. Of course, your favorite author has you covered!

The Groovy team worked on three major themes for the 2.0 version. First of all, we brought Groovy in line with JDK 7: we added the Java 7 Project Coin syntax enhancements, and we also powered Groovys runtime with the invoke dynamic bytecode instruction and APIs under the hood. That way, you can use the latest syntax additions in Groovy even on older JDKs, but by running JDK 7 youll benefit from performance improvements.

Secondly, we broke up Groovy into smaller modules, a core and several API-related ones, so you can pick the pieces you are interested in to compose your application. We also extended the Groovy Development Kit to allow you to create your own extension methodsjust like Groovy does with its enriched JDK with the famous DefaultGroovyMethods class!

Last but not least, we introduced a static theme with two key novelties: static type-checking and static compilation. With the former, you can catch typos and other errors easily at compile time and even allow your domain-specific languages to be type-checked, while with the latter you can get the same performance as Java for critical parts of your application that request the highest level of speed.

With all those additions to the language and APIs, Groovy continues to mature like good wine, and just as a sommelier would share his expertise, Venkat dispenses his knowledge of all the power features of Groovy through the nice flavors of the chapters you are going to read, helping you get up to speed with the language and transport you to the next level.

Guillaume Laforge
Groovy project manager
June 2013
Copyright 2013, The Pragmatic Bookshelf.

Introduction

The Java platform is arguably one of the most powerful and widely adopted ecosystems today. It has three significant pieces:

  • The Java Virtual Machine (JVM), which has become increasingly powerful and more performant over the years

  • The Java Development Kit (JDK), the rich set of third-party libraries and frameworks that help us effectively leverage the power of the platform

  • The set of languages on the JVMthe Java language being the firstthat help us program the platform

Languages are like vehicles that let us navigate the platform. They let us reach into various parts of this landscape with ease. The Java language has come a long way; its libraries have been refactored and expanded. Its gotten us this far, but we need to look beyond the Java language to languages that are lightweight and that can make us more productive. When used correctly, dynamic languages, the functional style of programming, and metaprogramming capabilities can help us navigate the landscape much faster. When viewed as vehicles, these newer languages arent faster cars; theyre flying machines, giving us the capability to be several orders of magnitude more productive.

The Java language has been flirting with metaprogramming and the functional style of programming for a while and will support some of these features to various degrees in future versions. We dont have to wait for that day, however. We can build performant JVM applications with all the dynamic capabilities today, right now, using Groovy.

Whats Groovy?

Merriam-Webster defines groovy as marvelous, wonderful, excellent, hip, trendy. The Groovy language is all of thatits lightweight, low-ceremony, dynamic, object-oriented, and runs on the JVM. Groovy is open sourced under the Apache License, version 2.0.It derives strength from various languages, such as Smalltalk, Python, and Ruby, while retaininga syntax familiar to Java programmers. Groovy compiles into Java bytecode and extends theJava API and libraries. It runs on Java 1.5 and newer. For deployment, all we need is a Groovy Java archive (JAR) in addition to the regular Java stuff, and were all set.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Programming Groovy 2: Dynamic Productivity for the Java Developer»

Look at similar books to Programming Groovy 2: Dynamic Productivity for the Java Developer. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Programming Groovy 2: Dynamic Productivity for the Java Developer»

Discussion, reviews of the book Programming Groovy 2: Dynamic Productivity for the Java Developer and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.