Food Fight
Dennis Brown
see3d at writeme.com
Mon Jun 20 16:06:40 EDT 2005
Dar,
Thank you for standing up for the rights (in a good natured way) of
those who think it's overkill to have all these structured names in a
conversational language with handlers that are usually only a few
lines long. Why mar the elegance of a understandable name with
cryptic unpronounceable prefix letters all over the place? It's not
as if I wouldn't be able to instantly recognize ten years later what
the local variable named partNumber in my 20 line script was for, or
even that it was a local. I can see the rationale for this structure
when writing many huge (multi-page) handlers where you might actually
forget what the names were for by the end --but most of us don't do
that. I think it is usually better to break things up into byte
sized pieces by defining small handlers and functions that
essentially extend the language in problem specific ways.
That being said, I believe some structure is good --as long as it can
be done in an elegant way. I have not decided what style appeals to
me yet. I have seen several writeups about the Hungarian-lite
style. Is there any writeups about other styles? I don't want to
reinvent the stone wheel, if some else has already done the spoked
bicycle wheel.
Dennis
On Jun 20, 2005, at 2:39 PM, Dar Scott wrote:
>
> On Jun 19, 2005, at 11:31 PM, Richard Gaskin wrote:
>
>
>> Erik Hansen wrote:
>>
>>> the heated emotions over scripting conventions,
>>> literally involving a food fight,
>>>
>>
>> Yes, for the record let it be known that none other than the
>> otherwise-mild-mannered Dar Scott threw food at Ken and I during
>> our discussion of "Hungarian-lite" notation, complete with a
>> flailing of arms and shouts of "Keep your purity out of my code!"
>>
>> Since they were packages of peanut butter M&Ms and were rather
>> good, Dar has been invited to throw food at all presenters at all
>> future Rev conferences.
>>
>
> In truth, I'd rather not use "Hungarian-lite" on parameters and
> handler-local variables and I think <publisher>_<module>_ prefixes
> on command and function names can get long. (Though I would use
> those if a customer asks for them in a coding standard.) However,
> Ken and Richard were quite persuasive, made some good arguments,
> and were not pushy at all. I had to applaud and I almost regretted
> buying all that throwable food at the corner market. Almost.
>
> I did hear references to "anarchist" after that.
>
> Dar Scott
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list