3 ms·
Think of the Supreme Court as an error handling routine. Sometimes the program wasn't written for the type of input it is now getting. Sometimes the code has
by kube-system 5y ago
Think of the Supreme Court as an error handling routine. Sometimes the program wasn't written for the type of input it is now getting. Sometimes the code has a mistake in it. Sometimes the rules weren't defined specifically enough. Sometimes there are pieces of code that interfere with another piece of code. etc.
We don't put error-handlers in our code because we intended to write bad code. We do it because humans make mistakes and it is helpful to have a way to resolve them. Anyone who says their code doesn't need error-handling because they write perfect code is likely overconfident in their ability.