Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:32
Super Lloyd23-Jun-16 11:32 
GeneralRe: Tada! A new serializer is coming! Pin
curtis175723-Jun-16 18:32
curtis175723-Jun-16 18:32 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd21-Jun-16 23:27
Super Lloyd21-Jun-16 23:27 
GeneralRe: Tada! A new serializer is coming! Pin
Marc Clifton22-Jun-16 1:44
mvaMarc Clifton22-Jun-16 1:44 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 2:15
Super Lloyd22-Jun-16 2:15 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 9:41
Super Lloyd22-Jun-16 9:41 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd2-Jul-16 2:46
Super Lloyd2-Jul-16 2:46 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen22-Jun-16 6:07
peterchen22-Jun-16 6:07 
Versioning support:

Can it read a stream written by an older version, with well-defined and useful behavior for the properties not present in the stream?

Can it read a stream written by a newer version that contains properties it does not understand?

Another problem I've commonly ran into is class invariants: they must be guaranteed when the class is properly constructed, but during serialization, it is not.

Typically, they are enforced through getters/setters - but if a serializer initializes an object through those, it can encounter incorrect intermediate states.

If constraints are not checked during read, then you need a separate function validating the object, duplicating the code in the getters / setters.

I haven't encountered a enjoyable solution to that problem that did not end with "well, then you have to change how your class is implemented".


Or, to snowclone a wonderful quote: The amount of serializers available is a sure sign that none of them really works.


GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 9:57
Super Lloyd22-Jun-16 9:57 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen23-Jun-16 23:40
peterchen23-Jun-16 23:40 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd24-Jun-16 0:00
Super Lloyd24-Jun-16 0:00 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen24-Jun-16 1:43
peterchen24-Jun-16 1:43 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd24-Jun-16 1:49
Super Lloyd24-Jun-16 1:49 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd2-Jul-16 2:47
Super Lloyd2-Jul-16 2:47 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen4-Jul-16 2:27
peterchen4-Jul-16 2:27 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd4-Jul-16 14:41
Super Lloyd4-Jul-16 14:41 
GeneralRe: Tada! A new serializer is coming! Pin
Kent Bolton22-Jun-16 20:05
Kent Bolton22-Jun-16 20:05 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 20:07
Super Lloyd22-Jun-16 20:07 
GeneralRe: Tada! A new serializer is coming! Pin
Thornik23-Jun-16 0:53
Thornik23-Jun-16 0:53 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:15
Super Lloyd23-Jun-16 11:15 
GeneralRe: Tada! A new serializer is coming! Pin
_groo_23-Jun-16 2:53
_groo_23-Jun-16 2:53 
QuestionRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:23
Super Lloyd23-Jun-16 11:23 
PraiseRe: Tada! A new serializer is coming! Pin
Ksmith @ MC Weekly23-Jun-16 6:47
Ksmith @ MC Weekly23-Jun-16 6:47 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:24
Super Lloyd23-Jun-16 11:24 
GeneralRe: Tada! A new serializer is coming! Pin
HenryWDC24-Jun-16 5:50
HenryWDC24-Jun-16 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.