Re: data design

2007-02-01 Thread Jussi Salmela
James Stroud kirjoitti: > > > > For instance, I have a copy_files section of a configuration. In order > to know what goes with what you have to resort to gymnastics with the > option names > > [copy_files] > files_dir1 = this.file that.file > path_dir1 = /some/path > > files_dir2 = the_othe

Re: data design

2007-01-31 Thread James Stroud
BJörn Lindqvist wrote: > On 1/31/07, James Stroud <[EMAIL PROTECTED]> wrote: >> [copy_files] >> files_dir1 = this.file that.file >> path_dir1 = /some/path >> >> files_dir2 = the_other.file yet_another.file >> path_dir2 = /some/other/path >> >> In yaml, it might look thus. >> >> copy_files : >>

Re: data design

2007-01-31 Thread BJörn Lindqvist
On 1/31/07, James Stroud <[EMAIL PROTECTED]> wrote: > [copy_files] > files_dir1 = this.file that.file > path_dir1 = /some/path > > files_dir2 = the_other.file yet_another.file > path_dir2 = /some/other/path > > In yaml, it might look thus. > > copy_files : > - files : [this.file, that.file] >

Re: data design

2007-01-31 Thread Imbaud Pierre
James Stroud a écrit : > Szabolcs Nagy wrote: > >>> Hurray for yaml! A perfect fit for my need! And a swell tool! >>> Thanks a lot! >> >> >> >> i warn you against yaml I feel both thanful, and sorry, for your warning. And not convinced yet, but Ill be cautious. >> it looks nice, but the underlying

Re: data design

2007-01-31 Thread skam
On Jan 30, 8:06 pm, "Paddy" <[EMAIL PROTECTED]> wrote: > > Google for YAML and JSON formats too > YAML and JSON are good when used as data-interchange format, not as configuration files. These formats are too complex for non-programmers, so they will ask aid for every editing ;) I suggest ini-lik

Re: data design

2007-01-30 Thread James Stroud
Szabolcs Nagy wrote: >>Hurray for yaml! A perfect fit for my need! And a swell tool! >>Thanks a lot! > > > i warn you against yaml > it looks nice, but the underlying format is imho too complex (just > look at their spec.) > > you said you don't want python source because that's too complex for

Re: data design

2007-01-30 Thread Szabolcs Nagy
> Hurray for yaml! A perfect fit for my need! And a swell tool! > Thanks a lot! i warn you against yaml it looks nice, but the underlying format is imho too complex (just look at their spec.) you said you don't want python source because that's too complex for the users. i must say that yaml i

Re: data design

2007-01-30 Thread Imbaud Pierre
Paddy a écrit : > > On Jan 30, 2:34 pm, Imbaud Pierre <[EMAIL PROTECTED]> wrote: > >>The applications I write are made of, lets say, algorithms and data. >>I mean constant data, dicts, tables, etc: to keep algorithms simple, >>describe what is peculiar, data dependent, as data rather than "case >

Re: data design

2007-01-30 Thread Paddy
On Jan 30, 2:34 pm, Imbaud Pierre <[EMAIL PROTECTED]> wrote: > The applications I write are made of, lets say, algorithms and data. > I mean constant data, dicts, tables, etc: to keep algorithms simple, > describe what is peculiar, data dependent, as data rather than "case > statements". These co

Re: data design

2007-01-30 Thread Larry Bates
Imbaud Pierre wrote: > Larry Bates a écrit : >> Imbaud Pierre wrote: >> >>> The applications I write are made of, lets say, algorithms and data. >>> I mean constant data, dicts, tables, etc: to keep algorithms simple, >>> describe what is peculiar, data dependent, as data rather than "case >>> stat

Re: data design

2007-01-30 Thread Imbaud Pierre
Larry Bates a écrit : > Imbaud Pierre wrote: > >>The applications I write are made of, lets say, algorithms and data. >>I mean constant data, dicts, tables, etc: to keep algorithms simple, >>describe what is peculiar, data dependent, as data rather than "case >>statements". These could be called c

Re: data design

2007-01-30 Thread Imbaud Pierre
Szabolcs Nagy a écrit : >>The lazy way to do this: have modules that initialize bunches of >>objects, attributes holding the data: the object is somehow the row of >>the "table", attribute names being the column. This is the way I >>proceeded up to now. >>Data input this way are almost "configurati

Re: data design

2007-01-30 Thread Szabolcs Nagy
> The lazy way to do this: have modules that initialize bunches of > objects, attributes holding the data: the object is somehow the row of > the "table", attribute names being the column. This is the way I > proceeded up to now. > Data input this way are almost "configuration data", with 2 big > d

Re: data design

2007-01-30 Thread Larry Bates
Imbaud Pierre wrote: > The applications I write are made of, lets say, algorithms and data. > I mean constant data, dicts, tables, etc: to keep algorithms simple, > describe what is peculiar, data dependent, as data rather than "case > statements". These could be called configuration data. > > The

data design

2007-01-30 Thread Imbaud Pierre
The applications I write are made of, lets say, algorithms and data. I mean constant data, dicts, tables, etc: to keep algorithms simple, describe what is peculiar, data dependent, as data rather than "case statements". These could be called configuration data. The lazy way to do this: have module