The Functional Tao of Bash
summary
Claims Bash isn’t a functional language but functional techniques apply: the presenter refactors a 140‑line CI.sh, extracts blocks into named functions, replaces ad‑hoc globals and ugly conditionals with clear interfaces, and shows patterns like generators with find | xargs, pushd/popd, and guarded args plus set -euo pipefail. A separate parallel script is built as a safer replacement and verifies behaviors (it runs and clarifies intent), not just examples.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:45List comprehension
- 2:13Map function
- 3:36CI
- 4:44Bash
- 5:40Installation
- 34:18Bosch
- 34:49Globals are everywhere
- 35:08What I like for Globals
- 36:12Compute Derived Variables
- 38:01Pipelining
- 40:55Local Arguments
- 42:27Use Local
- 42:59Conclusion
- 43:53Comments
related talks
40mBash: the #1 Skill of a DevOps Engineer
34mThe Power of the Command Line - How Bash Can Boost Your Productivity
44mPro Bash Development
39mLeveling up in DevOps: the Art of Bad Shell Scripts
39mLinux Shell Debates or: How I Stopped Worrying and Learned to Love PowerShell
32mFunctional Programming for (Dev)Operations and Infrastructure
21mStrategies for Testing Your Pipeline
41mFrom Bash to Nix
