Mahesh Patil’s Post

I've been cheating on Python. With Java. Don't tell my wife. For many years Python has been my goto for scripting. Recently though, when I needed to automate a local deployment — Docker builds, kind cluster loads, kubectl applies, rolling restarts, the lot. ⚙🚀 Habit said 𝗣𝘆𝘁𝗵𝗼𝗻 🐍 Curiosity said: lets try 𝗝𝗮𝘃𝗮 ☕ `java scripts/DeployLocal.java frontend` No compilation. No build step. 𝗝𝘂𝘀𝘁 𝗮 𝗝𝗮𝘃𝗮 𝗳𝗶𝗹𝗲 𝘁𝗵𝗮𝘁 𝗿𝗮𝗻 ▶️ It built the Docker image, loaded it into the kind cluster, applied the manifests, triggered the rolling restart, and waited for the rollout. All from one file. No `pip install`. No virtual env. No `requirements.txt` staring at me. 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 𝘁𝗼𝗼𝗹, 𝗹𝗮𝗻𝗴𝘂𝗮𝗴𝗲, 𝗼𝗿 𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 𝘆𝗼𝘂 𝗱𝗶𝘀𝗺𝗶𝘀𝘀𝗲𝗱 𝗳𝗶𝘃𝗲 𝘆𝗲𝗮𝗿𝘀 𝗮𝗴𝗼 𝗵𝗮𝘀 𝗽𝗿𝗼𝗯𝗮𝗯𝗹𝘆 𝗰𝗵𝗮𝗻𝗴𝗲𝗱. 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 and haven't dumped it completely. 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 #DeveloperLife

  • text

I met java in my college days and it was love at first sight...but java was very open and wanted me to remain independent as well... i couldn't make up my mind and ended up with microsoft c# for a decade..we stayed in touch...but never came close..until cupid struck again and i got into data engineering with bigdata !! same college energy, hanging out at eclipse (our old college pastime), hours of coding and silly debugging... and just like old days..this time python started attracting me...showed me promises of future AI and what not so...but the complete mismanagement of memory took me off... i can handle anything but memory leak is a deal breaker... anyway once one has tasted JVM how can you think of something else !! besides java is like gracefully aged trinity for the neo in me....specially the v21 Virtual Threads and Structured Concurrency ... oh man..i am falling again..

I wont forget C programming and Visual Basic.

Like
Reply

The only question left is... What did you use as a condom? Or you didn't??...

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories