Using Record Types to Build Better Domain Models by Henning Schwentner
HTML-код
- Опубликовано: 28 авг 2024
- Not everything in the world is an object. That's why DDD defines different design patterns, like Entity, Value Object, Repository, etc. Beginning with Java 14 Oracle has provides us with Record Types. They are a step towards true value types. We look at the current status and what's in the box for the future.
In this talk we will look at:
* what's behind the motto "Codes like a class - works like an int"
* why immutabilty leads to less failures
* why value types make your code at the same time better readable and more efficient
* the difference between refence and value types
* the new syntax to support value types in Java
* how value types are implemented in other languages
* what inheritance means for value types
* the advantages of storing data on the stack versus storing data on the heap
* and most important: how value types can help us to provide a better domain model
Henning Schwentner
Henning loves programming in high quality. He lives this passion as coder, coach, and consultant at WPS - Workplace Solutions. There he helps teams to structure their monoliths or to build new systems from the beginning with a sustainable architecture. Microservices or self-contained systems are often the result. Henning is author of “Domain Storytelling” (Addison-Wesley, 2022), and the www.LeasingNinja.io as well as translator of “Domain-Driven Design kompakt” (dpunkt, 2017).
------------------------------------------------------------
INTRO
* visuals & editing by @Mercator
* music : Avocado by Ephixa
The talk name is "Using Record Types ... " but first slide with Java records actually appears on 30th minute. So only last 10 minutes of the talk were related to Java records. I think too little
First mention of records at 30:46
Ich sehe du hast dein Faible für animierte Graphiken nicht verloren... ;-)
why destroying ears at the end.....