Groovy and Grails Recipes

Groovy and Grails Recipes
Author: Bashar Jawad
Publisher: Apress
Total Pages: 407
Release: 2009-01-29
Genre: Computers
ISBN: 1430216018

Groovy and Grails Recipes is the busy developer's guide to developing applications in Groovy and Grails. Rather than boring you with theoretical knowledge of “yet another language/framework,” this book delves straight into solving real–life problems in Groovy and Grails using easy–to–understand, well–explained code snippets. Through learning by example, you will be able to pick up on Groovy and Grails quickly and use the book as an essential reference when developing applications.

Groovy 2 Cookbook

Groovy 2 Cookbook
Author: Andrey Adamovich
Publisher: Packt Publishing Ltd
Total Pages: 625
Release: 2013-10-22
Genre: Computers
ISBN: 1849519374

This book follows a Cookbook style and is packed with intermediate and advanced level recipes.This book is for Java developers who have an interest in discovering new ways to quickly get the job done using a new language that shares many similarities with Java. The book’s recipes start simple, therefore no previous Groovy experience is required to understand the code and the explanations accompanying the examples.

Making Java Groovy

Making Java Groovy
Author: Kenneth Kousen
Publisher: Simon and Schuster
Total Pages: 520
Release: 2013-09-18
Genre: Computers
ISBN: 1638352267

Summary Making Java Groovy is a practical handbook for developers who want to blend Groovy into their day-to-day work with Java. It starts by introducing the key differences between Java and Groovy—and how you can use them to your advantage. Then, it guides you step-by-step through realistic development challenges, from web applications to web services to desktop applications, and shows how Groovy makes them easier to put into production. About this Book You don't need the full force of Java when you're writing a build script, a simple system utility, or a lightweight web app—but that's where Groovy shines brightest. This elegant JVM-based dynamic language extends and simplifies Java so you can concentrate on the task at hand instead of managing minute details and unnecessary complexity. Making Java Groov is a practical guide for developers who want to benefit from Groovy in their work with Java. It starts by introducing the key differences between Java and Groovy and how to use them to your advantage. Then, you'll focus on the situations you face every day, like consuming and creating RESTful web services, working with databases, and using the Spring framework. You'll also explore the great Groovy tools for build processes, testing, and deployment and learn how to write Groovy-based domain-specific languages that simplify Java development. Written for developers familiar with Java. No Groovy experience required. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. What's Inside Easier Java Closures, builders, and metaprogramming Gradle for builds, Spock for testing Groovy frameworks like Grails and Griffon About the Author Ken Kousen is an independent consultant and trainer specializing in Spring, Hibernate, Groovy, and Grails. Table of Contents PART 1: UP TO SPEED WITH GROOVY Why add Groovy to Java? Groovy by example Code-level integration Using Groovy features in Java PART 2: GROOVY TOOLS Build processes Testing Groovy and Java projects PART 3: GROOVY IN THE REAL WORLD The Spring framework Database access RESTful web services Building and testing web applications

Gradle Recipes for Android

Gradle Recipes for Android
Author: Ken Kousen
Publisher: "O'Reilly Media, Inc."
Total Pages: 168
Release: 2016-06-07
Genre: Computers
ISBN: 1491947306

Android adopted Gradle as the preferred build automation system a few years ago, but many Android developers are still unfamiliar with this open source tool. This hands-on guide provides a collection of Gradle recipes to help you quickly and easily accomplish the most common build tasks for your Android apps. You’ll learn how to customize project layouts, add dependencies, and generate many different versions of your app. Gradle is based on Groovy, yet very little knowledge of the JVM language is required for you to get started. Code examples use Android SDK version 23, with emulators from Marshmallow (Android 6) or Lollipop (Android 5). If you’re comfortable with Java and Android, you’re ready. Understand Gradle’s generated build files for Android apps Run Gradle from the command line or inside Android Studio Add more Java libraries to your Android app Import and export Eclipse ADT projects Digitally sign a Release APK for the Google Play store Use product flavors to build many versions of the same app Add custom tasks to the Gradle build process Test both your app’s Android and non-Android components Improve the performance of your Gradle build

Groovy in Action

Groovy in Action
Author: Cédric Champeau
Publisher: Simon and Schuster
Total Pages: 1403
Release: 2015-06-03
Genre: Computers
ISBN: 1638352879

