2015-04-20 Tweets

Taking a Break From Groovy Validators

I worked a bit on my Groovy Validator project.

I was trying to process the annotation in a class referenced by GroovyASTTransformationClass. I thought that there were a couple of ways it could be done, but none of them seemed to work. I was actually able to create the setter in the class, I inserted a static initializer that called my current annotation transformer that works at runtime, but neither seemed to work.

I plan on moving on to other things for the time being. I might ask for some help on the Groovy mailing list, but if I do, I will have to formulate a coherent request. I asked for help on the list a while back, and I think I included too much detail because I never got a response.

You’re welcome.

2015-02-23 Tweets

A Small Bit of Clojure Enlightenment

I have started looking at Clojure. I think it can handle concurrency well, I think functional programming will become more important, and I think all roads lead to Lisp.

I started out by looking at some of the short introductions and tutorials on the Clojure subreddit.

Lisp variants actually have less punctuation than other languages, yet they can still be a bit hard to get used to.

I had a bit of enlightenment about anonymous functions. I could not see where they would be used. One of the tutorials said you would use then when you need a function that you might use only once.

Then I noticed that the tutorials seemed to use them as arguments to the “collection functions”, like map, reduce, filter, remove, split-with. Those functions take a function and a collection as arguments. I noticed that those functions were a common place to use anonymous functions.

You’re welcome.

2015-02-09 Tweets

2015-01-26 Tweets