~/talk

DevOps: How to train your Bash

links:none on file
slides:none on file

An engineer explains concrete rules: always quote variables, use readonly globals and local inside functions, prefer $(...) over backticks, handle args with arrays (declare -a) instead of shifting, use trap for cleanup, enable strict mode and bash -x for debug, and run shellcheck in CI. Shares a real horror: a single Bash grew to ~3,000 lines and caused data loss. Recommends rewriting >100-line scripts in Python; shows fixes that stop accidental rm -rf failures and make scripts debuggable.

AI-written summary · about

  1. 0:00Introduction to Bash training
  2. 4:26What is Bash and its purpose
  3. 9:23Common Bash script issues
  4. 12:58Understanding Bash variables
  5. 13:41Rule one: Always use quotes
  6. 15:31Rule two: Proper variable assignment
  7. 18:49Rule three: Use immutable globals
  8. 20:14Naming parameters for clarity
  9. 22:22Handling script arguments correctly
  10. 26:34Using explicit paths in scripts
  11. 28:24Subshells and their use cases
  12. 31:53Splitting pipelines for readability
  13. 33:39Conditional command execution
  14. 36:31Mastering if statements in Bash
  15. 39:49Functions and their benefits
  16. 44:51Functional programming in Bash
  17. 47:17Strict mode and debugging
  18. 50:29Logging and ShellCheck
  19. 53:19Style guides and unit tests
  20. 54:43When to avoid Bash scripts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.