Table of Contents Module design pattern before Java 9Pushing modularization forward with JEP-476ConclusionReferences Although the module design pattern can be implemented in many different ways, the main motivation behind using it remains the same. This is the isolation of a …
-
Exploring New Features in JDK 23: Just-Write-And-Run prototyping with JEP-477 not only for beginners
Table of Contents It seems like it’s never been easier to start writing a simple program that can be turned into a more advanced one as development progresses. Let’s explore possibilities delivered by JDK 23 release.Analyzing, Parsing and understanding dataConclusionReferences …
-
Exploring New Features in JDK 23: Gatherers upgrades pipeline design pattern JEP-473
Table of Contents Expanding intermediate functions with JEP-461Collection of build-in gatherersConclusionReferences Source-code flexibility goes hand in hand with maintainability and testability. The Java language benefits not only from its maturity but also from the fact that it is strongly typed. …
-
Exploring New Features in JDK 23: Builder Pattern Simplicity with JEP-455 Primitive Types in Patterns, instanceof, and switch (Preview)
Table of Contents Building a vehicleConclusionReferences The runtime initiation of any program requires allocating a given memory and after many additional steps the first object could be created. In a previous post, we explored how to improve maintainability of complex …
-
Exploring New Features in JDK 23: Null object pattern to avoid null pointer exception with JEP-455
Table of Contents Functional nature of the code and nullConclusionReferences The newest release JDK 23 [2] comes with a neat extension to pattern matching for switch and instanceof statements, JEP-455: Primitive Types in Patterns, instanceof and switch [1]. While the …
-
Exploring New Features in JDK 23: Factory Pattern with Flexible Constructor Bodies with JEP-482
Table of Contents Creational design pattern factory reviewSimplifying factory method with JEP-482ConclusionResources Since the introduction of the new JDK release cadence, we have seen an incredible amount of new enhancements added to each JDK cycle, kicking the Java platform back …
-
Java 23 Has Arrived, And It Brings a Truckload of Changes
Table of Contents From Project AmberJEP 455: Primitive Types in Patterns, instanceof, and switch (Preview)JEP 476: Module Import Declarations (Preview)JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)JEP 482: Flexible Constructor Bodies (Second Preview)What Happened to String Templates?From …