Brian's Blog

items I see across my tribes

A comment on Comments

September 25
by briancarter 25. September 2011 10:28

Comments are used to explain your code and may help someone when they are editing the code at a later date.  Problem, comments are different in each language.  I guess if you stuck with /*…*/ you would hit the majority.

CSS:        /*This is a comment*/

HTML:       <!--This is a comment-->

JavaScript: // This is a comment

JavaScript: /* This is a comment */

C#:         // This is a comment

C#:         /* This is a comment */

TSQL:       -- This is a comment

TSQL:       /* This is a comment */

Categories: Development


 Questions or Feedback, my contact information is located on my About page.


The opinions, thoughts, and comments made in these blog posts are solely my own (unless otherwise stated). They do not reflect the opinions, thoughts or practices of my employer, my universities, my family, or anyone else. Also, I retain the right to change my mind about anything I publish here without having to go back and edit posts that occurred in the past. 

These are my opinions, or just as likely, someone else's opinions that I leveraged for my own.