Go Faster: Fine!

Posted by Roel Spilker on May 20, 2025

Reinier Zwitserloot and Roel Spilker
are the Boilerplate Busters:
the creators of Project Lombok

“The New Flexible Speed Cameras are Raking in Millions!” This was the headline in multiple Dutch newspapers a few months ago. All the reports were about the increased number of observed violations with this new speed limit enforcing tool, and how many fines had been given. This conforms to the official government policy: to enforce the speed limit. Further reading of the policy reveals that the underlying goal is to improve road safety by changing the behaviour of drivers.

Software development organisations also have policies. Not for road safety, but for software qualities. How do you make sure your software is accessible? Is your code still fast enough? Does your code contain exploitable vulnerabilities?

We should never ship a new version of the product if any of the libraries used contain a known critical vulnerability. Surely this rule makes sense. Or does it?   

In December 2021, the Java community was Log4Shell-shocked. Log4J version 2.14.1 and lower contained a JNDI injection vulnerability. An initial fix was released in version 2.15.0 within days. We immediately updated our dependency and ran our tests. All looked fine, so we can release a new version of our product, right? Well, it depends. Although Log4J 2.15.0 fixed most of the earlier reported problems, in “certain non-default configurations” the fix was incomplete. This version was consequently marked as containing critical vulnerabilities. Our build system correctly informed us that our current build used a dependency that contained a critical vulnerability. Can we ship it?

The naive implementation of software quality rules would prevent us from releasing our product. But this policy was created to solve an underlying problem: Don’t ship a known broken product. Even though, since we use a default configuration, we can ship a safe version of our product right now, this rule requires us to wait for a version of Log4J that is free of all known critical vulnerabilities.

We need to break the rule, we want to go faster. In this case, that would be fine!

Behavioural scientists will tell you that the best way to teach someone a new trick is to consistently punish bad behaviour immediately. If the goal is to improve road safety, why do the current cameras no longer flash? Why don’t the offenders get an instant email, informing them of their misconduct?

Our Continuous Integration pipelines can warn us about problems in our product. Or a dependency analysis tool. Or our IDE. The faster the feedback, the better. However, we should always be mindful of the reason behind policies. If a rule gets in the way of that underlying reason, just go faster. We’ll be fine.

A broken unit test informs us of a potential problem in your code, but it shouldn’t prevent us from deploying a version that fixes an important problem. It should inform us of the situation, but still allow us to release.

Regarding the flexible speed cameras, recent news articles report a reduction on the number as well as the severity of the fines. Nobody reported on improved road safety. The policy is simple: If you go faster, you’ll be fined!



This column originally appeared in .nl.jug Java Magazine 02>2025