Defensive Patterns

Defensive-programming patterns to apply when writing or reviewing lifecycle, concurrency, subprocess, teardown, error-reporting, or untrusted-IO code. Use when a change touches async setup or teardown, callbacks, spawned processes, workers, event listeners, disposal, error aggregation, temp files, or anything receiving untrusted input — and when reviewing a PR that touches any of those.

arch3rPro 8a672b3 2 files · 6.5 KB Updated

File contents

arch3rPro/dsh-skills/tree/main/skills/architecture/defensive-patterns commit 8a672b3af6

Frequently asked questions

npx skillmds@latest add arch3rpro/defensive-patterns