4 ms·
One cool advantage this format has that is not mentioned anywhere is its potential for localization. If everything is a string, and you need to parse values yo
by miki123211 6y ago
One cool advantage this format has that is not mentioned anywhere is its potential for localization.
If everything is a string, and you need to parse values yourself, you can tread "prawda" and "fałsz" as booleans, instead of "true" and "false".
- marvinblum 6y agoHow is that useful?
- miki123211 6y agoIt is, when you're accepting data from users, instead of data from other programs. An end user with no programming experience could reasonably understand a file written in this format. This can't be said about json or yaml, not when they don't know what "true" and "false" mean.
- marvinblum 6y agoHm I don't know. I know "we technical people" sometimes have the feeling that users don't understand anything, but if you teach someone how to write yaml they'll pick it up quickly (I just did that to my designer colleges). I don't like the idea of having so many very similar data formats, it just gets more confusing.