In my experience, coders do tend to take pride in their work and often times consider something they've created their 'baby'. If you're working as a team, then the correct thing to do is not change someone elses code, but discuss the options and make a decision together. I would also get upset if someone changed my code without discussing it with me. In fact this has happened plenty of times, and will most likely always happen at some point. The problem is that usually the person making the change doesn't see all of the reasons why one solution was chosen over another. Yes, that person may not have considered your solution, but you learn more by working through the problem than having it handed to you. I've had solutions presented to me that were more glamorous than ones I had come up with, and I'm more than happy to change the code, or even hand the reigns over if it would benefit the project. I've also been on the other end. It makes life a lot easier, let me tell you. Of course, there are always those that believe themselves to be king of the world, no matter what you say. In that case, there's nothing to do but try your best. One day you'll be that guys boss.
|