c – 如何读取代码没有任何斗争

c – 如何读取代码没有任何斗争,第1张

概述我是专业发展的新人.我的意思是我只有5个月的专业发展经验.在此之前,我已经自己或在大学学习了.所以我正在查询问题,在这里找到一个关于代码质量的问题.我自己也有一个问题.如何增加我的代码理解/阅读能力?还会提高我将编写的代码质量吗?有比匈牙利语更好的代码符号吗?有没有什么真正好书的C设计模式(或语言不重要?)? 谢谢你提前回答这些问题,并帮助我改进:) 附: – 我也忘了告诉你,我正在开发C和C#语 我是专业发展的新人.我的意思是我只有5个月的专业发展经验.在此之前,我已经自己或在大学学习了.所以我正在查询问题,在这里找到一个关于代码质量的问题.我自己也有一个问题.如何增加我的代码理解/阅读能力?还会提高我将编写的代码质量吗?有比匈牙利语更好的代码符号吗?有没有什么真正好书的C设计模式(或语言不重要?)?
谢谢你提前回答这些问题,并帮助我改进:)

附: – 我也忘了告诉你,我正在开发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的提示.

总结

以上是内存溢出为你收集整理的c – 如何读取代码没有任何斗争全部内容,希望文章能够帮你解决c – 如何读取代码没有任何斗争所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1252472.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-07
下一篇 2022-06-07

发表评论

登录后才能评论

评论列表(0条)

保存