3 ms·
> Any configuration format that cannot be auto-formatted (i.e. has significant whitespace) goes straight in the trash. 90% of my time spent with YAML is usually
by hk__2 3y ago
> Any configuration format that cannot be auto-formatted (i.e. has significant whitespace) goes straight in the trash. 90% of my time spent with YAML is usually trying to figure out if something is indented correctly.
What are you talking about, exactly? If I hit alt+L in IntelliJ, my YAML file is auto-formatted.
- Defletter 3y agoUsing IntelliJ to edit YAML files is a bit much
- hk__2 3y ago> Using IntelliJ to edit YAML files is a bit much Not if those YAML files are part of a larger project, which they quite obviously are.
- madeofpalk 3y agoProblem is that it's pretty easy to have "wrong" whitespace that'll get formatted to something different than you expected.
- enlyth 3y agoIndentation changes the structure of the data. There is no deterministic way to auto format YAML, you have to make sure, as a human, that everything is at the right indentation level - something - a - b Is completely different to: - something - a - b
- bandie91 3y agowhat about stopping the little darf who writes into your files unauthorizedly?
- hk__2 3y agoIt can be deterministically auto-formatted as long as you respect the format, like with everything. If you wrongly indent a line then it’s your fault and the auto-format can’t know if some indent is wrong or not. I don’t see what’s wrong here; it’s like adding a superfluous } in JSON or not closing a tag in XML.
- tom_ 3y agoIt complicates moving stuff around the hierarchy.