- 1、本文档共42页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * * * * * * * * * * * * * * * * * 4. Translations. a) A good name for a routine clearly describes everything the routine does. b) Special care should be given to the naming of header files because of potential conflicts between modules. c) When applicable, all source documentation should be in a format compatible with the generic formatting defined by the original programming language. d) Block comments are used to provide descriptions of files, methods, data structures and algorithms. 一个好的例程名能明确地描述该例程的功能。 注意头文件的命名以避免模块间潜在的冲突。 在可应用的时候,所有源文档的格式应适当地与原始程序语言定义的通用格式兼容。 块注释用来说明文件、方法、数据结构和算法。 6.3 Source code documentation… e) Short comments can appear on a single line indented to the level of the code that follows. f) Very short comments can appear on the same line as the code they describe, but should be shifted far enough to separate them from the statements. g) The information provided by documentation comments delivers very important messages to other developers and users. h) Documentation comments, specially in Java, describe the classes, interfaces, constructors, methods, and fields. 短注释可以出现在单一一行,缩进位置与其后的代码相同。 若注释非常短,可与代码同行,但要空出足够的间距。 文档注释向其他开发人员和用户传递非常重要的信息。 文档注释,特别是在Java语言中,说明类、接口、构造函数、成员方法和成员变量。 6.3 Source code documentation… The five types of documentation comments, as mentioned in the article, are listed below. Try to use as few words as possible to describe them. Copyright information: Module comments: Revision history: Code specification: Source documentation: provides the copyright and licensing information of the code. 6.3 Source code documentation… indicates where the reader can find the sources of the information. contains enough information about the programmer’s destination. records the history of changes in the source files. describes the classes, interfaces, constructors, methods, and fields. 6.4 E-mail technical writing A. Replying or forwarding e-mails properly Key points: Every message other than spam or junk
文档评论(0)