Records πΏ are one of the most exciting changes that have come to Java since Lambdas and Streams in Java 8. Let's review some of the key benefits and library integrations for Records.
1/6
Sometimes during data transform a data type is only needed with context of a single method. Local Records allow a data type to be defined as a single line within a method.
2/6
Serialization is one of the scariest areas in Java, with a lot of easy to overlook traps that could leave your application vulnerable. Records address a lot of common serialization vulnerabilities.
3/6
Sharing data with remote services is a very common need in modern software development. This often requires serializing data into easily interchangeable formats like JSON or XML. Let's review the support for Record serialization provided by some popular libraries.
4/6
Because immutability is a central concept of Records, they will never be a candidate for a JPA entity. However they can be used as JPA projections!
5/6
Happy coding!
6/6
βοΈMade a mistake when uploading, here is the correct video
Because immutability is a central concept of Records, they will never be a candidate for a JPA entity. However they can be used as JPA projections!
5/6
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
String is one of the most often utilized JDK classes by Java developers. Let's take a look at how String has been improved in recent Java releases, as well as some over looked features from older releases.
1/7
Text Blocks were added in Java 15, and introduce the concept of a 2-dimensional String. Text Blocks greatly improve the experience of working with markup languages like; XML, JSON, HTML, as Strings.
2/7
The String classes has seen a lot of work done to it since JDK 8, with many new helper methods being added. Check out this Sip of Java were I cover some of the key new additions.