Heredocs Can Make Your Bash Scripts Self-Documenting

I have long since come to appreciate the value of writing scripts to avoid someone else (or future me) from having to re-learn and re-solve problems, but something about it has always bugged me. I am automating a process, but I’m also documenting it, and those two things struggle to coexist. One o