Records were introduced in Java 16, and to show it can be done, there is a UnixDomainPrincipal record in the JDK. But that's it for the public part of the JDK. Elsewhere, I have not seen a profusion of record types either. Yet, I found records immensely useful in smaller programs, and I wonder if they are under-appreciated.| Cay Horstmann's Unblog
In this series of articles, I reflect on what I learned from working through the 2023 Advent of Code problems in Java. This installment is all about streams. When should you use them, and when should you stick with loops?| Cay Horstmann's Unblog
Update 29.01.2023: Adapted the code to work with Mastodon 4.0 and replaced linuxrocks.online by floss.social Update 15.03.2023: Thanks to @veronica@mastodon.online, this code now handles replies in a lot nicer way. You might want check out her solution too. Update 07.07.2023: Thanks to @cassidy@blaede.family, the layout was improved and this now handle emojis One of the biggest disadvantages of static site generators is that they are static and can’t include comments.| Carl Schwan