|
Posted by Jerry Stuckle on 08/09/06 12:09
Tony Marston wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:2L6dnVvcUY7DukTZnZ2dnUVZ_vednZ2d@comcast.com...
>
>>Tony Marston wrote:
>>
>>>"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>>>news:MbydnaBugoftvUrZnZ2dnUVZ_qOdnZ2d@comcast.com...
>>>
>
> <snip>
>
>>>Can you point to to any papers on the internet which say that such a
>>>practice is a good thing?
>>>
>>
>>That wasn't what I said. I said use the same function name - including
>>case - in different functions. In language such as C++ and Java you could
>>have any number of functions called "readFile". But I'm sure your poor
>>brain would blow at such an idea.
>
>
> Just because you *could* have many different functions with the same name
> does not mean that you *should*. Most people would find that confusing.
>
Well, it's required for one of the mainstays of OO programming -
polymorphism - in every OO language.
And even without polymorphism requirements, it works quite well. Only
stoopid Tony would find it confusing. Most people find it more
confusing to have things like:
printInt
printString
printDouble
printEmployee
etc. They find it much clearer to have one function name "print".
> <snip>
>
>>>That's just your opinion. I still firmly believe that most programmers
>>>would be confused if they encountered a word with the same spelling but
>>>different case which actually meant something totally different. This is
>>>not the case in any spoken language, nor is it the case most computer
>>>languages. It is confusing, it leads to obfuscated and unmaintainable
>>>code, therefore it is a bad thing. Period. End of story.
>>>
>>
>>Mine and most of the people in this newsgroup. None of use would ever
>>hire you.
>
>
> I never trained as a proctologist, so I should never have to work with
> a**holes.
>
How could you? Your head is so far up your ass you couldn't see anyone
else's?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|