代码风格
代码风格
(
英語:
)即
程序
开发人员所编写源代码的书写风格。良好代码风格的特点是使代码易读。
总结程序设计实践中的经验,代码风格的要素包括(但不限于)以下几点:
名字的使用(参见:
驼峰式大小写
、
标识符命名约定
、
匈牙利命名法
)
表达式
与语句
常量的使用
注释的使用
缩进
(参见:
缩进风格
)
代码的布局
参见
C and C++ Style Guides
页面存档备份
,存于
Programming in C++, Rules and Recommendations
页面存档备份
,存于
Aladdin's C coding guidelines
页面存档备份
,存于
USER NOTES ON FORTRAN PROGRAMMING (UNFP)
页面存档备份
,存于
PROGRAM LAYOUT - THE ART OF MAKING PROGRAMS READABLE
页面存档备份
,存于
This article is issued from
Wikipedia
. The text is licensed under
Creative Commons - Attribution - Sharealike
. Additional terms may apply for the media files.