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



On 6/2/2014 1:19 PM, Jeff Young wrote:
Buck,
What do you do when sometime down the road, customer or vendor become
reserved names? :)

I got lucky there, because I'm not using 'customer' or 'vendor'; rather
I'm using a longer name that contains those characters. Your point is
well taken though - there is no 100% perfect naming convention.
--buck

On Mon, Jun 2, 2014 at 12:57 PM, Buck Calabro wrote:

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

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.