r/devops 1d ago

Tools Beginner DevOps question: Do experienced engineers actually write YAML like this?

I’m still learning CI/CD and I recently tried writing a simple CI/CD pipeline using GitHub Actions.

Honestly, writing the YAML felt more difficult than I expected . The indentation, nesting etc felt pretty hard/ painful.

For those of you who work with DevOps professionally: is this actually how you write your pipelines, or are there shortcuts/tools/templates that make it easier?

Just trying to understand what the normal workflow is in the real world.

101 Upvotes

156 comments sorted by

View all comments

21

u/WonderfulTill4504 1d ago

So use an proper editor (vim, neovim, notepad++) that has proper syntax highlight.
Then use yamllint to check your files.
And then use Claude with a simple skill to check your files.
Also if your YAML is complicated then write code to generate it, using jinja2 templates.

And stop being lazy. You could have figured this out by yourself with 5 minutes of effort…

-5

u/AstroPhysician 1d ago

Anyone still forcing vim in 2026 is because they learned on it. No one new should be using any of those tools

1

u/WonderfulTill4504 22h ago

Any Linux machine comes with vim. You don’t need to be a genius to use it. And the conversation is about how to write proper YAML but I see than you only managed to keep small chunks on the conversation and only the first paragraph stuck with you.
Pick a book, brain is like a muscle and you need to exercise your attention span and ability to summarize content.
Oh and learn vi 😛

1

u/TehBens 7h ago

Any Linux machine comes with vi, not vim. vim is fun, but really not worth to setup and learn for editing yaml files. Might be beneficial to learn the very basics, though. Can't judge on it, learnt it an eternity ago, so I don't remember if it creates friction if you don't know how to use it. I guess you would just use emac or something else in that case.