In my language we have an expression that literally translates as: "Straightener for a bender".
The meaning is: When someone did something wrong and someone else is trying to fix it by adding yet another thingy, instead of doing it right directly, they're creating a "straightener for a bender".
Example:
- You see that somebody was annoyed by the door with the automatic door closer, so they put in a door stopper. Well, that's a nice "straightener for a bender".
- You find in a source code that certain data has been decompressed. You wonder where does the data originate from and you find that right before the call to the decompression function they have been compressed in another function.
- You are reviewing recurring transactions on several bank accounts you have. And you find out that there is a loop that transfers money from 1st to 2nd, then from 2nd to 3rd and finally from 3rd to 1st bank account.
Can be also used in software process, DIY projects, car repair, pretty much anywhere.
Question is: Is there an expression/idiom to describe that in English?