How to Build Java Applications Today: April 5, 2021
I’m an InfoQ author and JAX London speaker, TIOBE Index April 2021, Google wins Java court case against Oracle, the road to Kotlin 1.5, and Apache turns 22.
README
This is issue #30 of my weekly newsletter, “How To Build Java Applications Today”. I read all the Java newsletters, so you don’t have to! And I try to entertain you while presenting Java news here. A German developer trying to be funny - what can go wrong here?!
Quote of the Week
Being a woman is a terribly difficult task since it consists principally in dealing with men.
Joseph Conrad, English novelist (1857–1924)
Stand-Up
Since last week, two of my articles have been published. The first one is at Baeldung and describes the keyboard shortcuts that we need to edit, build, and run Java applications in JetBrains’ Java IDE, IntelliJ IDEA. The second one is my first news story for InfoQ: Google launched a new quality section on its Android developer site this February.
Talking about firsts: I’m excited to present a session at JAX London 2021! This year, it’s a hybrid conference. My topic? “How Should Java Developers Build Front-Ends for Web, Mobile & Desktop Today?” I seem to have struck a nerve there: I submitted the same three pitches to four conferences, and they all picked my front-end talk. The fourth one isn’t a done deal, so my web page only lists three right now.
Bookmarks
Java
TIOBE Index April 2021
Don’t read on if you can’t take the pain.
Seriously, this will hurt!
Ok, I warned you. Java continues its sharp decline in this much-disputed but influential ranking. How sharp? Since April 2020, Java “lost a C#”. Wait, what? Java lost 5.5%, more than C# has in total today (4.9%).
Hey, at least we’re still number two! Unfortunately, Python will probably claim that place soon. Hey, a bronze medal ain’t so bad either…
Any JVM language to the rescue here? There’s one, but it’s not the one you’re thinking about. In a sign that this index may not accurately reflect our project reality, Groovy saw a meteoric rise of 0.86% to 1.04% in the last year! That was good for place 17. Yep, Groovy! Are people writing Gradle plugins in Groovy? Or is Grails having a resurgence? I’m as baffled as you are.
And that other JVM language? The one we’re all were thinking about? Kotlin is #39 with 0.32%. It has less than a third of Groovy’s percentage. Beats me!
Google Wins Java Court Case Against Oracle
A long time ago, Oracle sued Google for its use of Java in Android. Oracle claimed that copyright law protected the Java APIs. That seemed like a dangerous precedent: Who else can copyright APIs and then sue us developers?
Today, the US Supreme Court declared Google’s use of Java in Android was “fair use”. Google won! I think that’s good news because it’s now less likely that somebody else will sue us developers for “API copyright violation”.
It’s a sad day for Oracle’s lawyers, though. Well, tough luck - nobody likes you guys anyways. Just ask the Eclipse foundation! Probably even Oracle doesn’t like their own lawyers.
JVM
The Road to Kotlin 1.5
Since we’re already talking about not-so-popular JVM languages: Kotlin marches on towards version 1.5 in mid-2021. But it’s “just” compiler changes, Java feature support, and faster builds.
The majority of the work seems to go into a “common backend infrastructure” for the compiler backend. Confusingly, that common infrastructure consists of three different backends: Kotlin/JVM, Kotlin/JS, and Kotlin/Native. That’s what you get when you let the marketing guys speak - they were quoted in the article!
Then there’s support for records (fresh in Java 16) and sealed interface (less fresh from Java 15). Configuration cache support for the Kotlin Gradle plugin speeds up builds.
And this is it for Kotlin 1.5, according to my fellow InfoQ write (I like the sound that :-). Will this reverse Kotlin’s fortunes in the TIOBE index? I doubt it. But as we already established in the previous article, our project reality seems to not always line up with the TIOBE index anyway.
Frameworks & Libraries
Apache Turns 22
I use Apache software every day: Mostly Commons, but also POI, PDFBox, and Tika. They were pioneers for enterprise-friendly open-source libraries at a time when the GPL stroke fear into the hearts of development managers everywhere.
Originally built around the Apache HTTP server, the Apache Software Foundation now hosts 350+ projects. In Java land, we always cared more about Tomcat than HTTP Server. Even if we use Spring Boot - it’s the default servlet engine there.
And now Apache Software Foundation turns 22. Fittingly, they “conservatively value” their software offerings to be worth “$22 billion-plus”. Yeah, I don’t know either how they came up with that strangely specific amount.
Anyhow, Happy Birthday, Apache! I hope to write code still when you turn 44!
About
Karsten Silz is the author of this newsletter. He has been a Java developer for 22 years.
Karsten grew up in East Germany, behind the Iron Curtain. He wrote his first BASIC program on a Sinclair Spectrum ZX81 in 1984 and never looked back. Karsten has a Master’s degree in Computer Science from the Dresden University of Technology in 1996.
Karsten has developed software in five European countries and the US since 1996. In 2004, he co-founded a software product start-up in the US. During power outages, the product protected TV, Internet, and phone services for 50 million North American households with cable TV. Karsten led product development for 13 years and left after the company was sold successfully.
Since 2017, he has worked as a full-stack Java contractor for web (Angular) and mobile (Flutter) in Germany and the UK. He co-founded the SaaS start-up “Your Home in Good Hands” as CTO in the UK in 2020.
Karsten has this newsletter, a developer website, and a contractor site. He’s on LinkedIn, Twitter, and GitHub.