Tuesday, February 11, 2014

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Groovy For Domain-Specific Languages - Second Edition, By Fergal Dearle. In undergoing this life, lots of people constantly try to do and obtain the most effective. New knowledge, experience, driving lesson, and also every little thing that can improve the life will certainly be done. Nonetheless, many people sometimes feel confused to obtain those things. Feeling the minimal of encounter and sources to be much better is among the lacks to possess. Nonetheless, there is a very straightforward point that could be done. This is exactly what your educator always manoeuvres you to do this. Yeah, reading is the solution. Checking out a publication as this Groovy For Domain-Specific Languages - Second Edition, By Fergal Dearle and various other recommendations can improve your life high quality. Exactly how can it be?

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle



Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Best Ebook Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Extend and enhance your Java applications with domain-specific scripting in Groovy

About This Book

  • Build domain-specific mini languages in Groovy that integrate seamlessly with your Java apps with this hands-on guide
  • Increase stakeholder participation in the development process with domain-specific scripting in Groovy
  • Get up to speed with the newest features in Groovy using this second edition and integrate Groovy-based DSLs into your existing Java applications.

Who This Book Is For

This book is for Java software developers who have an interest in building domain scripting into their Java applications. No knowledge of Groovy is required, although it will be helpful. This book does not teach Groovy, but quickly introduces the basic ideas of Groovy. An experienced Java developer should have no problems with these and move quickly on to the more involved aspects of creating DSLs with Groovy. No experience of creating a DSL is required.

What You Will Learn

  • Familiarize yourself with Groovy scripting and work with Groovy closures
  • Use the meta-programming features in Groovy to build mini languages
  • Employ Groovy mark-up and builders to simplify application development
  • Familiarize yourself with Groovy mark-up and build your own Groovy builders
  • Build effective DSLs with operator overloading, command chains, builders, and a host of other Groovy language features
  • Integrate Groovy with your Java and JVM based applications

In Detail

The times when developing on the JVM meant you were a Java programmer have long passed. The JVM is now firmly established as a polyglot development environment with many projects opting for alternative development languages to Java such as Groovy, Scala, Clojure, and JRuby. In this pantheon of development languages, Groovy stands out for its excellent DSL enabling features which allows it to be manipulated to produce mini languages that are tailored to a project's needs.

A comprehensive tutorial on designing and developing mini Groovy based Domain Specific Languages, this book will guide you through the development of several mini DSLs that will help you gain all the skills needed to develop your own Groovy based DSLs with confidence and ease.

Starting with the bare basics, this book will focus on how Groovy can be used to construct domain specific mini languages, and will go through the more complex meta-programming features of Groovy, including using the Abstract Syntax Tree (AST). Practical examples are used throughout this book to de-mystify these seemingly complex language features and to show how they can be used to create simple and elegant DSLs. Packed with examples, including several fully worked DSLs, this book will serve as a springboard for developing your own DSLs.

Style and approach

This book is a hands-on guide that will walk you through examples for building DSLs with Groovy rather than just talking about "metaprogramming with Groovy". The examples in this book have been designed to help you gain a good working knowledge of the techniques involved and apply these to producing your own Groovy based DSLs.

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

  • Amazon Sales Rank: #2710508 in Books
  • Published on: 2015-09-30
  • Released on: 2015-09-28
  • Original language: English
  • Number of items: 1
  • Dimensions: 9.25" h x .87" w x 7.50" l, 1.46 pounds
  • Binding: Paperback
  • 439 pages
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

About the Author

Fergal Dearle

