Chapter 8. Dynamic programming with Groovy
This chapter covers
- How Groovy supports dynamic programming
- An explanation of the Meta Object Protocol (MOP)
- How to utilize the MOP for your own purposes
Until real software engineering is developed, the next best practice is to develop with a dynamic system that has extreme late binding in all aspects.
Alan Kay
We’re going to start our journey with a few general considerations about dynamic programming, how it differs from conventional object-oriented approaches, and why you want to have it in your toolbox. We’ll show how the MOP serves as the central hub that provides you with dynamic programming capabilities. Groovy comes with dynamic features out-of-the-box but you can also add your own. There ...
Get Groovy in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.