In my other blogging site, I've been using JDK 8 features to answer some sample interview questions. Here's a quick recap:
In my other blogging site, I've covered many of the basics of creating DSLs in Groovy:
In my previous post, I discussed the example program that I wrote to exercise the things I've described so far. Today I'll discuss what the DSL will actually look like - as with most programming tasks, designing your DSL before implementation is almost always advised.
I won't be speaking at JavaOne this year, and didn't get a pass through work.
In my previous post, I started with a simple Java program (which also worked in Groovy), and slowly stripped out the cruft until I was left with the following Groovy script:
Before I start talking about using Groovy's capabilities to create a DSL (mostly in Java), let's take a few minutes to go over what Groovy is.
Groovy is a general purpose scripting language which runs on the JVM, and can largely be viewed as a superset of Java. Take the following program:
I've been neglecting my blog, but just a quick note to mention that my latest talk at JavaOne, DSLs with Groovy, is posted up on Slideshare.
The talk's designed for someone with no significant Groovy experience (unlike most Groovy DSL talks), so if it's interesting to you, check it out.
It's been a while since I've blogged last (ok, it's been a year), but I recently came across a question that I have a little insight into, and I thought I'd tackle it briefly.
The question was simple: "How do I test my JSF application?"