I learned in my years as a software developer that I learn things then better if I try them, create a short application with them. Or I write about them a blog article.
Now I encountered a project where we use JPA2.0 (implementation by Hibernate but this is mostly out of the question) and I need some information about the used annotations — and especially their optional parameters and default values.
Well, as I try always to mention it is good to have some blog posts which are not about coding itself. So today I’m going to write a little review about the book “Becoming a better programmer” by Pete Goodliffe. You could think “This is the same: telling us about a book about coding.” but this is not the case.
In the last article I introduced JSAP, the command line parser from 2006. Now it is time for Commons CLI from Apache from the year 2009. And this is the last part of this article series.
Since some weeks my domain name hahamo.biz is expired. This is a bit annoying because all links to this blog are through that domain. Today I’ll complain by my provider who billed me already but perhaps too late. This is a no-go in my eyes.
However this has some advantages too: since my blog is not available through my primary URL I get less spam comments and less visitors from search engines.
So sometimes it is a problem to have a good domain name. Now I find it not bad. It is always a pain in the neck to filter out 200 spam messages (which are always 100% spam) if I leave for a week holiday. Fortunately WordPress has a good spam filter, so it all lands in the spam folder.
And now I have changed my comment policy a bit: I only allow registered users to leave comments. This could be some overhead but it is nothing overwhelming. If you are serious to comment on my post, then a registration is not a big thing.
Nevertheless the domain name loss is a little problem. I’m currently about to redesign the whole blog to match my company. About this in a later post.
I initiated a new incident ticket at my domain name provider — on the 22nd October. No response until today. Parallel I’ve paid the bill to be on the safer side, however there is no response either. For this the next year I’ll quit the provider, discard the domain name and make my own way.
Although today web and rich client applications are in mostly, sometimes you end up creating a simple command line tool which does not need any graphical user interface (perhaps developing the UI costs you more time than writing the application itself). And to enable configuration of your application you are likely to add command line arguments. If you want the input to be more elastic you can add named (or qualified) arguments but parsing them would be an extra utility.
For this I’ll introduce a new article series in two parts about Java command line argument parsers. In the first article (so this one) I’ll have a look at JSAP from Martian Software, in the second I’ll introduce Commons CLI from Apache. Both of the tools is old (last update from JSAP was in 2006, from CLI in 2009). This is because there is not much about releasing newer version for command line argument parsing because once done there are rarely changes how the argument should be parsed.
I just wanted to tell you, that I’ll be at the W-JAX 2014 between the 3rd and 4th November in Munich.
No, I won’t hold any talks but I’ll listen to a bunch of them to expand my knowledge in the fields of Enterprise Java and Java 8.
When I’m back I’ll write a little article about my experiences there.