Re: Code problems with Perform Thru Exit causes fall through
- From: Richard <riplin@xxxxxxxxxxxx>
- Date: Sat, 28 Jul 2007 15:50:09 -0700
On Jul 28, 1:45 pm, "tlmfru" <la...@xxxxxxx> wrote:
SECTIONs do have their uses, for example segmentation. As I pointed
out above I dislike things that can easily lead to errors and that the
compiler won't tell you about. In fact I would use that as a
definition of what is _not_ 'easy to maintain' and _not_ 'perfectly
effective'.
The compiler can't tell if you should have used a minus instead of a plus
sign. Better ban it!
While the comiler won't tell you that a GO TO has been used, or a
SECTION or a THRU, the presence of these is easy to determine with
grep or similar.
Perhaps you find that these errors are simply a part of 'normal
programming' and find them easy, after all what would you do for the
rest of the week if they did not occur.
I don't find "these errors" happening at all. I have heard of the concept
called "testing" and use it all the time. I find that "testing" locates all
these errors.
While testing may well find many programming errors it is unlikely to
find _all_ of them. For example if there is a GOTO X-exit in the scope
of a PERFORM A THRU A-exit (due to copy-paste from another) then it
will only be 'found' if that particular branch is actually tested. As
many of these may be rare errors or exceptions it may not be found
even in live running for months.
Of course automated tools can be used to find these if they have been
done in a standard way. Was it Judson who had this.
I'm a big advocate of "testing". I suppose you could be
right, though: if I didn't use "testing" then I would have a lot more to do
during the week. (FWIW, I don't use PERFORMED sections).
The only purpose of doing PERFORM A THRU A-exit is allow a
All sarcasm aside, you are making the mistake of assuming that since you do
things one way, that it is the only way to do it.
Actually, if you read the messages instead of reacting you would have
noticed that I was replying to a person who probably had one or more
of those exact programming errors. It was a specific message to them
to check for those errors. I also stated how _I_ avoided them
_without_ claiming that is was "the only way".
Perhaps you could specify
what is acceptable program lifetime to qualify as the right way to do
things: I have several systems which are now over 15 years old and running
successfully - which accepted Y2K without changes - which have not been
changed at all except for spec. changes - different data formats, changed
calculations, a new report, etc. These systems use all sorts of syntax
which you would undoubtedly condemn. Your privelege. They work. Enough
said.
The discussion was not only about whether it worked, it was also about
"Is it easy to maintain?". In at least one case, the origin of this
thread, the answer seems to be NO, but we haven't heard the resolution
yet.
Does it follow the installation standards?
Discussion over!
Yes, that is often used to protect poor programming styles.
Also used to provoke thoughtless responses. D'you hold that installation
standards are automatically wrong? Or only when you disagree with them?
I have no views on installation standards themselves, only on the
closed minds that call upon them as a reason to shut off thinking.
.
- References:
- Code problems with Perform Thru Exit causes fall through
- From: Lizette Koehler
- Re: Code problems with Perform Thru Exit causes fall through
- From: Richard
- Re: Code problems with Perform Thru Exit causes fall through
- From: Doug Miller
- Re: Code problems with Perform Thru Exit causes fall through
- From: tlmfru
- Re: Code problems with Perform Thru Exit causes fall through
- From: Richard
- Re: Code problems with Perform Thru Exit causes fall through
- From: tlmfru
- Code problems with Perform Thru Exit causes fall through
- Prev by Date: Re: Code problems with Perform Thru Exit causes fall through
- Next by Date: Re: Code problems with Perform Thru Exit causes fall through
- Previous by thread: Re: Code problems with Perform Thru Exit causes fall through
- Next by thread: Re: Code problems with Perform Thru Exit causes fall through
- Index(es):
Relevant Pages
|
|