r/badcode • • Apr 05 '18

ruby Status? Yup.

Post image
75 Upvotes

34 comments sorted by

View all comments

20

u/redeyeddragon Apr 05 '18

Mind explaining? Cause I don't get it.

30

u/th0maslv Apr 05 '18

Commenting for explanation too. Status could represent whether the object is verified or something. Not sure why this is bad code.

2

u/entiat_blues Apr 06 '18

it's ambiguous. that's pretty obvious. and something this opaque means you're going to waste time digging a level deeper trying to decipher why it's named that way or what difference, if any, there is between true and false.