-
Notifications
You must be signed in to change notification settings - Fork 24
Comments #96
Comments
Your suggestions sound reasonable to me. The general rule of thumb I have been applying is:
Gotchas:
|
I agree with what @wincent says. Only two minor things:
vs
But I agree it's just a matter or personal taste. We can even leave it open so that we can argue for endless hours every time we do a review or have some time to spare trolling our fellows. My two cents... |
For general CSS, I use the same rules written in the clay-css-contributing-documentation
|
But @izaera, that is only one sentence, and you still used three periods. Maybe you meant to use U+2026 HORIZONTAL ELLIPSIS. |
Combined everybody's input from the original issue. No enforcement (linting) for this stuff yet, and we may not need it unless we find that we have consistency problems. Closes: #96
How are we supposed to write comments, and should we have a convention for that?
This is not really an important topic, but since we have this great place to talk about guidelines and conventions, I wanted to ask all of you what you think about comments.
I'm talking about code comments, not "JSDoc" type comments.
I don't think we have a convention right now, so everyone has "his" preferred way of writting comments.
Here are various examples of what comments look like in some of our projects.
//This is a comment with no space at the begining and no period at the end
//This is another comment, no space between but ended with a period.
//this is a comment, all in lowecase
// This is what I would choose.
You get the idea.
I don't really mind which one we use and I don't think we should spend time implementing an eslint rule that enforces this (because I assume that could take some precious time) but I just thought I'd bring this up for anyone who is interested.
As far as I'm concerned, I'd use a "logical" (you could argue that this is only logical for me) rule:
Start you comment with a capital letter and end it with a period.
Looking forward to read your thoughts.
The text was updated successfully, but these errors were encountered: