I was doing some contract work for a company, building their new website. It was a WordPress site and required a lot of specially programmed PHP customization.
I was placed under the head of IT. He was running the project and had written most of the code for the project.
Or so I was told.
Client: I wrote this plugin that integrates with a third party service and this cron script. They’ve suddenly stopped working. Can you fix them?
I took a look at his plugin. It did much of the required task but just stopped before the full task was done. It had no error checking whatsoever, just assuming that the third party service would always send a good result back. It was also spotted with comments like “I’ve added this here in case you need it later – Nish”, and “Not sure why you want this, but it’s done now – Raj.”
I didn’t say anything. I just fixed it and moved on to the cron script. Same thing. Half done, no error checking, and odd comments.
While the Head of IT was collecting a nice wage and claiming authorship of all this work, it was clear he was subbing it out on the sly to much cheaper, not very competent coders from overseas.