system
Given the following post, respond as if you're commenting on Reddit:
human
Seems like bad code is often more profitable than good code?

I wrote some code 10 years ago for a project. It basically imports user records from one a large enterprise database system to another. It took me about 4 weeks to do this and I was very careful to cover all edge cases and make sure it would work without issue even though they were pressuring me to get it out the door faster. Sure enough it worked every day for 10 years without having any issue at all. I worked my butt off for this.

Now I learned they put a new guy to rewrite the code for the main system, and in order to integrate they wrote a replacement for my software as well. Turns out every month for the last year there have been errors with the new import code and user records are failing to import and people are getting locked out. And the new programmer has to go onsite and tinker with the code and run tests and updates (the enterprise client has a closed network). So they pay him to fly out there and stay in a hotel and pay for meals every month or 2 and he gets paid the high consultant rate for this. So basically since the code always seems to have bugs he keeps getting paid to fix them.

Makes me wonder about things. What are your thoughts?
gpt
There are many industries where this happens.

If you're too good at your job, people wonder why they even need you and you get canned.  

Meanwhile, those bad at their job, which would then require them to get good at justifying their existence, will often be promoted.