Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-03 Thread Fritz Anderson
On 2 Sep 2013, at 12:47 AM, Marcel Weiher wrote: > This gets (mis-)quoted out of context way too much (my emphasis): > > "We should forget about small efficiencies, say about 97% of the time: > premature optimization is the root of all evil” > > It goes on as follows: > > "Yet we should

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Marcel Weiher
On Sep 1, 2013, at 18:26 , Uli Kusterer wrote: > Honestly, I wouldn’t use non-keyed archiving anymore these days. Either you > need performance so badly that you create your own file format (or use > something specialized for a particular need, like sqlite), or you use keyed > archiving. It’s

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Graham Cox
On 01/09/2013, at 5:07 PM, Marcel Weiher wrote: > Well, archiving in general is pretty convenient, I am just trying to figure > out how significant the benefits of keyed archiving are in particular (as > compared to, for example, old style archiving). If you’re on iOS you don’t > have a choi

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Uli Kusterer
On Sep 1, 2013, at 17:07, Marcel Weiher wrote: > Well, archiving in general is pretty convenient, I am just trying to figure > out how significant the benefits of keyed archiving are in particular (as > compared to, for example, old style archiving). If you’re on iOS you don’t > have a choice,

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Maxthon Chan
I use keyed coding with defaults to solve this issue, keys never change meaning after definition, app should ignore non-recognised keys and missing keys are defaulted or inferred from existing ones. On Sep 1, 2013, at 23:07, Marcel Weiher wrote: > Hi Graham, > > thanks for sharing your experi

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Marcel Weiher
Hi Graham, thanks for sharing your experience, that’s really helpful! On Sep 1, 2013, at 11:54 , Graham Cox wrote: > On 31/08/2013, at 6:48 PM, Marcel Weiher wrote: >> So you’ve had good practical experience with forward/backward compatible >> designs? > > Yes. > > But let me qualify it :) B

Re: Experience with keyed archiving forward/backwards compatibility?

2013-09-01 Thread Graham Cox
On 31/08/2013, at 6:48 PM, Marcel Weiher wrote: > > On Aug 29, 2013, at 11:54 , Graham Cox wrote: > >> >>> So the whole automagic forward/backward compatibility that we’re supposed >>> to get with keyed archives doesn’t actually pan out. If you want >>> compatibility, you have to plan and

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-29 Thread Graham Cox
On 29/08/2013, at 10:35 AM, Marcel Weiher wrote: >> Also, if you add a new class, the old application won't be able to >> de-serialize it from a keyed archiver. > > Hadn’t thought of that one! Er…I meant to say “completely obvious!!" You can plan ahead for this eventuality though. A keyed (

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-29 Thread Marcel Weiher
Hi Uli, thanks for your in-depth response! On Aug 28, 2013, at 20:38 , Uli Kusterer wrote: > On Aug 28, 2013, at 4:53 PM, Marcel Weiher wrote: >> does anyone have practical experience with the forward/backward >> compatibility aspect of keyed archiving? That is define a file format using >>

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-28 Thread Uli Kusterer
On Aug 28, 2013, at 4:53 PM, Marcel Weiher wrote: > does anyone have practical experience with the forward/backward compatibility > aspect of keyed archiving? That is define a file format using keyed > archiving where backward and forward compatibility was both desirable and > achieved? Hi,

Re: Experience with keyed archiving forward/backwards compatibility?

2013-08-28 Thread Keary Suska
On Aug 28, 2013, at 8:53 AM, Marcel Weiher wrote: > does anyone have practical experience with the forward/backward compatibility > aspect of keyed archiving? That is define a file format using keyed > archiving where backward and forward compatibility was both desirable and > achieved? Do yo

Experience with keyed archiving forward/backwards compatibility?

2013-08-28 Thread Marcel Weiher
Hi folks, does anyone have practical experience with the forward/backward compatibility aspect of keyed archiving? That is define a file format using keyed archiving where backward and forward compatibility was both desirable and achieved? Thanks! Marcel