J
James Kuyper
I sure do understand the point everyone's making, and in an ideal world
I'd get right to the heart of this bug. BUT... the customer pays for
their support contract annually in advance, any time we have to spend on
maintenance from that contract is just a cost to our company, so we get
strong pressure from management to get quick 'n' easy fixes out the door.
You do understand, I hope, that your "quick 'n' easy fix" may have
indeed been quick and easy, but is not a fix? That this customer, or
perhaps other customers, will come back in the future asking for a fix
to the problem that you failed to fix? Sooner or later, unless your
company goes out of business first (poor customer service can do that to
a company), someone will have to actually track down and fix this bug.
Why not do it now?
Anyways, if the problem reoccurs in future, with any luck it'll end up on
some other maintenance programmer's books not mine.
Since you didn't actually fix the bug, only plastered over the symptoms,
there's no question that it will come back in the future. If the person
who actually fixes it is sufficiently competent, he'll realize that your
bizarre code was intended to be a completely inadequate fix. If your
company has adequate version control (which is strongly
counter-indicated by the other things you've said), he'll be able to
determine that you perpetrated that nonsense, instead of actually
dealing with the problem, and you'll be held responsible.