Programming Groovy 2
eBook - ePub

Programming Groovy 2

Dynamic Productivity for the Java Developer

  1. 370 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Programming Groovy 2

Dynamic Productivity for the Java Developer

About this book

You don't have to leave the rich Java Platform to take advantage of Groovy. Groovy preserves Java's semantics and extends the JDK, so programming in Groovy feels like the Java language has been augmented; it's like working with a lighter, more elegant Java. If you're an experienced Java developer who wants to learn how Groovy works, you'll find exactly what you need in this book.

You'll start with the fundamentals of programming in Groovy and how it works with Java, and then you'll explore advanced concepts such as unit testing with mock objects, using Builders, working with databases and XML, and creating DSLs. You'll master Groovy's 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 Groovy's new features. Creating DSLs is easier now, and Groovy's already-powerful metaprogramming facilities have improved even more. You'll see how to work with closures, including tail call optimization and memoization. The book also covers Groovy's new static compilation feature.

Whether you're learning the basics of the language or interested in getting proficient with the new features, Programming Groovy 2 has you covered.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Programming Groovy 2 by Venkat Subramaniam in PDF and/or ePUB format, as well as other popular books in Informatica & Programmazione in JavaScript. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Programming Groovy 2
  2. Table of Contents
  3. What readers are saying about Programming Groovy 2
  4. Foreword to the Second Edition
  5. Introduction
  6. Part 1: Beginning Groovy
  7. Chapter 1: Getting Started
  8. Chapter 2: Groovy for Java Eyes
  9. Chapter 3: Dynamic Typing
  10. Chapter 4: Using Closures
  11. Chapter 5: Working with Strings
  12. Chapter 6: Working with Collections
  13. Part 2: Using Groovy
  14. Chapter 7: Exploring the GDK
  15. Chapter 8: Working with XML
  16. Chapter 9: Working with Databases
  17. Chapter 10: Working with Scripts and Classes
  18. Part 3: MOPping Groovy
  19. Chapter 11: Exploring Metaobject Protocol (MOP)
  20. Chapter 12: Intercepting Methods Using MOP
  21. Chapter 13: MOP Method Injection
  22. Chapter 14: MOP Method Synthesis
  23. Chapter 15: MOPping Up
  24. Chapter 16: Applying Compile-Time Metaprogramming
  25. Part 4: Using Metaprogramming
  26. Chapter 17: Groovy Builders
  27. Chapter 18: Unit Testing and Mocking
  28. Chapter 19: Creating DSLs in Groovy
  29. Appendix 1: Web Resources
  30. Appendix 2: Bibliography