|
| And, of course, get ready for Java 15 |
|
| Week of September 14, 2020 |
What do you do when a client can handle only a relatively small amount of data at a time? Reactive streams can enable a system where the client controls the stream flow in a way that’s asynchronous and nonblocking. Daniel Kec shows how to efficiently use Helidon and WebSockets to set up a publish/subscribe system in Java—without a lot of hassle.
And while BigDecimal is by no means a new class, it can be somewhat confusing for even the most experienced developers. Let’s sort that out: Frank Kiwy points out four of the most common pitfalls of BigDecimal and shows us how to avoid them.
Java 15: We began our discussion a few weeks ago by talking about the fourteen JEPs; continue to see all the goodness in the latest release by exploring all the resources on the Java homepage.
And don’t forget to match your expertise against the latest quizzes from Simon Roberts and Mikalai Zaikin.
Take care, Alan Zeichick Editor in Chief, Java Magazine @zeichick |
|
|
|
|
| New articles for you |
Reactive streams programming over WebSockets with Helidon SE Reactive streams programming is gaining popularity as a way to handle asynchronous stream processing, and more and more APIs are adopting a reactive approach. With a reactive approach, everything has to be asynchronous and nonblocking—and the implementation needs a mechanism for feedback to regulate data flow, so slow subscribers won’t be drowned by faster publishers. Read all about that in Daniel Kec’s article.
Four common pitfalls of the BigDecimal class and how to avoid them When doing business calculations in Java, especially those involving currencies, you might use the java.math.BigDecimal class. BigDecimal contains a number of methods that can meet the requirements of common business calculations. Frank Kiwy would like to draw your attention to four interesting challenges when using the BigDecimal API. |
|
| Almost new articles for you |
Inside Java 15: Fourteen JEPs in five buckets The JEPs in Java 15 can be lumped into five buckets: Fun exciting new features, additions to existing Java SE standards, modernization of a legacy Java SE feature, a look forward to new stuff, and the inevitable removals and deprecations. What does that mean? Sealed classes! Hidden classes! A new digital signature algorithm! Records! Text blocks! Alan Zeichick takes you on a quick tour of those JEPs.
The code underpinning the Brazilian healthcare system—and other world-changing Java applications It was with a smidge of trepidation that Alexa Weber Morales offered her list of the 25 greatest Java applications, frameworks, platforms, and libraries ever written. After all, developers are a demanding audience. But the article received hundreds of comments on Reddit, Slashdot, Hacker News, and Twitter, and it inspired many letters to the editor. In this article, see what Java Magazine readers had to say.
Hello, Coherence Community Edition: Creating cloud native stateful applications that scale, Part 1 Coherence CE may often be the best option you have when building modern, cloud native applications and services. This article by Oracle architect Aleks Seović explores Coherence CE and shows how the open source library works with the Helidon REST service, server-sent events, the gRPC server, JavaFX, and React.
Beyond the simple: An in-depth look at nested, dynamic, and parameterized tests in JUnit 5 JUnit 5 brings a host of new features for test authors and introduces the notion of a JUnit platform. At a high level, this new platform includes APIs for IDEs and build tools to integrate with testing frameworks, as well as an abstraction to implement test engines. This article by Matthias Merdes and Juliette de Rancourt focuses on some of the more advanced features related to writing and running JUnit tests, namely nested, dynamic, and parameterized tests.
The joy of writing command-line utilities: Finding duplicate files, Part 1 Writing command-line utilities for your own use is an agreeable and productive way to explore Java and create side projects that you will actually finish, explains Java guru (and former Java Magazine editor in chief) Andrew Binstock. In this new article series, you’ll learn how to write such a utility to scan a file system for duplicates using interesting Java APIs. |
|
| Complimentary subscription to Java Magazine |
Java Magazine is a deep dive into Java and the JVM. Find detailed explanations about the language and the platform written by experts and members of the Java development team.
Join a quarter of a million subscribers in getting useful, authoritative programming information delivered directly to your inbox. |
|
|
|
|
|