[Biococoa-dev] mass calculator bug
jtimmer at bellatlantic.net
Sun Aug 29 18:41:32 EDT 2004
>> The use of tempDict is just basic error trapping. If the file's
>> they key could be absent or malformed, so I check whether it's present
>> and a
>> valid NSDictionary before trying to use it.
>> If we were being really careful, I'd have an "else" statement that
>> threw an
>> exception, but I can't really decide how best to define exceptions at
> This is the other example which triggered my safety vs speed email.
> WE provide the basic plist, so it should work period. I can see two
> reason why it couldn't. First, the download/installation went terribly
> wrong, in case this probably isn't the only thing broken and everything
> goes bananas. Second, the developer (or user) has tinkered/changed our
> plist, which he obviously did wrong. Why then save his *ss? He should
> simply repair/adjust the plist before shipping his app. I don't see a
> reason for the error checking code. To black and white?
Here, I'd argue that we'd do a service to developers to throw an exception
that was informative. If just one nucleotide got corrupted in the .plist,
it'd be a nightmare to figure out why the app was crashing (especially if it
was an ambiguous one that wasn't used often). Even a good NSLog would be
better than nothing.
This mind intentionally left blank
More information about the Biococoa-dev