General Wishdom

Posted by Roel Spilker on May 29, 2026

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

Everybody knows… you throw a frog in boiling water, it’ll hop out; place it in cold water and slowly heat it, it boils to death. But hold on. Let’s think rationally for a moment. Frogs are cold-blooded animals. They have an absolute sense of temperature. It’s kind of what cold-blooded animals are all about. Of course it will eventually hop out! And throwing a frog into a boiling pot kills it. Of course it would. In other words, there’s absolutely nothing about this trope that is actually true! So why is this conventional wisdom so prevalent? Because wouldn’t it be convenient if it were true? It’s an excuse: failed to predict or respond to gradual change? Not my fault.

Everybody knows… the exception proves the rule. This ‘rule’ is, of course, an oxymoron. The saying actually is real, it’s just that the word prove has the archaic meaning of test. A seeming exception is an opportunity to elaborate on your rule and show that it really does apply to the situation. If it does not, the rule is false. It would have been so convenient if we could just corrupt any counterexample: we found the exception, therefore the rule must be true!

Everybody knows… you have to use the right tool for the right job. The rallying cry of any nerd chomping at the bit to try some shiny new technology. If you can’t solve a problem then obviously you just need a better tool. Staying with the tools metaphor: If every tool in the box requires 5 years of dedication to master, and requires continuous use to maintain your edge, then I am definitely hammering that screw into the wall instead of getting my PhD in screwology.

Everybody knows… premature optimisation is the root of all evil. Popularised by The Art of Computer Programming by Donald Knuth. His intent is that readability, maintainability, and flexibility of code outweigh insignificant or hypothetical performance gains. It is not a blanket excuse to deny any attempt at revising code just because it so happens to improve its performance. The hyperbolic gravity of the statement is also misleading; the most important word is premature. For example, in public libraries you usually cannot profile every imaginable usage. You’ll need to use common sense and consider optimising for performance; you cannot hide behind this bit of wishdom to avoid having to think about it. Knuth himself would agree. After all, the full quote is actually: “We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.”

Everybody knows… single-threaded code does not scale. Except, obviously, it does: Most large scale projects are web services, and are inherently parallelised by the infrastructure. Code that handles a single request does not need to also parallelise. Rewriting easily understood single-threaded endpoint code into (parallel) streams and virtual threads is a waste of time, not something to be proud of. Single-threaded code can scale very well if run on parallelising infrastructure. Designing a scaling service is more about properly configuring load balancers, web servers and databases, not about conveniently blaming some single-threaded code.

Everybody knows… Reinier and Roel are always right. Well, at least that would be convenient. For you, the reader, because then you know who to blame.


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