Category Archives: java
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
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
Where are generics stored in java compiled classes?
I was having a go at learning some Java bytecode and started looking at how generics were handled. As expected, the compiler was emitting cast instructions when generic types where used, but nothing where the types where declared: generics in Java are … Continue reading
simple webserver and rest with jetty and NO XML
Simple no-frills implementation of a REST key-value store using jetty embedded and NO XML Continue reading