[OT] this is why you shouldn't serialize everything

Shachar Shemesh via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 13 00:08:42 PDT 2017


On 11/09/17 12:56, Kagamin wrote:
> https://cwiki.apache.org/confluence/display/WW/S2-052
> .net can, but WCF requires explicit vetting of types for protocol.

I've heard it somewhere that the original .doc file format was simply a 
serialization of the internal Word data structure. They got a save/load 
for practically free.

Then they bring out a new version, and guess what? You cannot change 
anything, because you can no longer read the old files.

Then it turns out that when you serialize "everything", you also 
serialize the undo buffer. So you can read things that someone wrote and 
then erased in the document.

Yeah. Serialization is fine, but should be used judicially.

Shachar


More information about the Digitalmars-d mailing list