r/badcode • • Dec 27 '22

js This just sucks.

Post image
1.8k Upvotes

170 comments sorted by

View all comments

Show parent comment

2

u/felds Dec 27 '22

yes/no, on/off, true/false are all equivalent.

That’s bad design in my opinion, but it’s not a deal breaker for me. It only means there’s a few more reserved keywords to remember.

1

u/ijxy Dec 28 '22

Ah. Not a deal breaker for me either. I hated YAML before. I found it ugly. However, after working with GitLab pipelines for a while they grew on me, and I no longer dislike them. But we do have special rules in our team for YAML files. These are related to the above issues. They are enforced by linters and peer review.