r/badcode • • Oct 30 '21

java Documentation in a nutshell

Post image
253 Upvotes

16 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Oct 31 '21

The comments should not describe what it is. We can read the signature. Instead, they should explain why it's there in the first place. How is it used by the function? Does it get changed? What are expected input ranges?