News for hackers. Stuff that matters.
Re:The Pain That Is GitHub Actions by motorest on Thursday March 20, 2025 @06:52AM (#43421579)
> Some people here still can’t believe YAML is used for not only configuration, but complex code like optimized CI pipelines.

I've been using YAML for ages and I never had any issue with it. What do you think is wrong with YAML?

Re:The Pain That Is GitHub Actions by mst on Thursday March 20, 2025 @07:17AM (#43421723)
Turing complete YAML ends up being an app specific terrible programming language.

Many of us would rather use a less terrible programming language instead.

Re:The Pain That Is GitHub Actions by motorest on Thursday March 20, 2025 @07:29AM (#43421782)
> Turing complete YAML ends up being an app specific terrible programming language.

Nonsense. As with anything in software engineering, your goal is to make things as easy that even you can manage them yourself.

If you're failing to comply with this basic principle then blaming tools like YAML has as much weight as blaming any tool at all. If you write code that flies way over your head, you cannot blame the language, text editor, keyboard, choice of keycaps, moon phase, anything. You are responsible for the mess you create for yourself. If your mess is too much for you to handle, the problem is not the markup format you're using.

I recommend you take a moment to look at the most painful pain points you experience in anything you do, and take a long hard look at what you should do to make your own life easier. Blaming YAML or JSON or ASCII does nothing to fix the problems you're creating.

Re:The Pain That Is GitHub Actions by hadlock on Thursday March 20, 2025 @05:51PM (#43429397)
Something went horribly wrong if your coworkers are putting switching logic inside your config
Re:The Pain That Is GitHub Actions by hadlock on Thursday March 20, 2025 @05:51PM (#43429391)
I've been using YAML professionally for a decade and other than forgetting to wrap some values in quotes, has been an absolute non issue.

Some people talk about YAML being a turing complete language, if people try to do that in your CI/CD system just fire them

I'll allow helm style templating but that's about it.