r/badcode • u/sausage-x-donut • 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.
796
Upvotes
View all comments
Show parent comment
3
u/Agilitis May 12 '23
No exact origin, but the saying is very common among developers. I think it is pretty straightforward. Code you don't write can't have: bugs, readability issues, bad tests, etc. So yeah I still think it is true.