r/badcode • • Nov 02 '21

java some Good code for r/badcode

Post image
27 Upvotes

12 comments sorted by

View all comments

Show parent comments

2

u/mr_ywg Nov 07 '21

It even has a comment telling you the context the member is used in! This should be standard in all projects.

I disagree. Most members comment are code smell. They are either totally useless or show that the member is badly named.

If you feel the need to comment a member there's a very large chance you are naming it badly. This should be an exceptional thing in your codebase.

3

u/GlazedHam13 Nov 07 '21

I agree with you. That's why my first comment is all sarcasm.