Billy Korando πŸƒβ˜•οΈ 🐈🐈 Profile picture
#Java Developer Advocate @Oracle β˜•οΈπŸ₯‘. @KCJUG co-organizer. Formerly; @IBM, @KeyholeSoftware, @niprcom. Opinions are my own. Trolled by @briseida_ko πŸ’

May 6, 2022, 7 tweets

Hey #Java developers, β˜•οΈ

It's your Friday #SipOfJava thread! 🧡

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

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling