In keeping with theme of "use existing frameworks with Kotlin" and misleading titles, here's a quick and dirty demonstration of writing JAX-RS applications using Kotlin.
There's a chance that at least some of you saw the blog title and thought: "Ah ha! A Kotlin wrapper/helper for JSF!" and rushed over to check it out. If so, mission accomplished. :) This really isn't anything that ambitious. Sorry. :)
At JavaOne this week, I spent a good deal of time talk to Hadi Hariri , Developer Advocacy Team Lead at JetBrains, about their Kotlin language. With my long background in Java webapps, I often reach for my webapp hammer when trying to learn a new language, so I asked Hadi what Kotlin library he would suggest. His answer, in a nutshell, was that the Java interop in Kotlin is so good, just use whatever you want, so I thought I'd put that to the test with a really simple JSF app. Here it is.

(h/t to my brother )
I recently came across an interesting piece of code at work:
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
What struck me as odd was the private
qualifier and that the fact that SimpleDateFormat
is not thread-safe. Is the private
some odd attempt to work around concurrency issues, or was thread safety just overlooked? That led me to this question: Is a private static
still one instance per JVM, or does the private
actually change anything? My understanding was that this was a bug, but I thought I'd write a test just to make sure.
On Monday, July 13, I will be leading the monthly OKC JUG session, whose topic this month is "An Introduction to Programming with Minecraft Mods". We'll be using a modified version of the curriculum Arun Gupta has developed for this Devoxx4Kids program, with examples taken from the book he and his son wrote, http://amzn.to/1Jpwz0j[Minecraft Modding with Forge: A Family-Friendly Guide to Building Fun Mods in Java].
Here is the announcement sent to the Oklahoma City tech community. If you're in the area, come check it out!