Say it like this
Real examples
"I think we should add more defensive programming to this function. What happens if the API returns null?"
"We spent yesterday refactoring the login module with better defensive programming practices, and it already caught three edge cases."
"The reason we had fewer bugs in the last release was because we emphasized defensive programming during development."
Don't say this
Handle with care. Do not confuse with 'defensive driving' (vehicle safety). Also, it is not about being defensive emotionally in code reviews.
Other forms
defensive programming
"Defensive programming is a best practice in enterprise software development."
defensive programming techniques/practices/approach
"We implemented defensive programming techniques throughout the codebase."
Often used with
Similar words
Opposites
Practice
Try it
4 quick exercises
1. You are explaining code quality to a new developer. Which sounds most professional?
2. Before deploying to production, we should _______ defensive programming principles to the API endpoints.
3. Which sentence uses defensive programming incorrectly?
4. Rewrite this sentence using defensive programming: 'We check if things could go wrong before we run the code.'
Questions
Quick poll
Have you said "defensive programming" in a standup this week?
Want more structured practice like this? Our English for Programmers course covers real workplace English in depth.




