r/badcode • • May 12 '23

java Code written by project lead. A comment was added by my team member that the entire method can be replaced with a single line: getErrorsList().contains(message). Project lead responded that we should focus on readability and performance and not on such code review comments.

Post image
799 Upvotes

152 comments sorted by

View all comments

Show parent comment

-78

u/Agilitis May 12 '23

The best code is the one you didn’t write. This code can be broken in multiple ways. So yeah, it is bad code.

→ More replies (30)