I've Been Cheating on Python. With Java.

I've been cheating on Python. With Java. Don't tell my wife.
For years, Python has been my default scripting language. Build something quickly, automate a deployment, wire together a few tools — Python. Always Python. It was comfortable, predictable, and fast to reach for. Java, in my head, was the language you used when you needed to write enterprise software that took three weeks to configure before it ran Hello World.
That mental model held until last week.
The Experiment
I needed to script a local deployment — Docker builds, loading images into a kind cluster, running kubectl applies, triggering rolling restarts, waiting for rollouts to complete. The kind of thing that starts as a README and ends up as a script you forget you wrote.
I nearly opened a .py file out of sheer habit, but on a whim I tried something different.
java --enable-preview --source 25 scripts/DeployLocal.java frontend
No compilation. No build step. No classpath arguments. Just a Java file that ran.
And it worked. The script built the Docker image, tagged it, loaded it into the kind cluster, applied the Kubernetes manifests, triggered the rolling restart, and sat there patiently waiting for the rollout to finish — all from a single source file.
No virtual environment to activate. No requirements.txt to fight with. No dependency tree to untangle before I could do the actual work.
What Changed
Java has been quietly evolving for years while I was busy writing it off. The --source mode for running single-file programs, preview features that actually land in production, a modern API surface that doesn't require twenty layers of abstraction to do something simple.
It's not the language I remembered. It's better. And I hadn't noticed because I'd stopped looking.
There's a lesson in that beyond Java. Every tool, language, or framework you dismissed five years ago has probably changed. Some of them changed for the worse. But some grew up when you weren't watching, and you're missing them because the old version lives rent-free in your memory.
I still love Python. But Java just reminded me why I liked it in the first place.
What language have you written off — that might be worth a second look?
#Java #Python #SoftwareEngineering #DevTools #CloudNative #Kubernetes #DeveloperLife