-
Core Java
HOW TO: Stereotyping a java Class
In this HowTo post I will show how we can stereotype a class with another class. Why is this useful?…
Read More » -
Enterprise Java
HOW-TO: Custom error pages in Tomcat with Spring MVC
Default Tomcat error pages look scary. In addition, they may expose valuable information including server version and exception stack trace.…
Read More » -
Core Java
Stacktraces are telling the truth. But not the whole truth.
Our company is all about making the cause of software errors transparent to developers and operations. As opposed to alternative…
Read More » -
Software Development
Deep Stack Traces Can be a Sign for Good Code Quality
The term “leaky abstractions” has been around for a while. Coining it is most often attributed to Joel Spolsky, who…
Read More » -
Software Development
Turning Assertions Into a Domain-Specific Language
Assertions are an essential part of our unit tests. And yet, it so easy to neglect them. That is a…
Read More » -
Core Java
A JUnit Rule to Conditionally Ignore Tests
I always believed that using @Ignore to deactivate tests is a bad idea. Except, maybe as one way to put…
Read More » -
DevOps
Provisioning Ubuntu With Java in 3 Steps
As I’ve written about before, Vagrant is handy tool for creating localized VMs. It’s a lot like firing up EC2…
Read More » -
Groovy
Grails Goodness: Generating Raw Output with Raw Codec
Since Grails 2.3 all ${} expression output is automatically escaped on GSPs. This is very useful, because user input is…
Read More » -
Software Development
The narrow path between best practices and over-engineering
A couple of days ago I read a post by Petri Kainulainen about The Dark Side of Best Practices. He…
Read More »