Loading lesson…
There are real moments where AI coding is slower, worse, or ethically wrong. Naming those moments is as important as naming the hype.
Every vendor will tell you to use AI everywhere. The honest answer is narrower. There are real categories of work where AI is slower, riskier, or ethically indefensible. Learning to refuse is a senior skill.
Engineers who let agents write everything lose sharpness on fundamentals. Recognizing pointer arithmetic bugs, reading a stack trace cold, debugging a race condition — these remain your skills alone. Use AI to accelerate learning, not to replace the reps.
| Category | Example | Why |
|---|---|---|
| PII | Customer names, emails, addresses | Privacy law and consent |
| PHI | Health records, diagnoses | HIPAA and equivalents |
| Credentials | API keys, DB URLs, tokens | May appear in logs or training sets |
| Trade secrets | Proprietary algorithms, competitive info | Potential IP exposure |
| Legal holds | Litigation documents | Privilege and chain of custody |
# Before pasting anything into a public AI tool, grep it for red flags. # Save this as check.sh and run on any diff before copy-paste. # Look for common secret patterns grep -nE 'api[_-]?key|secret|token|password|BEGIN (RSA|EC) PRIVATE' "$1" # Look for obvious PII grep -nE '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}' "$1" # If anything matches, stop. Redact or use an enterprise tier instead.A 3-second check before pasting into any AI tool. Make it muscle memory.AI-generated code's copyright status is unsettled and varies by jurisdiction. The US Copyright Office has indicated purely AI-generated work may not be copyrightable. If that matters to your product, document which parts are human-authored and preserve that provenance.
The ability to say no, with reasons, is the skill that separates engineers from typists.
— A principal engineer
The big idea: AI coding has real limits drawn by privacy law, licensing, learning, and craft. Naming those limits is how you use AI responsibly without pretending they do not exist.
8 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-coding-when-not-to-use-ai-creators
What is the main idea of "When NOT to Use AI for Code"?
Which concept is most central to "When NOT to Use AI for Code"?
Which use of AI fits this topic best?
What should a careful learner remember about "The junior-engineer trap"?
You want to use AI after this lesson. What is the safest next step?
How should AI output about risk be treated?
Name one way to verify an AI answer about risk.
Which action would help you apply "When NOT to Use AI for Code" responsibly?