On 6/2/2014 12:31 PM, Kurt Anderson wrote:
For constants we go with the convention of all caps, which I think is standard in other languages.

I like this convention also.

We use $ in front of exported procedure names. The fight against using $ @ # seems to be in regard to taking the code global. This makes sense for vendors. It makes sense for international shops. Maybe I'm being short-sighted in not seeing our code going global?

I used to feel this way until my very stodgy, boring wholesale paper
company was bought out by an international organisation. Surprise!

Thing is, I find our naming of procedures to be incredibly helpful. I suppose we could instead have them all prefixed as E_ and it would be equally helpful.

A good naming convention can make one's job easy or difficult.

My comment here isn't about RDi but rather, RPG. We don't have
namespaces, so it can be very frustrating to create a very useful
service program with a subprocedure name like 'read' only to find out in
a few years that someone else had the same idea (like CGIDEV2). And now
there's a name collision :-( I've started to name my subprocedures by
the name of the service program followed by the subprocedure name, so
instead of 'getName' I have 'customer_getName' and 'vendor_getName' and
'product_getName'.

Every shop I've been at has used #, though I do prefer "Number" written out personally.

I've seen a lot of that, too, as well as things like PAY$ to denote a
currency variable.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2022 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.