Skip navigation

Monthly Archives: August 2008

Don’t let Xml be your API

It’s interesting to see how many hours java developers spend these days writing Xmls. I can hardly imagine writing java server-side applications without a single xml document nowadays. All those configuration files, deployment descriptors, schema files, mappings, etc. Has anybody tried to count those hours?
The things are getting worse when you work within SOA. The [...]

Fast Thread-Safe Map Cache

This post discusses thread-safe and fast java implementation of a cache for some special case.

The old well-known(?) puzzle

Suppose we have two sorted arrays: A and B of size n.
We would like to know if there is such a pair of indexes (i,j) that A[i] + B[j] = C.
C is a given number.
What’s the best worst-case time complexity (Big Oh) of the algorithm to solve the problem?

Looking at The Law of Demeter

Have you heard of The Law of Demeter? I haven’t until recently I’ve come across this term a few times in one day. Immediately I decided to take more closer look and get familiar myself with that term. It turned out that it’s not about ancient mythology… well… it’s named in honor of Demeter which [...]