Summary Groovy in Action, Second Edition is a thoroughly revised, comprehensive guide to Groovy programming. It introduces Java developers to the dynamic features that Groovy provides, and shows how to apply Groovy to a range of tasks including building new apps, integration with existing code, and DSL development. Covers Groovy 2.4. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology In the last ten years, Groovy has become an integral part of a Java developer's toolbox. Its comfortable, common-sense design, seamless integration with Java, and rich ecosystem that includes the Grails web framework, the Gradle build system, and Spock testing platform have created a large Groovy community About the Book Groovy in Action, Second Edition is the undisputed definitive reference on the Groovy language. Written by core members of the Groovy language team, this book presents Groovy like no other can—from the inside out. With relevant examples, careful explanations of Groovy's key concepts and features, and insightful coverage of how to use Groovy in-production tasks, including building new applications, integration with existing code, and DSL development, this is the only book you'll need. Updated for Groovy 2.4. Some experience with Java or another programming language is helpful. No Groovy experience is assumed. What's Inside Comprehensive coverage of Groovy 2.4 including language features, libraries, and AST transformations Dynamic, static, and extensible typing Concurrency: actors, data parallelism, and dataflow Applying Groovy: Java integration, XML, SQL, testing, and domain-specific language support Hundreds of reusable examples About the Authors Authors Dierk König, Paul King, Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet are intimately involved in the creation and ongoing development of the Groovy language and its ecosystem. Table of Contents PART 1 THE GROOVY LANGUAGE Your way to Groovy Overture: Groovy basics Simple Groovy datatypes Collective Groovy datatypes Working with closures Groovy control structures Object orientation, Groovy style Dynamic programming with Groovy Compile-time metaprogramming and AST transformations Groovy as a static language PART 2 AROUND THE GROOVY LIBRARY Working with builders Working with the GDK Database programming with Groovy Working with XML and JSON Interacting with Web Services Integrating Groovy PART 3 APPLIED GROOVY Unit testing with Groovy Concurrent Groovy with GPars Domain-specific languages The Groovy ecosystem

Spring Recipes

Spring Recipes
Author: Daniel Rubio
Publisher: Apress
Total Pages: 848
Release: 2014-11-14
Genre: Computers
ISBN: 1430259094

Spring Recipes: A Problem-Solution Approach, Third Edition builds upon the best-selling success of the previous editions and focuses on the latest Spring Framework features for building enterprise Java applications. This book provides code recipes for the following, found in the latest Spring: Spring fundamentals: Spring IoC container, Spring AOP/ AspectJ, and more. Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, Spring Remoting, messaging, transactions, and working with big data and the cloud using Hadoop and MongoDB. Spring web: Spring MVC, other dynamic scripting, integration with the popular Grails Framework (and Groovy), REST/web services, and more This book guides you step-by-step through topics using complete and real-world code examples. When you start a new project, you can consider copying the code and configuration files from this book, and then modifying them for your needs. This can save you a great deal of work over creating a project from scratch!

Cucumber Recipes

Cucumber Recipes
Author: Ian Dees
Publisher: Pragmatic Bookshelf
Total Pages: 334
Release: 2013-02-12
Genre: Computers
ISBN: 1680503367

You can test just about anything with Cucumber. We certainly have, and in Cucumber Recipes we'll show you how to apply our hard-won field experience to your own projects. Once you've mastered the basics, this book will show you how to get the most out of Cucumber--from specific situations to advanced test-writing advice. With over forty practical recipes, you'll test desktop, web, mobile, and server applications across a variety of platforms. This book gives you tools that you can use today to automate any system that you encounter, and do it well. The Cucumber Book showed you how your team can work together to write executable specifications--documents that tell a clear story and also happen to be working test code. We'll arm you with ready-rolled solutions to real-world problems: your tests will run faster, read more clearly, and work in any environment. Our first tips will help you fit Cucumber into your workflow. Powerful filters will tame tables full of test data, transforming them into the format your application needs. Custom output formatters will generate reports for any occasion. Continuous Integration servers will run your Cucumber tests every time the code changes. Next, you'll find recipes tailored to the platform you're running on. Ever wanted to know how to test a Grails app from Cucumber? Need to put a Windows program through its paces? How about a mobile app running on Android or iOS? We'll show you how to do all of these. Throughout the book, you'll see how to make Cucumber sing as you interoperate with different platforms, languages, and environments. From embedded circuits to Python and PHP web apps, Cucumber has something for you. What You Need: You'll need basic working knowledge of Cucumber and Ruby. Individual recipes may have additional requirements; for example, a recipe on Windows automation might pull in an open source GUI driver. We've written the recipes for compatibility with Ruby 1.9.3 and 1.8.7, plus Cucumber 1.1.4. Other versions may work as well, but these are the ones we test with.

Groovy Recipes

Groovy Recipes
Author: Scott Davis
Publisher:
Total Pages: 0
Release: 2008
Genre: Groovy (Computer program language)
ISBN: 9780978739294

This guide is for the busy Java professional who needs quick solutions to everyday problems. Each recipe shows a concise code example right away and covers everything from getting a basic application up and running to advanced features such as deploying to other webservers and databases.

Modern Java Recipes

Modern Java Recipes
Author: Ken Kousen
Publisher: "O'Reilly Media, Inc."
Total Pages: 322
Release: 2017-08-11
Genre: Computers
ISBN: 1491973129

The introduction of functional programming concepts in Java SE 8 was a drastic change for this venerable object-oriented language. Lambda expressions, method references, and streams fundamentally changed the idioms of the language, and many developers have been trying to catch up ever since. This cookbook will help. With more than 70 detailed recipes, author Ken Kousen shows you how to use the newest features of Java to solve a wide range of problems. For developers comfortable with previous Java versions, this guide covers nearly all of Java SE 8, and includes a chapter focused on changes coming in Java 9. Need to understand how functional idioms will change the way you write code? This cookbook—chock full of use cases—is for you. Recipes cover: The basics of lambda expressions and method references Interfaces in the java.util.function package Stream operations for transforming and filtering data Comparators and Collectors for sorting and converting streaming data Combining lambdas, method references, and streams Creating instances and extract values from Java’s Optional type New I/O capabilities that support functional streams The Date-Time API that replaces the legacy Date and Calendar classes Mechanisms for experimenting with concurrency and parallelism