Closed DoubleDeez closed 4 years ago
I'm personally not a fan of the comments with the XML tags as I find it verbose, but I don't have strong feelings on a specific style yet.
The only reason I like the XML tags is because it allows you to hoover over stuff (in most decent editors) when you are writing code against the framework, that way people don't have to go into the class to check for comments.
That being said I am used to javadoc so I may be biased here.
Personally, i like XML tags because of that hoover over stuff, this is much better than going to function declaration to see what it does.
Yeah I was surprised when I just tried and noticed that VS Code doesn't show the tooltip without the XML tags but Visual Studio does.
I think I'm gonna go with whatever this extension generates: https://marketplace.visualstudio.com/items?itemName=k--kato.docomment
That looks like a good idea. Should we go with any particular rule on what needs these kinds of comments or not? Personally in most projects I worked on the rule was generally that anything that is public needs proper documentation. I guess in C# it also makes sense to properly document anything that is virtual as well. But I wouldn't be too bothered about private/protected stuff.
I think I'm gonna go with whatever this extension generates: https://marketplace.visualstudio.com/items?itemName=k--kato.docomment
This works pretty much the same as in Rider, i think this would be nice.
That looks like a good idea. Should we go with any particular rule on what needs these kinds of comments or not? Personally in most projects I worked on the rule was generally that anything that is public needs proper documentation. I guess in C# it also makes sense to properly document anything that is virtual as well. But I wouldn't be too bothered about private/protected stuff.
The rule I was loosely following originally was pretty much that. Anything public and anything virtual needs a comment.
Just to summarize the solution to this so it's all in one comment and easy for a newcomer to implement:
summary
field should be filled out, there should not be any empty fields (remove or fill them)Marking with good first issue
as this would help someone learn all areas of the framework
Right now there's a mix of comment styles on Classes and Members A standard should be determined and the project should be changed to adhere to the standard.
Examples from codebase: