Defensive Programming

Validate untrusted data once at the boundary, then trust invariants inside and fail loudly if they ever break. Use when writing entry points, constructors, or any code that must not proceed on bad state.

Amey-Thakur 74e9dba 2.7 KB Updated

File contents

Amey-Thakur/AI-SKILLS/tree/main/skills/code-quality/defensive-programming commit 74e9dba630

Frequently asked questions

npx skillmds@latest add amey-thakur/defensive-programming