|
Posted by Tony Marston on 10/19/67 11:35
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:TomdnQwjLrxvkzPenZ2dnUVZ_tOdnZ2d@comcast.com...
> Tony Marston wrote:
>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>> news:LYmdnewR-c7gxzDenZ2dnUVZ_sydnZ2d@comcast.com...
>>
>>>It really doesn't matter if you agree or not. The fact is the vast
>>>majority of programmers in this world disagree with you.
I think not.
>> Are you saying that the vast majority of programmers would agree with a
>> language that allowed the same variable or function name to exist in
>> different mixtures of upper and lower case, and for each combination of
>> case to have a different meaning? That would make it far easier to write
>> unmaintainable code. Would that be a good or a bad thing?
>
> They would agree with a languages that allows the same variable or
> function name to exist in different mixtures of case.
What do you mean by 'same'?
Are you saying that 'box', 'Box' and 'BOX' point to the same variable, or 3
different variables?
Are you saying that 'dosomething()', 'doSomething()' and 'doSomeThing()'
point to the same function, or 3 different functions?
Which would lead to confusing and unmaintainable code, and shuld therefore
be avoided?
> After all, 'a' is NOT the same character as 'A'.
It may not be the same combination of bits in a computer language, but to a
human it is the letter 'a' wit case bein irrelevant.
> They even agree that each combination of case could have a different
> meaning.
I think not. Can you name me any computer language where the authors have
deliberately created their own variable and function names in different
mixtures of upper and lower case with a different meaning for each mixture?
Why not? Because it would be confusing. You have already stated yourself
that even though the language allows it you would not deliberately use
different case on the same word to give different meanings. Why not? Because
it would be confusing. So if there is a "feature" in the language that you
would not use, and you agree that usig it would lead to confusing code, then
why on earth do you want this "feature" to remain in the laguage. Why do you
continue to insist that such a "feature" is a good idea? It does not sound
very logical to me.
> But they do not agree that it makes it far easier to write unmaintainable
> code. You can do that in ANY language.
Yes, but as languages continue to evolve those constructs which are
considered tooharmful, and which allow programmers to shoot themselves in
the foot and produce spagetti or unmaintainale code are gradually
eliminated. That is why the ALTER verb was removed from the COBOL standard.
That is why GOTO was removed from subsequent languages. Remember, I
programmed with COBOL for 16 years so I have direct experience of these.
> In fact, I find mixed case makes code MORE maintainable.
How? You have already stated that you would never personally write code that
contained the same variable or function name in different mixtures of case,
so you are avoiding something which you consider to be MORE maintainable,
thereby producing code which is LESS mantainable. Your logic just boggles
the mind.
> But I digress. You're not worth any more of my time.
That's funny. I have the same opinion about you.
Navigation:
[Reply to this message]
|