Good programming practices


StructuredInfo – objects instead of plain String

December 29th, 2011

Common method toString is a simple way to display inner values of an object. But when you get a String want to present it in other format it can be difficult or unsafe to parse it. So better way is to pass a structured object witch can be next serialized to desired format. So I created a project in Scala 2.9.1 for gathering and serializing information in an application. More…

Easier programming with Java 7

July 27th, 2011

Java 7 has several improvements in the language itself. In my opinion the most important is the try-with-resources statement. It makes work with resources much easier. You will no longer have to manually close used resources. It will be done automatically when used the new statement. More…