Re: [dev] saving program options

2010-01-25 Thread Nick Guenther
On Sun, Jan 24, 2010 at 2:57 PM, anonymous wrote: > Where programs should store their options? Sometimes it is said that > global variables are bad, but what is better? Some huge structure > storing all options? Of course, they can be divided into many > structures or they can be passed on a stack

Re: [dev] saving program options

2010-01-25 Thread markus schnalke
[2010-01-25 02:10] anonymous > > TAOUP also recommends small programs that do just one thing. If you > > have so many options that you need a "huge structure" to store them, > > that might be a sign that your program is overly complex. Consider > > factoring it into a set of smaller cooperating

Re: [dev] saving program options

2010-01-24 Thread anonymous
> TAOUP also recommends small programs that do just one thing. If you > have so many options that you need a "huge structure" to store them, > that might be a sign that your program is overly complex. Consider > factoring it into a set of smaller cooperating processes. It is not too big, but the

[dev] saving program options

2010-01-24 Thread Justin Jackson
Well said. > TAOUP also recommends small programs that do just one thing.  If you > have so many options that you need a "huge structure" to store them, > that might be a sign that your program is overly complex.  Consider > factoring it into a set of smaller cooperating processes. > > Many people

Re: [dev] saving program options

2010-01-24 Thread Charlie Kester
On Sun 24 Jan 2010 at 11:57:34 PST anonymous wrote: Where programs should store their options? Sometimes it is said that global variables are bad, but what is better? Some huge structure storing all options? Of course, they can be divided into many structures or they can be passed on a stack inst

[dev] saving program options

2010-01-24 Thread anonymous
Where programs should store their options? Sometimes it is said that global variables are bad, but what is better? Some huge structure storing all options? Of course, they can be divided into many structures or they can be passed on a stack instead of passing pointer to structure but it is not effe