26
Onyx1640
92d

I fucking hate YAML!!! Whoever thought a fucking whitespace delimited file was a good idea should......

</rant>
Ahh that's better; back to learning Ansible.

Comments
  • 14
    Python - the very same annoying problem.
  • 12
    Or even more moronic: makefiles where different kinds of whitespace have different meaning.
  • 5
    @Fast-Nop what??? Is that really a thing???
  • 2
    What would you rather use?

    I believe YAML is a superset of JSON, so you should be able to write it without whitespace mattering.
  • 3
    @netikras yeah. Use space where you need to have a tab, and the whole thing barfs with syntax error. Completely moronic shit.
  • 2
    @TheyCallMeMJ Idk... JSON is pretty messy to write manually. Think I finally got VS Code's indenting setup properly, so it's going better now. Just had me wanting to throw my keyboard for a while there with all the syntax errors.
  • 2
    YAML sucks but I prefer it over JSON for files that also need to be human-readable.
  • 2
    What's the alternative then, for hierarchical configuration files?
  • 2
    Just enable white space display as faint dot on your editor n enjoy YAML/python
  • 2
    I'm going to probably get flamed for this, but I hate bash scripting for the same reason, it's just so hacked-together and breaks so easily over tiny syntax issues compared to a modern language.
  • 3
    you know what, i'm just gonna say it:

    i love yaml. and i love python.

    brackets are for computers, and indentation is for humans. why not drop the fucking brackets when the computer can read indentation and we use it anyways?

    and if you can't configure your editor to automatically convert whitespaces, nothing can save you.
  • 1
    @RememberMe bash fucking sucks. Don’t get me wrong, I, for some reason, really enjoy writing bash scripts for automation. But it’s the automation part I like, not the language.

    Like, when do you need to use [ ] or [[ ]]. Or as you mention, the problem with white spaces: if [“$foo”=“bar”] vs if [ “$foo” = “bar” ]
  • 0
    PHP can have issues with white specs as well. I once worked on a Laravel project where I accidentally put a space before a <?php which made the entire site crash horribly...
  • 0
    Same here.
    I create everything json later convert to fucking yaml.

    Only one think i like yaml is comments thats it.
    Damn confusing with array and objects annoying
  • 0
    @devs because it has headers before it can execute anything.
  • 3
    Json is for data transfer, yaml is for configuration files. Can you honestly say, that it's easier to read a Json conf file, than a yaml conf file?
  • 0
    JSON is my baby
  • 2
    @KasperNS this. Exactly this. I tried writing an AWS Cloudformation template in JSON once and hated every second of it. YAML is much better in that case.
Your Job Suck?
Get a Better Job
Add Comment