kgrzybek / modular-monolith-with-ddd

Full Modular Monolith application with Domain-Driven Design approach.
MIT License
10.82k stars 1.7k forks source link

Add XML documentation to interfaces and classes #294

Closed bistok closed 8 months ago

bistok commented 8 months ago

This pull request adds XML documentation to the interfaces and classes in the codebase to improve code readability and maintainability.

This is a work in progress. I think this add value to the code.

kgrzybek commented 8 months ago

Hi @bistok

I am not sure whether this kind of comments are needed. I assume they are generated, but most of the time code is self explanatory and these comments add no value. Moreover, they add noise and what is worse - need to be maintained, so there is a risk that will be out of sync with code.

I add comment only when:

Of course I will listen other opinions about that.

AlmarAubel commented 8 months ago

I agree with @kgrzybek, i think it only adds value if it gives additional information. Occasionally, it's beneficial to include comments for a utility method, particularly to explain its usage or to provide examples detailing the input and output, especially in the case of complex algorithms.