× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At COMMON some years ago, an IBM'r was discussing variable names and
used a comparison to how RPG, COBOL, and C programmers name their
children.

RPG Programmer
Billy
Joe
Bob
Sally
Sue
Mary
Jo
Beth

COBOL Programmer
BillyJoeBob
SallySue
MaryJoBeth

C Programmer
(points to each)




alan0307d@xxxxxxxxx 04/01/2009 7:16:56 AM >>>
Hell, all the programmers around here are still using 6 character
names.
Drives me crazy. You have 4096 so you use 6 character names so the
maintenance programmer doesn't have a clue what they are. Won't even
use 10
characters in field names in tables.

On Wed, Apr 1, 2009 at 8:56 AM, Jerry Adams <Jerry@xxxxxxxxxxxxxxx>
wrote:

<snip>
Amazing thing is that there are actually people who use named
constants.
Everyone I have ever known just puts AField = 52;. What the hell is
52 but
most places including the current the programmers would have a fit it
they
had to identify a constant. I am the only person who ever did it.
</snip>

Alan,

I agree with your comment about the ambiguity of 'AField'. But that
reminded me of when I first started learning Cobol some years ago
(OK, a few
decades ago). The instructors touted it as being "self-documenting"
because
one could have a 35-character field name. When I started using it
(gave it
up for Lent some time ago), I noticed that "veteran" Cobol
programmers
usually used 6-10 character field names. Heck, we had to hand-write
programs on coding sheets back then! I doubt that I'll personally
reach the
4096 character limit in RPG IV any time soon.


Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx

--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.