beautifying code

Falk Brettschneider gigafalk at yahoo.com
Wed Sep 20 20:50:16 UTC 2000


Hi,

Bernd Gehrmann wrote:

> IMHO everything below 4 makes the structure of a function unclear :-)

That is unusual somehow...

>
> > - prefix "p" for pointers
> > - prefix "m_p" for class attributes which are pointers
> > - prefix "b" for boolean variables
>
>     "Encoding the type of a function into the name (so-called Hungarian
>      notation) is brain damaged - the compiler knows the types anyway and
>      can check those,

I don't want Hungarian notation either 'cause m_lpsz... is terrible but in a
bigger class at least an "m_" and a "p" help me to distinguish those _many_
variables and to sort them out properly. In a bigger method/function I know
what is local and what is global.

> and it only confuses the programmer.  No wonder
>      MicroSoft makes buggy programs."

No comment when I think of KDE in general :)

Bye,
  F at lk




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the KDevelop-devel mailing list