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






Barbara,

Officially, the convention team says it just wants to prevent names with more 
than 15 chars. Yet, I think for some of them, the motivation behind this rule 
is one of aesthetics. They just can't stand the ellipsis and the two-line
declaration. Although it's not pretty, I don't mind it, and I don't understand 
other people's extreme reaction.

You're right about data structure field indentation. We also have a convention 
about it. Logically, if the convention team didn't want to see any ellipsis, 
they would have to reduce the allowed length for them. I think the idea haven't
occurred to them... yet!

> I think the rule should be that names should be as terse as possible
> while retaining enough information to make them easily remembered.

I like this wording. It's more or less what I told them I feel would be right. 
It's funny, but some people can't stand a rule that doesn't have a hard number 
in it.

As a corollary to your last paragraph, I would add that I usually rename my 
variables when I get a better understanding of what my algorithm is really 
doing. Also, every time I feel I need to comment something, I first ask myself 
if I
cannot have better names for my variables that would make the comment shorter 
or completely unnecessary.

Cheers.

--
Antoine CONTAL


                                                                                
                                                       
             Barbara Morris                                                     
                                                       
             <bmorris@xxxxxxxxxx>               Pour :   rpg400-l@xxxxxxxxxxxx  
                                                       
                                                cc :                            
                                                       
                                                Objet :  Re: Long Constant 
Names                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       
                                                                                
                                                       


Is the convention team trying to prevent the use of ... in names, or
just to keep name-lengths 15 or less?  If the rule is against the ...,
then what about name indentation?  If you use indentation to show the
organization of a data structure, you have even fewer characters for the
names.

I think the rule should be that names should be as terse as possible
while retaining enough information to make them easily remembered.  A
good set of abbreviations (like Msg, Upd etc) should be established, so
you don't get names like wwApplicationStateUpdateFailMessage, or two
too-similar names like wwHaveRec and wwHaveRcd.

Aside: A few times I've been unable to come up with a good name for a
variable; it's usually turned out that it was better to do my coding a
completely different way.  My Rule of Thumb: If you can't name the
variable, try rethinking the algorithm.



Les informations contenues dans ce message sont confidentielles et peuvent 
constituer des informations privilegiees. Si vous n etes pas le destinataire de 
ce message, il vous est interdit de le copier, de le faire suivre, de le 
divulguer ou d en utiliser tout ou partie. Si vous avez recu ce message par 
erreur, merci de le supprimer de votre systeme, ainsi que toutes ses copies, et 
d en avertir immediatement l expediteur par message de retour.
Il est impossible de garantir que les communications par messagerie 
electronique arrivent en temps utile, sont securisees ou denuees de toute 
erreur ou virus. En consequence, l expediteur n accepte aucune responsabilite 
du fait des erreurs ou omissions qui pourraient en resulter.
--- ----------------------------------------------------- ---
The information contained in this e-mail is confidential. It may also be 
legally privileged. If you are not the addressee you may not copy, forward, 
disclose or use any part of it. If you have received this message in error, 
please delete it and all copies from your system and notify the sender 
immediately by return e-mail.
E-mail communications cannot be guaranteed to be timely secure, error or 
virus-free. The sender does not accept liability for any errors or omissions 
which arise as a result.
$!2$!


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.