recode implementation (was: recode, get sample, and get columns)

Bernhard Reiter bernhard at intevation.de
Mon Aug 15 13:30:39 CEST 2005


Hi Jakson,

Am 12. Aug 2005 um 19:52:59 schrieb Jakson Aquino:
> Em Sexta 12 Agosto 2005 10:30, Bernhard Reiter escreveu:

> It seems that we have only to add the options inside the optrec[MOPT] (in 
> statist.c). For "help", for example, we have:
> 
> {"-h", &help}, {"-help", &help}, {"-?", &help}
> In this case, it's just a matter of adding one more "help": {"--help", &help}, 
I have not checked the code, but it is probably as simple as that.

> and doing the same with the other variables. And, then, update the value of 
> MOPT. We have only to choose the abbreviation letters. Suggestions:
> 
> -s --silent

we should not use abbreviation letters, because the unix convention is
that -sh would be the same as -s -h and we still allow the -silent
usage for backwards compatibility.
So for a long time (even after removing the "-long" options,
we would not be able to use short one, because there is the danger of 
old scripts.

> > There is a book called
> > 	Brian W. Kernighan & Rob Pike,
> > 	The Unix Programming Environment, 1984, Prentice-Hall.
> 
> Thanks for the reference. On Monday I'll look for it or for something similar 
> (if it's not there) in the library.

It is pretty dated, but shows the design philosphy nicely.
As I said I would not do some things as they describe there,
but it was a nice read. :)

> > The question to consider is: Does the additional effort of learning
> > statist's syntax and maintaining the code help more then
> > learing recepies in a standard language?

> Your reasons are strong. I only regret that I lost my time
> developing recode.c and you lost yours translating its verbose messages. 

Well, this cannot be helped.
It needed the additional thoughs to come to the conclusion.

> and then, everything that I once knew how to do with a slow dinosaur 
> now I know how to do with the (much faster and free) statist and friends, 
> sort, awk, join, etc...

Cool. :)
	Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050815/0398cfb5/attachment.bin


More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)