4 ms·
Monkey patching vendor code. They agreed their code didn’t work and produced wrong results, but the correct version would be slower, so they didn’t want to chan
by smallpipe 3y ago
Monkey patching vendor code. They agreed their code didn’t work and produced wrong results, but the correct version would be slower, so they didn’t want to change it.
So I dynamically replaced the part of their code that was wrong. That monkey patch has run years and is still going :)
- MBCook 3y agoYou just reminded me of an old story. The company I was working for purchased some kind of email spamming program to send mass emails. However they quickly found that when more than a small number (10 to 15,000?) of addresses were in the list it took forever. Support wasn’t being helpful, so I decided to look at it. It was some kind of PHP application and what I eventually found was it was doing a database query doing table scans for everything because there was a missing index that was incredibly obvious. I added the index, the program worked well into huge numbers of emails addresses, and we informed the vendor. The program was soon updated and it fixed the problem as well. Also all the PHP code was now obfuscated/encrypted. I guess they didn’t like my helpful nature.
- dormento 3y agoNo good deed goes unpunished
- mcv 3y agoWho cares if it's wrong, as long as it's fast?