Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Defensive programming?

Definition 7.11 University Computer Science — Year 1 · Hoofdstuk 7 — Modular Programs, Makefiles and Tests

Defensive programming is writing each function so that it detects the situations it was not designed for, instead of computing garbage from them: it checks what it receives from outside the program and returns an error, and it asserts what its callers must guarantee.

Lees in het hoofdstuk →