Re: How to name variables in a program?





Jens.Toerr...@xxxxxxxxxxxxxxxxxxx wrote:
> spinoza1111@xxxxxxxxx wrote:
> f
>
> > Alf P. Steinbach wrote:
> >> * Paul Hsieh:
> >> >
> >> > int dbPop3MsgHdrGet (struct pop3Db * db, struct mimeMsgHdr * msg);
> >>
> >> It's difficult to say whether this is irony or just misguided.
> >>
> >> Presumably it's for C?
> >>
>
> >> Have you tried to _pronounce_ those, uh, "names"?
>
> > Why is this important?
>
> > Does any one read programs out loud?
>
> > I would say that the desire to "pronounce" names comes from Derrida's
> > syndrome: the rage to return to speech and to jettison writing.
>
> > Suppose we could "speak" to a computer in true "voice recognition". The
> > ABILITY to reify speeches-to-computers would immediately transform
> > those texts into writing even as Grace Hopper discovered the value of
> > paper tapes filled with scraps of equations as coded for an early
> > computer...despite John von Neumann's dismissal of the very idea that
> > "programming" was anything more than trivia unworthy of notice.
>
> > Instead of repeatedly instructing the computer to fix a certain
> > breakfast, "computer fix me breakfast" would become the reified name
> > for a text written on a (magnetic) medium.
>
> > This is why this rage to jettison Hungarian notation is mere barbarism,
> > for it is a rage to return to the immediacy of speech when the
> > immediacy of speech is as much a part of the problem set as it is of
> > the solution set.
>
> Complete drivel from someone who is obviously an armchair programmer
> at best. Nobody sane is able to parse stuff like "LPCTSTR" or
> "dbPop3MsgHdrGet" correctly when reading a program or seeing the
> difference between e.g. gibberish like "LPCTSTR" and "LCPTSTR". We
> are all trained to read words, not more or less random sequences of
> characters. That's what makes HN that horribly annoying: you can't
> recognize what's meant when you read it and 90% of the time (see, I
> also can make up my own statstics as I go) type information is either
> not important or clear from context when variables have reasonable
> names - you pay for information you don't need most of the time with
> making the whole source code much harder to read. And since everybody
> is prone to make typing errors it's also much more difficult to spot
> typos when using variable names that look like line noise instead of
> names that can be read easily. A misspelt word often immediately
> comes to your attention, but when you type "LCPTSTR" instead of
> "LPCTSTR" you will have problems to see the difference, even when the
> compiler explictely tells you that there's something wrong with the
> variable (let's hope you're using a language that requires a defini-
> tion of a variable before it can be used and doesn't silently create
> a new one with the misspelt name...)
>
> Just have a look at the source code in what seems to be the original
> paper by Simonyi at
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs600/html/hunganotat.asp
>
> (it's somewhere at the end of the page). The source code gives you
> no indication at all what it does since neither the function nor the
> variable names tell you anything about their purpose. In contrast to
> the intention of the author it's probably difficult to come up with
> an example that more clearly shows why HN is completely useless and
> actually counterproductive.

My hovercraft is full of eels.

> Jens
> --
> \ Jens Thoms Toerring ___ Jens.Toerring@xxxxxxxxxxxxxxxxxxx
> \__________________________ http://www.toerring.de

.



Relevant Pages

  • Re: How to name variables in a program?
    ... the rage to return to speech and to jettison writing. ... > for it is a rage to return to the immediacy of speech when the ... Just have a look at the source code in what seems to be the original ...
    (comp.programming)
  • Re: How to name variables in a program?
    ... the rage to return to speech and to jettison writing. ... for it is a rage to return to the immediacy of speech when the ... the biography of the male subject is a triumphal series ...
    (comp.programming)
  • Re: I Saw Barack Obama Today
    ... rage. ... The speech was the standard Obama stump speech which we've seen ... McCain as a national hero, the crowd broke out in applause. ... I think maybe finally the post-Vietnam generations are moving us ...
    (rec.sport.football.college)
  • Michelle
    ... Michelle Obama's speech last night was aimed at the ... whitening of the Obama family after the bad press ... she generated earlier while publically expressing ... her "black rage." ...
    (rec.org.mensa)
  • Server side speech
    ... Most "text to speech" techniques concentrate on making the browser or desktop application do the translation of web text to speech. ... but they said that they hired a firm to do that for them and as such the source code is not subject to the freedom of information act. ...
    (php.general)