r/AskProgramming • u/starcrafter84 • Apr 14 '21
Did another developer ever completely rewrite a program of yours and replace it in production without telling you? How did you react, what was the outcome of it?
As post says, just found out this happened to me while I was onsite somewhere else. The requirement was only to disable a splash screen and a couple of minor bug fixes as I laterally found out. The source was available, in the company location as required by our standards. The guy must have referred to the project to discover the original requirements (none were written down, it was all word of mouth customer/client direct at the time). Rather than do the sane thing and update the existing application, it has been totally rewritten, not put back in the source project location (or anywhere on the network for that matter) and not plugged back into the Upstream applications that depend on it as an external library. When I discovered the fact, I was flabbergasted to say the least. Still trying to work out if it is a declaration of war, an honest mistake or some other reason that I can’t fathom. If the source code couldn’t be located a simple question would have pointed it out along with some helpful pointers about why we did what we did. I can’t figure out why the guy would go to all the bother to totally rewrite the application instead of modifying easily what existed, other than boredom or assertion (x didn’t do it correctly, I alone, will fix it properly)
Am i overreacting? Should I be like meh, jokes on you now you have to support it and cross it off my list of concerns. It’s never happened before is why I’m asking. Literally everything else I’ve ever picked up from others, I’ve just worked with what was there as best i could, even if it was a mess. Always get there in the end and always in less time than a total rewrite.
Rant over.
Thoughts, comments or own stories are very welcome.
1
u/ike_the_strangetamer Apr 14 '21 edited Apr 14 '21
I agree that our egos should not get in the way of the product as a whole.
At the same time -we're humans with emotions and it's perfectly natural to feel attacked when someone rewrites something we spent a lot of time on without even telling us (especially if they do it worse and we have to clean up after them). You aren't doing anything wrong by having feelings -it's how we respond to those feelings that matter.
This has happened to me multiple times in my career and I've found that the best way to resolve the conflict between my hurt feelings and my responsibilities as a professional team member is to reach out to the person in as neutral and curious of a manner as possible. I tell myself that they didn't mean any harm and it was most likely a misunderstanding or an honest mistake.
Usually I reach out on Slack and in this case I'd say something like:
"hey, thanks for fixing that issue with the code I wrote, looks like it took a lot of work. Sorry I was offsite when this came up, but if it ever happens again, feel free to reach out to me anytime if you have any questions. I'm always happy to help."
This seems like a bit of office politics, but what you've actually done is subtly given the message that they could have avoided a lot of work if they had just asked in the first place. You've also given your emotions a steam valve to let out some pressure. Not communicating doesn't solve anything, so even the tiniest bit of connection helps.
Usually the person responds with something understandable like "Oh yeah. I tried doing.... but found... Sorry that I had to...." or whatever. The nice thing is that it helps inform your emotions that the action wasn't malicious against you and you will feel better.
Finally, you could follow up with another subtle hint: "I think it would be helpful to move your fix higher up in the application stream so it can be shared everywhere. Do you mind if I do this? I'm pretty familiar with that part already." Now not only have you communicated the proper way to solve the issue and asked permission to change their code, but most likely they will respond yes and thank you for doing the work to fix the problem they created, which will feel much better than doing it while stewing.