|
|
|
|
|
by ZenoArrow
3025 days ago
|
|
So "Literate DevOps" is writing comments in your shell scripts and running the commands line by line? I agree it's a good idea. I do similar things when writing PowerShell scripts (can run them line by line using PowerShell ISE). EDIT: If you're going to downvote me, it'd be better to explain why. |
|
Is the fact that you got the idea exactly backwards: is not about putting comments on your scripts. Is about writing an article, intended to be read by humans, that is also executable.
Imagine it this way: Suppose you are reading a blog post on how to install, configure vagrant and install drupal on it. The article is pretty clear an well written and you enjoy it. And you also know that is correct because every single one of the instructions shown was executed while you were reading the article and every output was given back to you.
That is literate programming, is closer to a jupyter notebook than to 'comments on scripts'.