rss Home » Tag Archive For ‘Groovy’

Programming Concurrency on the JVM

Programming Concurrency on the JVM

Book Description

More than ever, learning to program concurrency is critical to creating faster, responsive applications. Speedy and affordable multicore hardware is driving the demand for high-performing applications, and you can leverage the platform to bring these applications to life.

Concurrency on the platform has evolved, from the synchronization model of JDK to software transactional memory (STM) and actor-based concurrency. This book is the first to show you all these concurrency styles so you can compare and choose what works best for your applications. You’ll learn the benefits of each of these models, when and how to use them, and what their limitations are.

Through hands-on exercises, you’ll learn how to avoid shared mutable state and how to write good, elegant, explicit synchronization-free programs so you can create easy and safe concurrent applications. The techniques you learn in this book will take you from dreading concurrency to mastering and enjoying it. Best of all, you can work with Java or a language of your choice – , , , or – to reap the growing power of multicore hardware.

If you are a Java programmer, you’d need JDK 1.5 or later and the Akka 1.0 library. In addition, if you program in , , or you’d need the latest version of your preferred language. programmers will also need GPars.

About the Author
Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., and an adjunct faculty at the University of Houston. Download Now »

Building and Testing with Gradle

Building and Testing with Gradle

Book Description

Build and test software written in and many other languages with , the open source project automation tool that’s getting a lot of attention. This concise introduction provides numerous code examples to help you explore , both as a build tool and as a complete solution for automating the compilation, test, and release process of simple and enterprise-level applications.

Discover how improves on the best ideas of Ant, Maven, and other build tools, with standards for developers who want them and lots of flexibility for those who prefer less structure.

  • Use Gradle with , , , and languages beyond the , such as Flex and C
  • Get started building a simple program using Gradle’s command line tooling and a small build script
  • Learn how to configure and construct tasks, Gradle’s fundamental unit of build activity
  • Take advantage of Gradle’s integration with Ant
  • Use Gradle to integrate with or transition from Maven, and to build software more cleanly
  • Perform application unit and integration tests using JUnit, TestNG, Spock, and Geb

About the Author
Tim is a full-stack generalist and passionate teacher who loves coding, presenting, and working with people. He is founder and principal software developer at the August Technology Group, a technology consulting firm focused on the . He is a speaker internationally and on the No Fluff Just Stuff tour in the United States Download Now »

DSLs in Action

DSLs in Action

Book Description

Your success—and sanity—are closer at hand when you work at a higher level of abstraction, allowing your attention to be on the business problem rather than the details of the platform. Domain Specific Languages — “little languages” implemented on top of conventional languages — give you a way to do this because they model the domain of your business problem.

introduces the concepts and definitions a developer needs to build high-quality domain specific languages. It provides a solid foundation to the usage as well as implementation aspects of a DSL, focusing on the necessity of applications speaking the language of the domain. After reading this book, a programmer will be able to design APIs that make better domain models. For experienced developers, the book addresses the intricacies of domain language design without the pain of writing parsers by hand.

The book discusses DSL usage and implementations in the real world based on a suite of languages like , , , and . It contains code snippets that implement real world DSL designs and discusses the pros and cons of each implementation.

What’s Inside

  • Tested, real-world examples
  • How to find the right level of abstraction
  • Using language features to build internal
  • Designing parser/combinator-based little languages Download Now »

Groovy for Domain-Specific Languages

Groovy for Domain Specific Languages

Book Description

You may already be aware that the virtual machine runs on everything from the largest mainframe to the smallest microchip and supports almost every conceivable application. What you may not realize is that to develop software in some of these scenarios requires a targeted, single purpose language, a Domain Specific Language. The popular scripting language can be used to create a Domain Specific Language that can run directly on the alongside regular code.

This comprehensive tutorial will take you through the design and of -based Domain Specific Languages. It is a complete guide to the of several mini- with a lot of easy-to-understand examples. This book will help you to gain all of the skills needed to develop your own -based , as it guides you from the basics through to the more complex meta- features of . The focus is on how the language can be used to construct domain-specific mini-languages.

Practical examples are used throughout to de-mystify the seemingly complex language features and to show how they can be used to create simple and elegant DSLs. The examples include a quick and simple Groovy DSL to interface with Twitter.

The book concludes with a chapter focusing on integrating Groovy-based DSLs in such a way that the scripts can be readily incorporated into the readers’ own Java applications. The overall goal of this book is to take Java developers through the skills and knowledge they need to start building effective Groovy-based DSLs to integrate into their own applications. Download Now »

Programming Groovy: Dynamic Productivity for the Java Developer

Programming Groovy: Dynamic Productivity for the Java Developer

Book Description

The strength of is no longer in the language itself; it’s in the Platform (the , JDK, and rich frameworks and libraries). But recently, the industry has turned to dynamic languages for increased productivity and speed to market. is one of a new breed of dynamic languages that run on the platform. You can use these new languages on the and intermix them with your existing Java code. You can leverage your Java investments while benefiting from advanced features including true Closures, Meta , the ability to create internal , and a higher level of abstraction.

If you’re an experienced Java developer, will help you learn the necessary fundamentals of programming in Groovy. You’ll see how to use Groovy to do advanced programming including using Meta Programming, Builders, Unit with Mock objects, processing XML, working with Databases and creating your own Domain-Specific Languages ().

About the Author
Venkat Subramaniam, founder of Agile Developer, Inc., has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia. Venkat helps his clients effectively apply and succeed with agile practices on their software projects. He is a frequent invited speaker at international software conferences and user groups. He’s author of .NET Gotchas (O’Reilly) and coauthor of the 2007 Jolt Productivity award-winning book Practices of an Agile Developer (Pragmatic Bookshelf). Download Now »

Groovy Recipes: Greasing the Wheels of Java

Groovy Recipes: Greasing the Wheels of Java

Book Description

Each recipe in Recipes begins with a concise code example for a quick start, followed by in-depth explanation in plain English. These recipes will get you to-to-speed in a environment quickly.You’ll see how to speed up nearly every aspect of the process using Groovy. Groovy makes mundane file management tasks like copying and renaming files trivial. Reading and writing XML has never been easier with XmlParsers and XmlBuilders. Breathe new life into Arrays, Maps, and Lists with a number of convenience methods. But Groovy does more than just ease traditional : it brings modern features to the platform like closures, duck-typing, and metaprogramming.

As an added bonus, this book also covers Grails. You’ll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file⎯a web server (Jetty), a database (HSQLDB), Spring, Hibernate, even a Groovy version of Ant called GANT. We cover everything from getting a basic website in place to advanced features that take you beyond HTML into the world of Web Services: REST, JSON, Atom, Podcasting, and much much more. Download Now »

12»