Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Do you always use unique names for class members?

Question
John Murray · Feb 13, 2018

Do you always use unique names for class members?

Documentation here lists the kinds of members a class definition may contain. In summary:

  • Parameters
  • Methods
  • Properties
  • Class queries
  • XData blocks
  • Projections
  • (and some that are relevant only for persistent classes):
    • Storage definitions
    • Indices
    • Foreign keys
    • SQL triggers

Later in the same document, a section headed "Class Member Names" contains this warning:

So I'm interested to hear how other DC members handle this.

  1. Do you comply (or at least attempt to comply) with this?
  2. If so, do you use any tools or naming conventions to assist you?
  3. Have you ever encountered "unexpected results" that were caused by a failure to comply?
#Coding Guidelines #Object Data Model #Caché

Source URL:https://community.intersystems.com/post/do-you-always-use-unique-names-class-members