pattern-matchingshare & followShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:▼s+fShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:Java 23: Restoring the Balance with Primitive Patterns - Inside Java Newscast #66#video#java‑23 #pattern‑matchingThe ongoing introduction of pattern matching to Java has unbalanced the language. Here's how primitive patterns (in Java 23) and other patterns (in future versions) will fix that.2024-04-04(Dirty?) Tricks in Java 22 - Inside Java Newscast #64#video#pattern‑matching #optional #clean‑codePattern matching Optional, expanding sealed type hierarchies, nesting switches, reverting instanceof, and more - so many (dirty) tricks to play around with in modern Java2024-02-29The Hottest Language You Didn't Have On Your Radar#talk#pattern‑matching #performance #records #virtual‑threadsWith so much going on in the programming language space, it's easy to miss any specific language's success story and so in this talk I want to put a particularly hot one on your radar2024-02-05Java 21 Pattern Matching Tutorial#video#java‑21 #pattern‑matching #java‑basicsJava 21 is the first Java release with all essential pattern matching features finalized: sealed types, type patterns, an improved switch, records, and record patterns. This tutorial puts them all together.2023-09-17Modern Java in Action#talk#java‑21 #virtual‑threads #pattern‑matching #recordsLet's write a GitHub Crawler and let's throw in everything Java (23) has to offer2023-09-03Getting Rid Of Unused Variables (Finally) - Inside Java Newscast #46#video#pattern‑matchingJEP 443 proposes to add unnamed variables and patterns to Java. With them, unused variables and patterns can be replaced by a single underscore, which helps writing readable and maintainable code.2023-04-1324 Java Features You Missed In 2022 - Inside Java Newscast #39#video#collections #documentation #java‑18 #java‑19 #pattern‑matching #performance #recordsJDK 18 and JDK 19 preview a number of big ticket features but they also come with a lot of smaller improvements. Here are 24 less-known features that were added to Java in 2022. Among them additions to Future and ForkJoinPool, to HashSet and HashMap, Security and GC improvements, Custom Localized Date-Time Formats and an Internet Address Resolution SPI, and much more.2022-12-15Data-Oriented Programming Version 1.1#talk#pattern‑matching #sealed #project‑amberData-oriented programming models data as data: records for entities and sealed types for alternatives. Combined with pattern matching we can define operations on the data without overloading it with functionality.2022-09-27Data-Oriented Programming - Inside Java Newscast #29#video#records #sealed #pattern‑matching #patterns #techniquesData-oriented programming focuses on modeling data as data (instead of as objects). Records for data and sealed types for alternatives let us model immutable data where illegal states are unrepresentable. Combined with pattern matching we get a safe, powerful, and maintainable approach to ad-hoc polymorphism that lets us define operations on the data without overloading it with functionality.2022-07-14Deconstructing Records in Pattern Matching - Inside Java Newscast #26#video#project‑amber #pattern‑matchingHow record patterns use records' transparency to safely deconstruct them in pattern matching, allowing us to separate checking structure and value of data from processing it.2022-06-02News Grab Bag: Loom Virtual Threads, Lilliput, Pattern Matching, ... - Inside Java Newscast #25#video#project‑loom #tools #project‑lilliput #project‑amber #pattern‑matching #communityProject Loom's virtual threads are merged and ship with JDK 19 - here's to prepare for them. Also, news on Project Lilliput, proposal for record patterns in pattern matching, some astonishing numbers from Sonatype on Maven Central, and the move of OpenJDK to openjdk.org.2022-05-19when And null In Pattern Matching - Inside Java Newscast #24#video#project‑amber #pattern‑matchingJEP 427 proposes two changes to pattern matching in switch: 1. Guarded patterns, which belonged to patterns, are replaced with when clauses, which belong to the case. 2. null needs to be handled by a specific case null.2022-05-05How To Use switch In Modern Java#post#switch #pattern‑matchingSince Java 14 introduced switch expressions, using switch isn't as straight-forward as it used to be: colons or arrows, statement or expression, labels or patterns? Here's how to best use switch in modern Java.2022-04-19All About JDK 18 - Inside Java Newscast #21#video#java‑18 #project‑amber #project‑panama #pattern‑matching #tools #reflection #documentationRefinements in pattern matching and Panama's foreign and vector APIs; a new command jwebserver and a new IP address resolution SPI; preparing code for UTF-8 becoming the default character set and for the eventual removal of finalization; and a few more bits and pieces.2022-03-10State of Pattern Matching with Brian Goetz#video#project‑amber #pattern‑matching #conversationConversation with Project Amber lead Brian Goetz about pattern matching in Java: Why Map::get should be a pattern, the linear thinking trap and how it impacts null handling in pattern matched, exhaustiveness in switch statements and the rehabilitation of switch.2022-02-1611 Tricks From dev.java - Inside Java Newscast #14#video#generics #lambda #pattern‑matching #records #serializationFrom compact record constructors to boolean expressions in pattern matching, from generic wildcards to chaining predicates and comparators, from jpackage to jlink - here are 11 Java tricks handpicked from dev.java.2021-10-28Incremental Evolution, Pattern Switches vs Visitor Pattern, and Wayland Support - Inside Java Newscast #8#video#java‑17 #project‑panama #pattern‑matching #sealed #patternsHow the six-month release cadence enabled a more incremental evolution of the Java platform and how pattern switches and sealed classes are an alternative to the visitor pattern. Also, maybe Wayland support for Java.2021-07-15Visitor Pattern Considered Pointless - Use Pattern Switches Instead#post#patterns #pattern‑matching #sealedIn modern Java, the visitor pattern is no longer needed. Using sealed types and switches with pattern matching achieves the same goals with less code and less complexity.2021-07-08Pattern Matching in Switches and Security Manager Deprecation - Inside Java Newscast #5#video#switch #pattern‑matching #deprecationJEP 406, which is a candidate for Java 17, introduced pattern matching in switch statements and expressions, introduces guarded patterns, and improves null handling. Then we need to talk about JEP 411's deprecation of the security manager.2021-05-27Patterns, switch, and Valhalla's Primitive Classes - JDK News #2#video#java‑next #openjdk #project‑amber #pattern‑matching #project‑valhalla #primitive‑classesProject Amber brings new patterns and puts them into switch while Project Valhalla takes off and proposes introducing primitive classes2021-03-05Type Pattern Matching with instanceof#post#java‑16 #java‑basics #pattern‑matchingType patters with instanceof are Java's first step towards pattern matching. Motivation, syntax, details, and future applications - here's all you need to know.2021-02-23Pattern Matching in Java#post#java‑basics #pattern‑matchingJava takes its first steps towards pattern matching but the topic is much larger than instanceof. Goals, terminology, flow scoping - these apply to all kinds of patterns.2021-02-16Pattern Matching Quartet - JDK News #1#video#java‑next #project‑amber #pattern‑matchingA summary of four recent discussions about pattern matching on the Project Amber mailing lists2021-01-26What Future Java Might Look Like#post#java‑next #project‑valhalla #generics #pattern‑matching #primitive‑classesJava's future is full of cool advances: data classes, value types, generics over primitives, pattern matching, etc. Let's peek into Java's future!2016-12-01