DEV Community

Karsten Silz
Karsten Silz

Posted on • Originally published at bpfnl.substack.com

How to Build Java Applications Today: April 12, 2021

TLDR

My VJUG talk video’s available, Microsoft announce OpenJDK distribution, how branches work in Git, IntelliJ 2021.1, Quarkus 1.13, and JDK Mission Control 8.

README

This is issue #31 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?!

If you like my newsletter, then subscribe to it on Substack!


Quote of the Week

Nearly all men can stand adversity, but if you want to test a man's character, give him power.
Abraham Lincoln, 16 US president (1809-1865)


Stand-Up

Last Wednesday, I gave my first talk at the Virtual Java User Group (VJUG). Once more, the topic was “How Should Java Developers Build Front-Ends for Web, Mobile & Desktop Today”. At 50 minutes for the talk plus 8 minutes for questions & answers, it’s a bit on the long side. I need to cut out 5-10 minutes the next time.

Anyhow, my audience seemed to like it: On a scale from 1 (very bad) to 5 (very good), 9 people gave me a combined score of 4.7. So if you want to see the videos, the slides, additional information, and links for getting started, then head over to the talk page!


Bookmarks

Java

Microsoft Announces OpenJDK Distribution

Surprising exactly no one, Microsoft announced its own Java distribution last week. You can get preview versions of Java 11 and Java 16 here. Microsoft’s distribution uses the build scripts and test suite of Eclipse Adoptium for its OpenJDK builds. “Adoptium” is the new name of the leading OpenJDK distribution AdoptOpenJDK.

Well, Mr. Smarty Pants, why was that sooo obvious then?

Microsoft bought jClarity in August 2019. That’s the company behind AdoptOpenJDK. And Microsoft hired people like the JHipster project lead Julien Dubois to get more Java onto their Azure cloud platform. So just like Amazon, Microsoft now has its own OpenJDK for its cloud platform. Google, when will you join the fray?

And how’s Microsoft’s OpenJDK distribution different from AdoptOpenJDK and other OpenJDK builds? It isn’t - unless you’re on Azure: It may get some patches (e.g., for Azure or Windows) before they make their way officially into OpenJDK. And I’m sure Microsoft’s JDK plays nice with Windows.

Microsoft’s Announcement


Tools

How Branches Work in Git

What’s the Jeopardy-style question for the answer “A pointer to the latest commit in a given context”? It’s “What is a Git branch?” So there you have it: A branch is a commit in Git. And switching branches means having a different HEAD commit.

If you still want to know more details, then read on!

Article


Releases

IntelliJ 2021.1

The most popular Java IDE (see “JRebel 2021 Java Technology Report” in issue #27) just got its first major release of 2021. So, what’s in it for us Java developers?

IntelliJ now has “basic support for Java 16”. Last month they said, “IntelliJ IDEA 2021.1 supports all the new language features from Java 17”. So what gives?! And JetBrains is really pushing its GitHub/Gitlab competitor Space and its remote pair programming tool Code With Me on us this time.

IntelliJ previews HTML files in the IDE (instead of launching a browser) and improves templates for Git pull requests and Git commits. With “Run Targets”, we can “run, test, profile, and debug our application in Docker containers or on remote machines”. That sounds cool - but how often do we really need to debug an application in production this way? And the profiler has a better UI and more measurements.

Shorter announcement & video, longer What’s New


Quarkus 1.13

Red Hat’s/IBM’s microservice framework Quarkus marches on relentlessly: Version 1.23 is released not even six weeks after version 1.12 came out. Is that enough time for new features?

It certainly seems that way: When running tests, the so-called DevServices can start Docker containers to support our tests (e.g., with a database container). We can use tracing from the OpenTelemetry project (while “metrics and logging are still under development”). When running in Kubernetes, Quarkus can connect to some services without additional configuration. Using web-sockets doesn’t require the Undertow servlet container anymore. And Jacoco generates test coverage reports now.

If Quarkus’ disappointing market share of 6% (see “JRebel 2021 Java Technology Report” from issue #27) doesn’t increase, it won’t be because of a lack of releases!

Announcement


JDK Mission Control 8

Oracle tells us that with Java Flight Recorder (JFR), we can profile our Java applications in production - adding just 1% overhead (see “Profiling in Production?“ in issue #25). If we do this, we need “JDK Mission Control” (JMC) to look at the results. And here we just got version 8.0, the same day that Java 16 was released.

It seems like a minor release: Flame graphs highlight where the CPU spends the most time. A treemap view makes it easier to spot which objects use the most memory. Thread graphs have more filters. And JMC can read JFR recordings with LZ4 compression.

It sure seems like profiling our Java applications is now easier than ever!

Announcement


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 web & mobile full-stack Java contractor. 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 LinkedInTwitter, and GitHub.

Discussion (0)