This week I discovered two useful things you can do with Enums in Java. The first and probably the more useful of the two is for formatting error messages in a consise and type safe way. public enum ErrorMessageKey { FILE_NOT_FOUND( "Cannot find file {0}"), CANNOT_READ_FILE( "Cannot read file {0}"), FILESTORE_CANNOT_OPEN_FILE( "Unable [...]
Posts under ‘Software Engineering’
TheServerSide Java Symposium Europe – part 1
Last week I attended TheServerSide Java Symposium Europe, a 3 day conference held in Barcelona. I was pleasantly surprised by the variety of topics, the quality of the speakers and the professional organization; it reminded me of the early days of JavaOne. J2EE vs Spring/Hibernate open source stacks One of the recurrent themes of the [...]