~/talk

Taming Code Quality in the Worst Language I Know: Bash

Talkat GeeCON 2019 · 2019-05-15..05-17· [linux-and-operating-systems]
links:none on file
slides:none on file

Bash is full of real hazards but can be tamed by concrete practices: enable set -eu -o pipefail to avoid silent failures, run shellcheck for hundreds of common pitfalls, and use the bash-support plugin plus IntelliJ formatter for consistent style. Watch for undefined-variable rm -rf disasters, CRLF line endings, quoting/globbing and array gotchas. Applied in a large banking project, these rules and integration tests (Dockerized) keep long-lived production scripts working.

AI-written summary · about

  1. 0:00Start
  2. 16:05Summary of the Bash Weaknesses
  3. 22:05Google Style Guide
  4. 28:47Shell Strict Mode
  5. 35:22Whitespace Formatting
  6. 42:58Final Thoughts
  7. 43:58Questions
  8. 45:05Where Would You Draw the Line between Using Close of a Scripting Language Bosh and Higher-Level Scripting Language Python
~/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.