3 ms·
What are the alternatives? The minute you get into using code for these things, cleverness begins to turn configuration repos into something you have to debug b
by elsonrodriguez 7y ago
What are the alternatives? The minute you get into using code for these things, cleverness begins to turn configuration repos into something you have to debug before editing.
- james_s_tayler 7y agoInstead you have YAML you have to debug because all of a sudden you have decided to support Norway as a country and something about Norway's country code and the way YAML handles Boolean values bites you in the ass.
- unwind 7y agoI was curious enough to Google and found [1]. It turns out YAML supports figuring out the type of a value from the plain value itself. Norway's cc is "NO", which parses as a Bool instead of a string. The solution is to always quote strings. [1] https://medium.com/@lefloh/lessons-learned-about-yaml-and-norway-13ba26df680 https://medium.com/@lefloh/lessons-learned-about-yaml-and-no...