May 24

I’m having a lot of problems with the server lately. Many people have complained that they have tried to leave comments unsuccessfully, I hear that the RSS feeds sometimes don’t work, and even my own management is sometimes blocked off.

I am figuring out the steps I should take - upgrade my current hosting plan or switch to a different host - and a resolution should be available soon.

For those of you who try to leave comments: try, try again! If a comment is sent out twice, I will just remove it myself; please don’t let this prevent you from sending them.

In the meantime, my sincere apologies for the inconvenience.

May 24

Imagining a method which receives as a parameter a type Object instance and needs to perform some action according to its type is not difficult. In fact, there are several design patterns that, when used in combination, help solve just that. However, this post is about adding a new switch..case construct to prevent some boiler-plate caused by these patterns.
Continue reading »

May 19

Whenever a class in my model contains a collection which requires that particular care be taken with its items, there’s an internal debate regarding how to expose it to other classes. And with this, there are two major schools: one, the paranoia-based approach which doesn’t allow external code to touch the collection’s internal items and two, the trusting approach which just returns the collection for everyone to deal with.
Continue reading »

Chaotic Java is Digg proof thanks to caching by WP Super Cache!