谢谢你提前回答这些问题,并帮助我改进:)
附: – 我也忘了告诉你,我正在开发C和C#语言.
解决方法
匈牙利的符号是可怕的,很少有人今天使用它,这更是程序员中的一个笑话.
事实上,匈牙利语表示法是一个笑话,本身就是:
“The term Hungarian notation is
memorable for many people because the
strings of unpronounceable consonants
vaguely resemble the consonant-rich
orthography of some Eastern European
languages.”
从How To Write Unmaintainable Code
“Hungarian Notation is the tactical
nuclear weapon of source code
obfuscation techniques; use it! Due to
the sheer volume of source code
contaminated by this idiom nothing can
kill a maintenance engineer faster
than a well planned Hungarian Notation
attack.”
而有史以来流行的线条在这件事上有几句话要说.
“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,and it only confuses
the programmer.”– 07001
编辑:
来自Tobias Langner的评论.
“因为匈牙利语匈牙利语和匈牙利语系统之间的区别见Joel on Software”.
Joel on Software有关于如何读取其他人的代码为Reading Code is Like Reading the Talmud的提示.