Re: The MOVE problem
- From: billg999@xxxxxxxxxxx (Bill Gunshannon)
- Date: 31 Oct 2007 12:26:49 GMT
In article <56_Vi.15993$lD6.14460@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
spambait@xxxxxxxxxx (Doug Miller) writes:
In article <ssZVi.44717$b9.24845@xxxxxxxxxxxxxxxxxxxxxx>, "Judson McClendon" <judmc@xxxxxxxxxxxxx> wrote:
Thanks Bill, I thought you would come back with a definitive response. :-)
MOVE A(B) TO B C(B).
I would never consider writing such code as in this example. Code should
be written to be as simple and easy to understand as possible, and this
example violates that principle. Using two statements would make the intent
obvious.
DING DING DING! We have a winner, ladies and gentlemen! *That* is the correct
answer.
Undoubtedly!! I have spent many an hour trying to get that point
across to some of the faculty here regarding code they let students
write, in many languages!! You would be amazed (well, for most of
us here, probably not) some of the wierd stuff I see just like that
which leaves a student (and frequently the professor) totally baffled
about how the program generated the answer it did.
bill
--
Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
bill@xxxxxxxxxxxxxxx | and a sheep voting on what's for dinner.
University of Scranton |
Scranton, Pennsylvania | #include <std.disclaimer.h>
.
- References:
- The MOVE problem
- From: Roger While
- Re: The MOVE problem
- From: William M. Klein
- Re: The MOVE problem
- From: Judson McClendon
- Re: The MOVE problem
- From: Doug Miller
- The MOVE problem
- Prev by Date: Re: The MOVE problem
- Next by Date: Re: Important and Urgent
- Previous by thread: Re: The MOVE problem
- Next by thread: Re: The MOVE problem
- Index(es):
Relevant Pages
|
|