|Groovy Version||1.7.10, 1.8.1|
|Author||Marcin Gryszko (OSOCO)|
Metaprogramming, according to Wikipedia is the writing of computer programs that write or manipulate other programs (or themselves) as their data, or that do part of the work at compile time that would otherwise be done at runtime.
Groovy dynamic nature plus the built-in implementation of the Metaobject Protocol make easy to add new behaviour or data at runtime.
The Metakoans will teach you:
The Koans assume that you have some basic practical experience with Groovy. If not, I recommend you personally Programming Groovy by Venkat Subramaniam. Although it covers Groovy 1.5.4, you find on 300 pages everything about Groovy from first steps with the language to advanced metaprogramming.
gant -f generate_koans_to_solve.gantThe student koans are generated in the
cd ../groovy-metakoans-to-solveand type to start your way to meta-enlightment:
gantThe metakoans are divided into thematic area, one per file. The execution will fail at the first place where you need to provide your answer (FAILED message). These places are marked with __ (double underscore) or FillMeIn*. Think, meditare, reflect, read, talk to your Groovy buddies and fix the test. If you complete the koan successfully, you get an OK message and the next koan will fail. Continue until you reach the enlightment...
You can also clone the project with Git by running:
git clone git://github.com/osoco/groovy-metakoans