Fergal Dearle is a seasoned software development professional with almost 30 years' experience in software product development across a wide variety of technologies. He is currently the principal consultant with his own software development consulting company, Dearle Technologies Ltd., engaged in design, development, and architecture of new software products for client companies. Recent projects have included the integration of the Telegraph (http://www.telegraph.co.uk) into Apple's new Apple News application for iOS 9 and the reengineering of the G-Cloud Digital Marketplace for the United Kingdom Cabinet Office (https://www.digitalmarketplace.service.gov.uk). He is a committed mentor in his local CoderDojo in Wexford Town where he teaches Groovy to the young coding ninjas. He has been recently nominated as a CoderDojo Hero for his work. In the past, Fergal has worked in lead architect and developer roles for Candle Corporation on the OMEGAMON product, which is now part of IBM's Tivoli product suite, and as the development manager for Unix implementations of Lotus 1-2-3. In the early 1990s, Fergal led the team at Glockenspiel that developed CommonView, the first object-oriented UI framework for Microsoft Windows. The team was awarded one of the first ever Jolt Productivity Awards by Dr. Dobbs Journal.


Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Where to Download Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Most helpful customer reviews

0 of 0 people found the following review helpful. Great book By Itamar Hassin I thoroughly enjoyed reading this book. It first introduces Groovy, Gradle and Spock as it lays the groundwork for digging deeper into DSLs and their rationale.Writing DSLs is an important part of project delivery where there's a need to mimic domain structures and concepts within the programming environment, at times when traditional OO modelling is not enough.This book covers theory and practice of the subject very well - recommended reading for those who want to venture into DSL programming.

0 of 0 people found the following review helpful. Great book, could use some consistency in its examples By Sidharth Masaldaan All in all, a good introduction to DSLs in the Groovy languageThe first chapter is a decent enough introduction, it serves well to setup the rest of the book. It's a nice introduction to the concepts of DSL & explains why Groovy was chosen as the language of choice.The second chapter introduces Groovy at a basic level, one change from the previous edition that I'm happy was done, was to split the language concepts in depth into a standalone chapter. In the previous edition, the 2nd chapter was a bit of a behemoth.The third chapter introduces some basic Groovy DSL that you may or may not have heard of. This gives a nice peek into Gradle & Spock & helped me correlate how they are, in fact, DSLs.The fourth & fifth chapter introduce, in this order, Groovy's concepts (you may skip this if you aren't a total beginner with Groovy), and Closures in Groovy (you could skip this as well, unless you come from a background where closures are new, in that case, don't skip it!)It's important to note that this book isn't to learn Groovy, (I'd recommend Groovy in Action, 2nd ed from Manning), the basics that you'd need are covered, but no more, and more concepts are introduced as you need them in your DSL. I'm judging it as a gateway to DSLs in Groovy & not as a gateway to Groovy the language. Your mileage may vary, of course.Chapter 6 is where we dive into our first Groovy DSL, a Twitter client. I'm a little conflicted by the example, which is well done, but I'd personally have chosen something like a Banking example, where you could showcase different domain rules & you'd have a lot of scenarios with tons of boilerplate code in Java, which could be broken down into a Groovy DSL.Chapters 7 introduce us to some patterns & advanced techniques (or Power Features, as suggested by the chapters title) that we can leverage in our DSLs. This is where I started to sort of disagree with the book. I would have preferred that a single Domain be used as the basis for our example application/DSL, wherein we build it up & make it more feature-rich, by adding the concepts into that single DSL as these concepts are introduced to us.Don't get me wrong, the examples are clear & do a great job of explaining the concept, e.g. Chapter 10, Building a Builder, has a great example of using these patterns to build a database seed builder (something I've tried to do in Java, only to have it devolve into an unholy mess)Chapter 8 again does a good job of explaining (what is a tough topic to digest for me) Abstract Syntax Trees (ASTs), I thought it was a neat, well-thought out chapter, with a nice enough example implementation of a state machine at the end.Chapter 9 shows how Groovy DSLs Spock & Grails implement features & techniques we saw earlier, this is where the book starts to win my attention back. It was nice to see how the techniques we read about earlier are used in real-world, full-fledged DSLsChapter 11 & 12 are where it really shines again, first with an example in 11 for a rules based DSL (which should have been our example application from the beginning, in my view) & then with a full-fledged game app, complete with a backing MongoDB & a web based front-end. Again, the examples are well done, the explanation is really great.Conclusion: If you have the first edition, you could give the 2nd ed a skip. A good book, but the constant switching of contexts lost me from time-to-time. If you're looking to understand how DSLs are implemented (& want to move beyond Java) this is a nice starting point.

See all 2 customer reviews... Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle


Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle PDF
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle iBooks
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle ePub
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle rtf
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle AZW
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle Kindle

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle
Groovy for Domain-Specific Languages - Second Edition, by Fergal Dearle

No comments:

Post a Comment