3 ms·
A program is wrong if it doesn't meet its explicit requirements, plus certain common implicit requirements for good engineering (unless they are explicitly waiv
by kazinator 9y ago
A program is wrong if it doesn't meet its explicit requirements, plus certain common implicit requirements for good engineering (unless they are explicitly waived by the former).
An example of an unwritten requirement might be, say, that the word processing program doesn't violate the user's privacy or security. That might not be on the list of functional requirements for a word processor, but would be implicit.
The problem is that requirements can be deficient in some ways. The program is the most visible deliverable related to the requirements and so it takes the blame for requirement problems.
Requirements can be outright wrong and that's when they are 1) contradictory in some way (there exists a subset of the requirements which cannot all be simultaneously implemented) or 2) unclear: they have multiple different interpretations (unintentionally) and such.
When requirements are clear consistent, then they are subject to opinion: someone would like the requirements to be more complete. Or for some of them to be something else entirely. This turns into a criticism of the program: why isn't it that way, rather than this way. People blur the boundary between this kind of criticism and a criticism of correctness. "How can this be a correct word processor; it has only three levels of undo?". (But the requirement specification was written such that it calls for three levels of undo; how can the program not be correct on grounds of that requirement?)