Women in Technology

Hear us Roar



Article:
  Seven Low-Cost Ways to Improve Legacy Code
Subject:   Enums and "Constant Object"
Date:   2004-10-28 09:20:11
From:   Robert Simmons Jr. (Kraythe)
Response to: Enums and "Constant Object"

"In programming, a constant is a value that never changes. The other type of values that programs use is variables, symbols that can represent different values throughout the course of a program."[1]


Since these objects are alocated at initialization and never change, they are constants.


As for the terms for them, its a matter of splitting of irrelevant hairs. The importance is in the concept, not the label. Call them Freds for all I care.


References:


[1] http://www.webopedia.com/TERM/c/constant.html

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Enums and "Constant Object"
    2004-10-28 09:30:40  dubwai [View]

    "As for the terms for them, its a matter of splitting of irrelevant hairs. The importance is in the concept, not the label. Call them Freds for all I care."

    That's fine for casual conversation but I don't think it's OK for technical books or articles.

    I have a book that describes certain well-known patterns improperly. The pattern described is useful but the name is normally assigned to something else entirely. This isn't just splittuing hairs. It puts the reader at a disadvantage when conversing with others. It's hard to communicate when people don't agree on the definitions of words.
    • Enums and "Constant Object"
      2004-10-28 10:02:27  Robert Simmons, Jr. | O'Reilly Author [View]

      Fine then. Id advise you to write your own articles if you feel your technical competence is so high and mine so low. You may find that its not as easy as you might think.

      Im having nothing more to do with this pointless conversation.
      • Enums and "Constant Object"
        2004-10-28 13:41:07  dubwai [View]

        A little defensive, there.

        I've never really understood that argument. If some one paints your portrait and it doesn't meet your expectations, are you not allowed to criticize the work unless you can do better?

        I may write a book some day. I don't think I'm really quite qualified to do so. I'll just leave it at that.