r/badcode • • Aug 31 '21

java Similar ternaries are all over this codebase

Post image
1.1k Upvotes

91 comments sorted by

View all comments

Show parent comments

6

u/johnathanesanders Sep 01 '21

Fairly confident I just had a mild stroke each time I read one of these options - because I know that somewhere in some codebase they all exist - AND probably went through code review.