patternsshare & 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:Data-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-14Incremental 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-08Utilities, Singletons and Dependency Injection - Effective Java, Items 3-5#video#book‑club #patternsMildly surprising (to me), it makes sense to discuss these three patters in one video - so here it goes2018-11-27Use Builders... Cautiously - Effective Java, Item 2#video#book‑club #patternsWhy and how to avoid the builder pattern and how to make best use of it if you can't2018-10-09Static Factory Methods - Effective Java, Item 1#video#book‑club #patternsHow to use static factory methods to overcome three shortcomings of constructors2018-09-24JavaFX, Project Jigsaw and JEP 253#post#java‑next #java‑9 #javafx #project‑jigsaw #patternsJEP253 aims to prepare JavaFX for Project Jigsaw by defining public APIs for functionality that will become inaccessible due to modularization.2015-05-18Interface Evolution With Default Methods - Part I: Methods#post#default‑methods #java‑8 #patternsPatterns for interface evolution with default methods: gradually add, replace and remove interface methods without breaking client code.2015-02-26The Serialization Proxy Pattern#post#clean‑code #patterns #serializationA presentation of the Serialization Proxy Pattern as defined in Effective Java. It defines the pattern, describes its implementation and gives examples.2014-10-29The Decorator Pattern With Default Methods#post#clean‑code #patterns #default‑methods #java‑8Use Java 8's default methods to make the decorator pattern even more beautiful, which results in more concise and readable code.2014-09-30How The Decorator Pattern Saved My Day#post#clean‑code #patternsA real-life example how the decorator pattern enables future changes and improves code quality by upholding the Single Responsibility Principle.2014-09-22