Today on the Internet we were discussing some code one of us had written. He said that although his function would silently categorize the array [3, 7, 0]
as having adjacent duplicate elements, that is not a bug, because no array in the program's input will contain 0
. It said so right in his problem statement, which none of us had read.
I totally sympathize with this stance. It is the same thing as how when you ask something on Stack Overflow, almost no matter what it is, one of the top-voted answers will be, you shouldn't be asking that because you should be doing this other thing instead, which always turns out to be something sensible enough under ordinary circumstances, but hopelessly inappropriate for your actual situation. The main cost of asking a question therefore turns out to be convincing every stranger on the entire Internet that the question really is what you meant to ask, and that you are competent to ask it.
It reminds me of a situation at my house. I find that when I put something in