Monthly Archives: June 2011

Enforcing design principles in software

Before starting to write a new piece of software, I come up with some simple design principles that I think will do some good. For smallish projects I just keep the principles in mind and behave so, but for bigger … Continue reading

Posted in java, Uncategorized | Leave a comment

Java bytecode, string concatenation and StringBuilder

In my earlier post I was making a fuss over picking the faster hash algorithm, and then I realised I was using + to concatenate strings. Should I always use a StringBuilder? Should I care even for small strings? Heck, … Continue reading

Posted in java | Tagged , , , | 9 Comments

Evaluating relative speed of java digest (hashing) algorithms

It’s best practice to encrypt security tokens such as passwords and sessions ids in your database. I was just doing that to the session tokens for a project at work, and I wondered which algorithm to pick if speed was … Continue reading

Posted in Uncategorized | 4 Comments