Comment on How to properly document code?

CookieOfFortune@lemmy.world ⁨11⁩ ⁨months⁩ ago

Your code should generally be self documenting: Have variable and method names that make sense.

Use comments when you need to explain something that might not be obvious to someone reading the code.

Also have documentation for your APIs: The interfaces between your components.

source
Sort:hotnewtop