|
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of James Lampert
Sent: Thursday, July 03, 2008 1:18 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Standards question: What is yourfeeling about
%found&%eofvs.%found(file) & %eof(file) ?
Funny: I have a Bachelor of Science degree in computer science, and I'm
To repeat myself:
I. Have. Never. Once. Heard. Of. Such. A. Notion.
john e wrote:
I don't think this is purely style, like indenting two or four
spaces. It's about a quite important principle and that is "don't
repeat yourself".
Funny: I have a Bachelor of Science degree in computer science, and I'm
fluent (or at least was fluent at one time) in (depending on whether or
not you count traditional BASIC and the QBASICs as separate languages) a
dozen HLLs and three different assemblers. I've probably forgotten more
HLLs than most programmers seem to have any interest in learning. By the
time I got out of high school, I knew BASIC (3 dialects) and FORTRAN
(WATFIV and IBM G1). The class I took almost 28 years ago (my freshman
year at the University), in structured programming was taught in Pascal,
and many of the more advanced classes were taught in PL/I. I've dealt
with COBOL, and I've dealt with LISP, and I've written recursive descent
parsers (including two in ILE RPG!).
Not once in two years of high school programming, five years at the
University, or the over two decades since I got my sheepskin have I ever
heard of any "quite important principle" of "don't repeat yourself."
I've certainly heard that if you're going through the same non-trivial
steps, in the same order, two or more times, you should probably
consider a subroutine, but I've never once heard of the notion that
explicitly referring to the same file more than once constitutes
"repeating oneself," or that doing so was in any way undesirable.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.