Fixed my code with chatgpt
Had a client reach out to me today with a record that won’t come through their integration correctly, asking me to troubleshoot it. So I fiddled with it, and looked at it, and found that it was failing with a trigger error on Line #338. Well, line #338 in my sandbox didn’t match up with anything that looked like it could fail, so I scratched my head and thought, “Did they maybe update the code in Prod from some other sandbox, and not move it to mine?” Historically, I’ve done all the dev for this client, but I decided that must be the only possibility, so I compared the code and found a difference that would cause the error in-question. Looking at the balance of the code, I think the change was made by a human, because their are other header comments that say “(chatgpt),” but nothing that mentions the specific change causing the problem. So either it was an inadvertent change by chatgpt or the human behind the wheel made other changes and didn’t comment them.
So I guess the takeaway here is that I can’t assume that I’m the only dev in my clients’ orgs anymore, even if they don’t have a coder on-staff. I can’t even be sure this change was intentional, but the mere fact that it’s completely uncommented tells me that a human made it, so I guess it was just a drive-by, but still…nothing is certain anymore.