3 ms·
A programmer calls a subroutine to save user-data on the hard disk without checking whether the operation was successful or not. This might not be blind-faith.
by ams6110 13y ago
A programmer calls a subroutine to save user-data on the hard disk without checking whether the operation was successful or not.
This might not be blind-faith. "Fail-fast" is a legitimate pattern where you don't check for errors, you just let the program fail/terminate immediately.
- alexvr 13y agoI find that this is my natural strategy; I only test functions explicitly when they fail.
- Athas 13y agoBut in this case, if you don't check the return value of for example the write() system call, it's more a case of "fail silently" than "fail-fast", which is perhaps the most dangerous form of bug that a program can have.