Chapter 13. Tips and tricks

 

The competent programmer is fully aware of the limited size of his own skull. He therefore approaches his task with full humility, and avoids clever tricks like the plague.

 
 --Edsger Dijkstra

Learning language features and library APIs is one thing; using a language for your everyday programming tasks has its own challenges. As the saying goes, “In theory, practice and theory are one and the same. In practice, they’re not.” This chapter attempts to bridge the gap, giving some insight into what it’s like to use Groovy for real, and (we hope) steering you clear of some of the potholes others (including us) have run into.

Closures are a good example of the gulf between practice and theory. They may appear unfamiliar and ...

Get Groovy in Action 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.