Re: The MOVE problem



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>
.



Relevant Pages

  • Re: The MOVE problem
    ... Doug Miller wrote: ... I would never consider writing such code as in this example. ... DING DING DING! ... intentionally or has been quoted verbatim: He signed his name as e. ...
    (comp.lang.cobol)
  • Re: The MOVE problem
    ... Doug Miller wrote: ... I would never consider writing such code as in this example. ... DING DING DING! ... Never mind that the Original Poster's question was 'What shouzld be ...
    (comp.lang.cobol)
  • Re: The MOVE problem
    ... Doug Miller wrote: ... I would never consider writing such code as in this example. ... DING DING DING! ... Never mind that the Original Poster's question was 'What shouzld be ...
    (comp.lang.cobol)
  • Re: The MOVE problem
    ... I would never consider writing such code as in this example. ... DING DING DING! ... Never mind that the Original Poster's question was 'What shouzld be ... Then I guess it's a Good Thing I wasn't answering the original question, ...
    (comp.lang.cobol)
  • Re: The MOVE problem
    ... I would never consider writing such code as in this example. ... DING DING DING! ... go over quite well in a tech interview: ... Then I guess it's a Good Thing I wasn't answering the original question, ...
    (comp.lang.cobol)