4 ms·
That's exactly how I feel, except you're always running a risk. Somebody on the team might read the YAML standard and discover a bunch of cool features to use,
by dkarl 4y ago
That's exactly how I feel, except you're always running a risk. Somebody on the team might read the YAML standard and discover a bunch of cool features to use, and next thing you know, you have a lot of lines of YAML that are a razor's edge away from an edge case, and half the people on your team don't understand why. In your config files, no less, the last place you should have to devote scarce time and technical brainpower.
Any sufficiently powerful language has the same hazard. It's natural to want to know everything about the technology you use and want to use everything you know. It's how we expand our skills, and the sheer pleasure of it is why a lot of us got into programming in the first place. But not everybody considers the interests of their team and their coworkers when they choose outlets for that impulse. A single selfish person can run a C++ or Scala codebase clean off the rails.
It takes strong management to make sure the team has good collective boundaries and to crack down on people who go too far. Since senior developers are now largely left to manage themselves, you're at the mercy of the savant who knows 98% of the YAML standard to understand why they're being asked to only use it 70% of it, and to pay attention to the opinions of people who know less (about YAML) than them. Or you can just use JSON or TOML.
- woojoo666 4y agoMight be worth it to enforce StrictYaml [1], which fulfills all the major use cases and doesn't include the weirder, more complex features [1]: https://hitchdev.com/strictyaml/ https://hitchdev.com/strictyaml/
- marcosdumay 4y agoHum... That's one parser, in one language. Between all those links there doesn't even seem to exist a design document, much less a full specification for the language. That is really not enough. If it solves your specific use case, great, use it. But it's not a solution to the YAML problems.
- tomc1985 4y agoThat doesn't seem like anything house rules and code reviews can't fix. "No fancy YAML bullshit allowed" aaaaaaaand done.