Felt like sharing this, since there might be some other “dinosaurs” like myself (i.e. slow in their using the Apache Commons Collections) — and those guys might find this useful 🙂 Occasionally you find yourself providing components that will be used by various modules in a project, and as such you have to employ strict […]
Posts Categorized: Ramblings
Neat Trick for Returning an Empty List in Java
I’ve found this post actually burried in my “Drafts” — it’s been there for sometime it seems. I recall writing about it on my mobile WordPress application, so I’m guessing I’ve saved it as draft on the blog with the view to apply the code pretty-printing and forgot about it quite likely 🙂 So I […]
Arrays in Java
I seem to be on a roll today so I thought I’d mention this little tip that I have come across in the past when using arrays — more specifically bi-dimensional arrays. We think of such arrays (in Java and other languages as well!) quite often as a bit of a Scrabble board where we […]
Apache Commons Collections
I discovered this recently myself (having not been a big fan of Apache Commons Collections in the past) — and it’s a useful feature if you are dealing with a list of objects that can be compared by more than one property. For instance, consider you have a list of Person’s (see class below) which […]
Thread Pools in Java
On the subject of Java code optimisation: I’m sure we’re all familiar with the concept of thread pooling — typically used together with the Executor framework. Configuring your thread pools can be tricky: choose a small value and you’re not making usage of your server power, on the other hand, choose a value large enough […]
Java StringBuilder
This is something that I have seen quite a few times while looking online at other people’s code so I thought I’d write about it quickly — preach the world and all that 🙂 I’m referring here to the JDK class StringBuilder, however, those of you who know your JDK classes would surely have figured […]
Plan for a Crisis
If you haven’t heard the phrase yet, memorise it now: plan for a crisis! Because if there is one thing certain in the running of each company, that is having a crisis – we all encounter it on one level or another. You might be lucky enough for your crisis to be your project just […]
Quality Advertising!!! :)
I just pissed myself laughing seeing this and had to share it — a true gem from the guys at Funny Ads:
2 X 1 = 0.5
The “equation” in the title has go doubt puzzled you as it is nonsense 🙂 I couldn’t agree better, though there are a lot of people that don’t see that! Intrigued to hear that? What if I was to tell you that the above formula should be read “if you double the number of developers […]
Rugby Dating
I’ve only titled this post “rugby dating” to see if this ad actually appears on my site as well to be honest 🙂 I’ve mentioned this site in one of my previous posts, but didn’t make too much of it as I thought it’s one of those small nichey dating sites that will never grow […]










