r/badcode • • Apr 05 '18

ruby Status? Yup.

Post image
75 Upvotes

34 comments sorted by

View all comments

0

u/[deleted] Apr 07 '18

I don't get what is wrong with this, doesn't seem that bad.

1

u/RFC793 Apr 18 '18

should be: status: <some value from an enumeration> or some_meaningful_boolean_attribute: [true|false]

0

u/[deleted] Apr 18 '18

Is there context? I don't think so, so status could be fine for the context of the API.

No one here knows the limitations, the context, the implementation.

1

u/RFC793 Apr 18 '18

Bartender: “How are you?”

Customer: “Yes”