News for hackers. Stuff that matters.
Re:Why the fuck are we templating YAML? (2019) by __jonas on Tuesday January 23, 2024 @07:12AM (#39102359)
In general I am always confused that it lets you use strings unquoted, which is what allows for all these issues with ambiguity of the interpreted data type, Norway problem and all that.

It also just looks odd to me, I don't see why it's necessary to allow this.

Re:Why the fuck are we templating YAML? (2019) by hombre_fatal on Tuesday January 23, 2024 @07:45AM (#39102636)
It’s great for end users who don’t understand what a string is or don’t have to play the game of finding the hanging single quote when they write the file by hand in a textarea.

On the opposite end of UX, there’s hand written JSON which is just too meticulous in some scenarios when people are writing config without editor support.

Re:Why the fuck are we templating YAML? (2019) by coffeebeqn on Tuesday January 23, 2024 @09:31AM (#39103754)
That’s probably a good thing for end users but if it’s running on something that affects the live service I’d rather not have people edit the config who don’t know what a string is
Re:Why the fuck are we templating YAML? (2019) by Dylan16807 on Tuesday January 23, 2024 @12:18PM (#39106321)
Dealing with inline quotes is annoying, but if you care about users writing things by hand, and especially in a textarea, you should not be using a format that depends on indentation.
Re:Why the fuck are we templating YAML? (2019) by afavour on Tuesday January 23, 2024 @07:54AM (#39102725)
It’s because YAML is designed first for readability.