Published at: 09:01 pm - Sunday January 22 2012
When you ask people who know almost, but not completely nothing about patterns, about software design patterns, they probably bring up the singleton pattern. It’s extremely easy: Just make sure you have one single instance of a class. If you ask more experienced developers about the singleton, they will probably tell you its bad and [...]
Published at: 01:08 pm - Sunday August 21 2011
One of the many cool features in Scala are traits. traits are like a mixture of abstract classes and interfaces: You can ‘implement’ as many of them as you want just as with interfaces, but they can also contain implementation, which makes them similar to abstract classes. You also can’t instantiate a trait on its [...]
Published at: 12:01 pm - Sunday January 30 2011
As we hopefully all agree good logging is a great asset. Yet I come across aweful styles of logging (and sometimes produce them myself). So I guess it is time for a small Antipattern collection. No Logging at All Exception Handler without any code are an obvious example of this, but reading a configuration file [...]