Other people's bugs - Wang Yin

In the software industry, it is often seen that some companies manage to let one person fix bugs in another person's code. Sometimes someone writes a piece of code, throws it away, and the company management lets other engineers fix it. I want to tell you that this approach will fail.

First of all, asking one person to fix another person's bug is disrespectful to the performance of the engineer's personal skills. Over time, it can reduce the motivation of engineers to the extent that they lose valuable employees. Code is a work written by people's heart, just like an artist's work, its quality concerns a person's personality and dignity. If a person A writes code and does not want to fix the bugs in it, it means that A himself thinks his own code is rubbish and hopeless. If you let another person B fix the bug in A's code, it is equivalent to letting B pick up the garbage left by others. It can be imagined what kind of status and respect B has in the eyes of the company.

Second, it is very inefficient to have one person fix another person's bug. Everyone has their own style and skills of writing code, and the code contains a person's way of thinking. It is difficult for people to understand other people's thoughts without explanation, so regardless of their programming skills, it will be more difficult to understand. Can't understand someone else's code, can't explain any aspect of that person's programming skills. So having one person fix another person's bug, no matter how skilled the person is, will lead to inefficiency. Sometimes the more skilled a person is, the less efficient it is to fix other people's bugs, because this person can't write such bad code at all, so he can't understand it, and he thinks it's better to overthrow and rewrite it.

When I was a teaching assistant in a programming course in college, I found that if something went wrong with a student's code, you couldn't easily fix it for them. My level is obviously much higher than that of the students, but I often can't understand it at all, and I don't want to read their code, let alone fix the bugs in it. As mentioned above, some people don't even know what they're writing and make a bunch of junk. Looking at code like this is like eating shit. For code like this, you can only tell them it's not correct. As to why it's not correct, you can only let them fix it themselves, or advise them to overturn the rewrite. You may be able to point out general directions and ideas, but getting into the specifics is impossible and shouldn't be your responsibility. This is what my professor told me to do: if the code doesn't work, just hit a cross, no explanation, no scrutiny, wait until they fix the program themselves, or if they really can't, come to office hours to find you and explain to you their Thought.

If you know what I'm talking about, take responsibility for your own code from today, stop letting other people fix your own bugs, and stop fixing other people's bugs. If someone leaves the company and someone has to fix the bugs he left behind, he should be very careful. You must point out the particular reason why you need his help, stress that it wasn't his fault, he shouldn't have done it, but someone left, there's no way, and sincerely apologize for what happened. Only in this way, the programmer will be willing to fix another person's BUG at this special juncture.

View original text

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326158261&siteId=291194637