---
title: The Java Hole
lang: en-GB
author: Maggie Harley
date: 2026-09-15
---

> It was the peculiar artifice of Habit not to suffer her power to be felt at
> first. Those whom she led, she had the address of appearing only to attend,
> but was continually doubling her chains upon her companions; which were so
> slender in themselves, and so silently fastened, that while the attention was
> engaged by other objects, they were not easily perceived. Each link grew
> tighter as it had been longer worn; and when by continual additions they
> became so heavy as to be felt, they were very frequently too strong to be
> broken.
>
> ---Samuel Johnson, <cite>The Vision of Theodore</cite>

Businesses have all this tech debt in Java that they never sort out, which
results in them needing way more engineers than they would otherwise. This
leads to more newbie engineers not understanding the nuances of the code, and
more code being written, which adds to the tech debt in one big feedback cycle.
New engineers are given roles where they need to add to this pile, aware of
their inexperience and therefore knowing that they're contributing to the mess
the next new engineer will deal with. The pile of mostly-useless code lacks the
nutrition a new engineer needs to become a full-fledged engineer, and so the
portion of their career that they spend writing bad code is extended. This
exposure to poor code, and the extension of this exposure, silos the engineer:
they now only have experience with piles of poor code, and so their
"specialism" is with piles of poor code. The only people that would hire
someone with this specialism are people that would put this engineer to work on
their piles of poor code. The engineer is stuck worsening a situation because
they lack the experience required to improve it; they cannot gain this
experience because all the code around them looks like this, and all the
engineers around them are in the same situation; and they cannot leave this
situation because their job prospects all look identical. They are in the Java
Hole.

The Java Hole is a combination of ideas that I've seen articulated in various
media:

- the [Dead Sea Effect]([https://en.wiktionary.org/wiki/Dead_Sea_effect](https://brucefwebster.com/2008/04/11/the-wetware-crisis-the-dead-sea-effect/)),
  where skilled engineers leave the project (or the company) because they don't
  want to work in the Java Hole, or are deemed too valuable to work in it;
- the [Expert Beginner](https://daedtech.com/how-developers-stop-learning-rise-of-the-expert-beginner/),
  where an engineer lacks more-experienced coworkers and so assumes they have
  reached expert ability.

It's also an example of the Local Maximum Problem: if an engineer shows that
they can be productive in the Java Hole, their employer will continue to give
them work in the Hole; the more productive the engineer is, the less likely
their employer is to give them the chance to show they'd be even more
productive out of the Hole.

The Java Hole doesn't necessitate writing Java code, but Java does lend itself
to the Hole. Java is designed in such a way as to dissuade "fancy" programming,
providing a low skill ceiling and making copious boilerplate mandatory. It also
has a lovely collection of footguns (such as its lack of compile-time null
checks, and generic erasure) that makes even simple experimentation in the
language error-prone and cumbersome. These anti-features make Java an ideal
shovel-shaped candidate for digging a Hole with.

This could all be accepted as fine, but for one problem: being in the Hole is
miserable. An engineer in the hole is unable to properly develop their skills,
and has their prospects limited. Due to the poor code they have to work with,
their ability to express themselves in their work is hampered.
Poorly-understood dependencies within the poor codebase leads to unpredictable
time estimates; this in turn leads to missed deadlines, pressure, and stress.
The final nail in the coffin is that any engineer in the Hole understands that
their additions to the codebase are ensuring that the next victim to fall into
the Hole has just as bad a time.

I think I am in the Java Hole. When I look back at the work I've done in my
career so far, I'm not convinced that any of it is meaningful. It's all
abstractions on top of a frail skeleton built years ago to simpler
specifications. My attempts to help developers in posterity will, I fear, often
be in vain: due to restricted time, my refactorings will be left incomplete and
under-documented. Upon reflection, I realise that my attempts to help fellow
engineers may make things worse instead. A maddening realisation.

It would be easy to attribute my displeasure with my work entirely to external
forces such as the Hole. In reality, I believe I have plenty to blame myself
for. I've never been critical of the places I've worked and have never actively
looked for new work; I walked into the Hole, and until recently did not try to
leave.

I am currently out of work. It would be nice to use this opportunity to leave
the Hole. Sadly, recruiters approach me only for Hole work, and potential
employers are only interested in putting me in the Hole. In a way, my prior
experience is working against me; if I were a recent graduate, I believe my
options for work would be more varied. I am considering leaving the software
industry entirely, as I'm no longer convinced I can find software work I'll be
content with. I'll be one of the many that burn out, part of the churn of the
software industry. Perhaps the only way out of the Java Hole is through the
bottom.
