The idea that you shouldn't use error messages to drive production logic is sane.
But enforcing that by being deliberately subversive?.. Language zealots impacting production code? No, thank you kindly.
They wasted 2 days of my time.
You see, I am very particular about testing. My negative test cases check that they are triggering an error condition in the right place (I've got impaled before, when the negative cases happened to all go through one branch of the code, so they didn't test the intended error handling properties of the code). The waste came from the fact that I couldn't understand why seemingly equal strings were not equal. Do I misunderstand how to compare strings?..
OK, it was a one off. Shit rays to those who wrote that code, and move on. But now let's consider that this was done everywhere, if this is such a revolutionary improvement in code writing practice. What then?
I'll tell you what. Then oncallers will be unable to diagnose issues, that's what. Because now you can't search for error strings anymore: you always find only a fraction of them.
no subject
Date: 2024-06-22 04:04 am (UTC)But enforcing that by being deliberately subversive?.. Language zealots impacting production code? No, thank you kindly.
They wasted 2 days of my time.
You see, I am very particular about testing. My negative test cases check that they are triggering an error condition in the right place (I've got impaled before, when the negative cases happened to all go through one branch of the code, so they didn't test the intended error handling properties of the code). The waste came from the fact that I couldn't understand why seemingly equal strings were not equal. Do I misunderstand how to compare strings?..
OK, it was a one off. Shit rays to those who wrote that code, and move on. But now let's consider that this was done everywhere, if this is such a revolutionary improvement in code writing practice. What then?
I'll tell you what. Then oncallers will be unable to diagnose issues, that's what. Because now you can't search for error strings anymore: you always find only a fraction of them.