From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | Re: st: RE: Taking averages, etc. |
Date | Wed, 17 Dec 2003 07:55:56 -0500 |
At 06:34 AM 12/17/2003 -0600, Fred Wolfe wrote:
However, as Nick will probably tell you soon, there is much to said for simplicity and clarity. I prefer to define the if condition into individual variables together with textual notes or labels to state what the variables mean. Complicated code is all well and good when you are writing it, but when you come back to the program 6 months later the code is very difficult to understand.Thanks Fred. To me, an if-then-else structure is simpler, clearer and less error prone. Not only is it used by SPSS, it is used by most programming languages I have worked with. And, it is easy enough to add comments explaining what the code does, which I think should be done with anything you might go back to 6 months later.
Fred
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |