This is why we can't have nice things, because someone somewhere always wants to cut a corner in a way that isn't as robust as they think it is.
I once had an argument with a junior developer that he can't just use a hash code directly instead of an equality check. It can be used as a first step to quickly reject unequal values, but equality must be verified. He disagreed right up until a finance report had "unexpected" dollar figures in it.
There is nothing I value more in the code I write than 100.0% pedantic correctness.
The opposite of this is inserting Thread.sleep(1000) into multi-threaded code to "fix" it.
It's a tiny, slippery step from skipping a correct parsing step to that eldritch madness.
This is why we can't have nice things, because someone somewhere always wants to cut a corner in a way that isn't as robust as they think it is.
I once had an argument with a junior developer that he can't just use a hash code directly instead of an equality check. It can be used as a first step to quickly reject unequal values, but equality must be verified. He disagreed right up until a finance report had "unexpected" dollar figures in it.
There is nothing I value more in the code I write than 100.0% pedantic correctness.
The opposite of this is inserting Thread.sleep(1000) into multi-threaded code to "fix" it.
It's a tiny, slippery step from skipping a correct parsing step to that eldritch madness.