我是专业发展的新人.我的意思是我只有5个月的专业发展经验.在此之前,我已经自己或在大学学习了.所以我正在查询问题,在这里找到一个关于代码质量的问题.我自己也有一个问题.如何增加我的代码理解/阅读能力?还会提高我将编写的代码质量吗?有比匈牙利语更好的代码符号吗?有没有什么真正好书的C设计模式(或语言不重要?)?
谢谢你提前回答这些问题,并帮助我改进:) @H_404_3@附: – 我也忘了告诉你,我正在开发C和C#语言.
谢谢你提前回答这些问题,并帮助我改进:) @H_404_3@附: – 我也忘了告诉你,我正在开发C和C#语言.
解决方法
我找到的唯一方法是更好地阅读其他人的代码,这是阅读其他人的代码,当你发现一种方法或语言结构,你不明白看起来玩,直到你明白了什么上.
@H_404_3@匈牙利的符号是可怕的,很少有人今天使用它,这更是程序员中的一个笑话.
@H_404_3@事实上,匈牙利语表示法是一个笑话,本身就是:
@H_404_3@“The term Hungarian notation is@H_404_3@从How To Write Unmaintainable Code
memorable for many people because the
strings of unpronounceable consonants
vaguely resemble the consonant-rich
orthography of some Eastern European
languages.”
@H_404_3@“Hungarian Notation is the tactical@H_404_3@而有史以来流行的线条在这件事上有几句话要说.
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.”
@H_404_3@“Encoding the type of a function into@H_404_3@编辑: @H_404_3@来自Tobias Langner的评论. @H_404_3@“因为匈牙利语匈牙利语和匈牙利语系统之间的区别见Joel on Software”. @H_404_3@Joel on Software有关于如何读取其他人的代码为Reading Code is Like Reading the Talmud的提示.
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.” @H_404_3@– 07001