ModernJava icon indicating copy to clipboard operation
ModernJava copied to clipboard

Add a section about Serialization/Deserialization

Open Alecsandu opened this issue 1 year ago • 4 comments

It would be helpful to have a section about Serialization/Deserialization. I am suggesting this because I wanted to check what is serialized by default and thought I might find it quickly here.

That's all. Thank you for your amazing book and the work you put into it 😄.

Alecsandu avatar Dec 14 '24 14:12 Alecsandu

Sure, but unfortunately the built-in serialization mechanism is extremely complicated. Properly contextualizing what it is, when it is appropriate to use (very rarely), and the mechanisms behind it will take a lot of background work. Certainly also going through serialization in a more general context first as well.

So its on the list, but kinda far down it.

bowbahdoe avatar Dec 14 '24 16:12 bowbahdoe

@Alecsandu Slept on this for a bit - what I said above still applies, but if would you mind elaborating more on your exposure to serialization?

In what context were you shown it, how do you think about it, how was it presented, etc. I just want to make sure my mental model(s) is more or less correct there.

bowbahdoe avatar Dec 17 '24 11:12 bowbahdoe

Hi @bowbahdoe, I wanted to refresh my knowledge of serialization for a toy project, so regarding the context, I mostly looked on baeldung to see details I might have forgot or missed. For how I think about it I see it as a good way to either store or send data, and there was no direct presentation just me reading. Hope my answer will help you in the future.

Alecsandu avatar Dec 17 '24 20:12 Alecsandu

Sure, but unfortunately the built-in serialization mechanism is extremely complicated. Properly contextualizing what it is, when it is appropriate to use (very rarely), and the mechanisms behind it will take a lot of background work. Certainly also going through serialization in a more general context first as well.

So its on the list, but kinda far down it.

Builtin serialization has special behavior with records which makes it easy, meaning it could be taught easily with using only records.

Alathreon avatar Nov 07 '25 22:11 Alathreon