Comment (computer programming)
One example of this variability of comment types is the use of audio files to include voice annotations in source code.[28]
[
See also
- Comment (computing) for a general discussion on the use of comments in computing.
- Docstring, a specific type of comment that is parsed and retained throughout the runtime of the program
[
Notes and references
- ^ Some programming environments include comments as one element of the language syntax that is retained for further processing, instead of discarded once recognized by the language processor.
- ^ Comments must be indicated in a way that allows a source code processor to recognize them as such. This is often simplified by saying comments are "ignored" (after they have been recognized and discarded) by the processor.
- ^ Comments can be processed in various ways to generate documentation external to the source code itself. See e.g., Comparison of documentation generators.
- ^ Penny Grubb, Armstrong Takang (2003). Software Maintenance: Concepts and Practice. World Scientific. ISBN 981238426X.
- ^ Dixit, J.B. (2003). Computer Fundamentals and Programming in C. Laxmi Publications. ISBN 8170088828.
- ^ Higham, Desmond (2005). MATLAB Guide. SIAM. ISBN 0898715784.
- ^ Vermeulen, Al (2000). The Elements of Java Style. Cambridge University Press. ISBN 0521777682.
- ^ a b c Using the right comment in Java. Retrieved on 2007-07-24.
- ^ W. R., Dietrich (2003). Applied Pattern Recognition: Algorithms and Implementation in C++. Springer. 3528355581. offers viewpoints on proper use of comments in source code. p. 66.
- ^ a b Keyes, Jessica (2003). Software Engineering Handbook. CRC Press. 0849314798. discusses comments and the "Science of Documentation" p. 256.
- ^ a b The Elements of Programming Style, Kernighan & Plauger
- ^ a b Code Complete, McConnell
- ^ Spinellis, Diomidis (2003). Code reading: The Open Source Perspective. Addison-Wesley. ISBN 0201799405.
- ^ CodePlotter 1.6 - Add and edit diagrams in your code with this 'Visio-like' tool. Retrieved on 2007-07-24.
- ^ a b Niederst, Jennifer (2006). Web Design in a Nutshell: A Desktop Quick Reference. O'Reilly. ISBN 0596009879.Sometimes the difference between a "comment" and other syntax elements of a programming or markup language entails subtle nuances. Niederst indicates one such situation by stating: "Unfortunately, XML software thinks of comments as unimportant information and may simply remove the comments from a document before processing it. To avoid this problem, use an XML CDATA section instead."
- ^ Ambler, Scott (2004). The Object Primer: Agile Model-Driven Development with UML 2.0. Cambridge University Press. ISBN 1397805218.
- ^ Arensburger, Andrew (2001-03-27). /* You Are Expected to Understand This */ (editorial). freshmeat.net.
- ^ Worst Practice - Bad Comments. Retrieved on 2007-07-24.
- ^ Morelli, Ralph (2006). Java, Java, Java: object-oriented problem solving. Prentice Hall College. ISBN 0131474340.
- ^ a b How to Write Doc Comments for the Javadoc Tool. Retrieved on 2007-07-24. JavaDoc guidelines specify that comments are crucial to the platform. Additionally, the appropriate level of detail is fairly well-defined: "We spend time and effort focused on specifying boundary conditions, argument ranges and corner cases rather than defining common programming terms, writing conceptual overviews, and including examples for developers."
- ^ Dewhurst, Stephen C (2002). C++ Gotchas: Avoiding Common Problems in Coding and Design. Addison-Wesley Professional. ISBN 0321125185.
- ^ Doar, Matthew B. (2005). Practical Development Environments. O'Reilly. ISBN 0596007965.
- ^ (see e.g., http://www.vidarholen.net/contents/wordcount/ Linux Swear Count, http://www.google.com/codesearch?hl=en&lr=&q=fucking Google Code Search).
- ^ Andress, Mandy (2003). Surviving Security: How to Integrate People, Process, and Technology. CRC Press. ISBN 0849320429.
- ^ Coding Style. Retrieved on 2007-07-24.
- ^ Allen Holub. Retrieved on 2007-07-24.
- ^ Allen Holub, Enough Rope to Shoot Yourself in the Foot, ISBN 0-07-029689-8, 1995, McGraw-Hill
- ^ http://dev.devbiz.com/blogs/hakan/archive/2005/08/03/voice_comments.aspx Voice Comments
[
External links
- How to Write Comments by Denis Krukovsky
- Source Code Documentation as a Live User Manual by PTLogica
- How to Write Comments for the Javadoc Tool
- Doxygen, a documentation system for C, C++, Java, Objective-C, Python, IDL and to some extent PHP, C#, and D
For more information review our copyright contact and privacy policy.
