That's the mistake most people make. A documentation or comment should not tell you, what the code does in words. It should tell you why the code does what it does and what it is trying to achieve.
+1, comments/documentation should be like this, otherwise If I have to dig deep to understand what it does, and why given other ways it chooses this way specifically. its not possible for every method I encounter during debugging
0
u/[deleted] Jan 13 '22
[deleted]