On Tue, Jun 12, 2012 at 4:37 AM, Dennis Carachiola wrote:
> Here's my question. I could do this by creating the dictionary with
> the default values, then read the file into it. Or I could use a
> 'get' with default values at the location in the program where those
> values are used.
Both optio
On 06/11/2012 02:37 PM, Dennis Carachiola wrote:
> I'm programming a project which will use a file to save parameters
> needed by the program. There are already two previous file formats,
> each of which can only be run by the version of the program which
> created them. I'm trying to avoid that
This is really up to your programming style, but I'm of the opinion that
defining all of the default values in one place keeps maintenance easier.
Of course, if it's done differently elsewhere in your code base, I would aim
for consistency instead.
Thanks,
Nick Cash
-Original Message-