this post was submitted on 06 Sep 2024
62 points (73.8% liked)

Programming

17351 readers
245 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
62
Why YAML sucks? (self.programming)
submitted 2 months ago* (last edited 2 months ago) by heikkiket to c/programming
 

I feel that Yaml sucks. I understand the need for such markup language but I think it sucks. Somehow it's clunky to use. Can you explain why?

you are viewing a single comment's thread
view the rest of the comments
[–] zero_spelled_with_an_ecks 0 points 2 months ago (1 children)

A few weeks? How do you stay employed? How do you even feed yourself at that pace? Blocked on making a sandwich, I've got the wrong type of bread.

It's three lines in an editor config file to standardize the indents across any editor: https://editorconfig.org/

In vscode, adding two extensions is all I need:, yamllint (if you don't use linters, I don't know how you do your job in any language) and rainbow indents. Atom had similar ones. I'm sure all IDEs are capable of these things. If you work at a place that forces you to use a specific editor and limits the way you can use it, that's not YAML's fault.

At a certain point, it's your deficiencies that make a language difficult, not the language's. Don't blame your hammer when you haven't heated the iron.

[–] [email protected] 0 points 2 months ago (1 children)

You know how many editor plugins I need to work with json? None.

[–] zero_spelled_with_an_ecks 1 points 2 months ago* (last edited 2 months ago)

You want an award? I hate working with JSON without a prettier.