Tips
Shell script of the day
Russian Roulette # [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / echo “You live”
Code without automated tests is like using bricks without cement
Just today morning in Tallinn a whole wall of a brand-new building just fell down! Update: The building was not new and it fell because there is a road reconstruction very nearby. This made me think that automated unit-tests can save at least your soul. As soon as there is a bit more complex code [...]
Organising design-by-contract test code
“Lets say you write component-oriented, loosely coupled, design-by-contract (java) software and you do rigorous unit testing. How do you organise your codebase?” Leo Simons offers one possibility: Organising design-by-contract test code
Build a generic typesafe DAO with Hibernate and Spring AOP
Don’t repeat the DAO!: “With the adoption of Javaâ„¢ 5 generics, the idea of a generic typesafe Data Access Object (DAO) implementation has become feasible. In this article, system architect Per Mellqvist presents a generic DAO implementation class based on Hibernate. He then shows you how to use Spring AOP introductions to add a typesafe [...]
Improving process by avoiding decision-making
What is a straightforward set of actions that lead to superior code or any other result? Keep number of decisions low. I didn’t think this way until now but it really makes sense. So the goal is not to become superior decision-maker but to move to the next level: zero-decision policy. It’s like a concept [...]
junit rollback after transaction commit
AbstractTransactionalDataSourceSpringContextTests (from springframework spring-mock.jar) is used to provide atomic junit-tests that won’t affect database state. This kind of isolation is achieved by running each test in a transaction that is rolled back after each test-run. The problem might start when you are using AbstractTransactionalDataSourceSpringContextTests with multiple sessions committing transactions (and commit cannot be rolled back, [...]
Be ready for artistic process
There is a good read from Seth Godin about processes and why you don’t like them. He has his point. Worth reading because he’s a cool man. I know, I’ve experienced this.
Frameworks becoming Architecture
What’s cool about frameworks is how elegantly they add better granularity and decoupled code. At the same time they force you to split one logic/business concept between different layers – dividing your initial business concept by decoupling it in a different dimension. The best systems are built using great frameworks but the code you write [...]
Rethinking Model-Driven Development
Model-driven development has it’s drawbacks and promises. And most importantly – solutions. This short-essay provides different angle on the problem associated with a feature called round-tring engineering.


