RE: Warp: RSS Package Manager

Eugene Zolenko <EugeneZolenko-XYgkjQFSZqy1Z/[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
>> Because the variable name often says what type it is. Example:
>> "filename". This should always be a string, shouldn't it?
>>   
>But is that a unicode string (and if so which unicode encoding) or a 
>string in the local encoding? is it a STL string or a char * or a  
>wchar* ? or a symbian descriptor? or .....................

But normally you don't care what type it is. If designed properly your
functions will simply not accept anything they can't handle, that's the
point of strongly typed languages after all. If you have everything take
void* (Carbon, anybody?) no amount of notation will save you in the end.

Also, in C++ temporary variables are often declared right where they are
used. And if you don't have enough context to use the variable you
probably shouldn't mess with it until you do.

Only thing I use from it (or maybe it is from MFC?) is m_ on class
members. Because it is nice to see external to the local scope variables
right away.

There are two types of Hungarian notation: Systems and Applications
(named after divisions of MS they originated from). One of them makes
sense (distinguishing variables of the same type, but logically
different, like height and width). And another one is a freaking cargo
cult, brought to you by same kind of managers who like to count
productivity by LOC and all the fun stuff.

Joel (can't remember last name, FogBugz owner), had a rant about it on
his blog.



---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.