 |
|
 |
Comment - Other uses | A Wisdom Archive on Comment - Other uses |  | Comment - Other uses A selection of articles related to Comment - Other uses |  |
|
More material related to Comment can be found here:
|
|
|  | |
Comment, Comment - Automatic documentation generation, Comment - Examples, Comment - External link, Comment - In-context, Comment - Other uses, Comment - Styles, Comment - Summary, Comment - Usage
|  | |
|
ARTICLES RELATED TO Comment - Other uses | |
 |  |  | Comment - Other uses: Encyclopedia II - Comment - Examples
Comment - Summary.
(the word "comment" in italics is used here, as an example of a comment):
Ada, SPARK, VHDL, ANSI SQL, and TSQL:
--comment
ALGOL:
comment comment;
AppleScript:
(*comment*)
--comment
Bash:
# comment
BASIC (various dialects):
'commentSee also: Comment, Comment - Usage, Comment - Styles, Comment - Automatic documentation generation, Comment - Other uses, Comment - Examples, Comment - Summary, Comment - In-context, Comment - External link Read more here: » Comment: Encyclopedia II - Comment - Examples |
|  |
|
 |  |  | Comment - Other uses: Encyclopedia II - Comment - Automatic documentation generationSome programming tools can read structured information in comments in order to generate documentation automatically. Examples include the javadoc program, designed to be used with the Java programming language, Ddoc for the D programming language and doxygen, to be used with C++, C, Java, IDL and others.
C# implements a similar feature called "XML Comments" which are read by IntelliSense from the compiled .NET assem ...
See also:Comment, Comment - Usage, Comment - Styles, Comment - Automatic documentation generation, Comment - Other uses, Comment - Examples, Comment - Summary, Comment - In-context, Comment - External link Read more here: » Comment: Encyclopedia II - Comment - Automatic documentation generation |
|  |
|
|
 |  |  | Comment - Other uses: Encyclopedia II - Comment - UsageComments could summarise code or explain the programmer's intent. This is called the why rather than how approach. The two are often close, but not always. According to this school of thought, restating the code in plain English may be a waste of time; the need to explain the code may be a sign that it is too complex and should be rewritten.
"Don't document bad code – rewrite it" (The Elements of Programming Style, Kernighan & Plauger).
"Good comments don't repeat the code or explain it. T ...
See also:Comment, Comment - Usage, Comment - Styles, Comment - Automatic documentation generation, Comment - Other uses, Comment - Examples, Comment - Summary, Comment - In-context, Comment - External link Read more here: » Comment: Encyclopedia II - Comment - Usage |
|  |
|
 | |
|
|
More material related to Comment can be found here:
|
|
|
 | |