Someone just pointed out a bug in my code and I didn't like the tone of it. Is it natural? Am I overreacting?
If anything, I personally feel embarrassed when someone finds a bug in my code / system. Especially if it's a simple bug.
Mistakes happen, no programmer is perfect.
If their tone was off just this once, I'd brush it off. People have bad days; you never know what someone is dealing with outside of work. If their constantly being mean about something, then address that separately and try to find out why. You may find out someone is having a hard time and could use your help / guidance / friendship.
It's hard to say from the perspective of an outsider without any actual knowledge of the used tone and the bug. But here is my advice: Would you have felt differently if that person would have used a different tone?
In general, you should be open and accept bug reports. Everyone introduces bugs all the time. That's why big companies have bug trackers. That's why there are "issues" on GitHub. Embrace them, thank the reporter (for even reporting it) and fix it. Then get on, it was just a bug.
If you, however, don't like the tone, and it's just the tone, then calmly and kindly tell the bug reporter that you personally do not like his choice of words, but thank them for reporting the bug and tell them you will fix it. Some people don't even realize that they sound harsh or inappropriate until you point it out to them.
No, anyone say you have a bug it's not bad. The problem maybe it's the tone or the forms to say it, there are a lot of ways to say something, it's important to be comprehensive and accept suggestions of other people.
It depends. There are different bugs, some are caused by carelessness, some are from the architectural flaws, some are because the lack of knowledge, some are just hard to see. Since you mentioned you hated the tone, maybe it's only the tone.
No you shouldn't, the progress of learning is to make mistakes. One who never make bugs or mistakes is never challenging themself.
No, you shouldn't. You should take it as a chance to learn and try not to do the same mistake again. Whatever weight the bug carries, you shouldn't feel bad. Because if you code without bugs, either you will be a robot or you take help from some robot!
@emilmoe the ones caused by careless or lack of knowledge, they are my fault. And especially for the later one, it could happen again due to my weakness.
Hans-Helge Buerger
PHP, WordPress, JS Developer
I think it's natural to feel somehow embarrassed (or is it the culture we live in?). Anyhow. Don't feel bad for yourself. I sometimes feel the same - we do make mistakes but when someone finds a bug and reports it, try feeling good about it. The person took some time to read your code and even spend time to write you that something could be improved.
Tom McFarlin (known as WordPress developer) wrote a nice article about that "This could be better".
One last word about the tone. Keep calm. You don't know what this person has gone thru today. Maybe s/he had a rough day. If the person repeatedly uses that tone you should ask her/him why.