Sunday, March 10, 2013

Localization in Java can be easy

It’s being a while since my last post. Recently I wrote small localization library for Java. It’s still in development but I wanted to share main ideas.

JDK localization capabilities are comprehensive enough but not easy to use and it misses very important concept of Plural Rules. IMHO GWT is the only Java framework I know which did localication right. I decided to bring these ideas to server side and created ginger. Here is the list of it’s core ideas:

  • Ease of use
  • Compatibility with JDK localization features
  • Type safety
  • Plural rules support
  • Popular libraries and frameworks support
Read More »

Saturday, March 26, 2011

Java Formatters Best Practices

Java API has set of classes for formatting and parsing dates and numbers. Mostly used are: java.text.DateFormat and java.text.NumberFormat. Often when interviewing candidates I ask them whether JDK date and number formatters are thread-safe. Surprisingly most of them don’t know the right answer, hence I decided to describe common pitfalls with formatters usage.

Read More »