4 ms·
I think that another downside of badmouthing code is the effect on morale. Who among is hasn't written code that, upon review, made us cringe? (Maybe a lot. M
by mooreds 10y ago
I think that another downside of badmouthing code is the effect on morale.
Who among is hasn't written code that, upon review, made us cringe? (Maybe a lot. Maybe just a bit.)
When you complain about code, instead of making constructive critiques, you aren't actually doing any one any good, least of all yourself. Instead, focus on what is good about the code and the opportunity to improve it that has just presented itself.
- manyxcxi 10y agoOne thing I used to do was to badmouth my own code to my team during our team code review/chat sessions. It usually went that we would pick a problematic section of code from some project, we'd talk about an elegant snippet of code we came across (from any project we came across), and some interesting new things. During the problematic code section if I was harsh they usually knew it was my name they were about to see in a commit log. It was a dramatic effect to prove the point: even the people who are supposed to be championing quality have a bad moment for whatever reason, no one is safe from shitty code or bad ideas and executions, and anyone can write something elegant and sneaky awesome. One bad commit doesn't make a shitty engineer, so don't go calling everyone else's code garbage. If you're really as good as you think you are you can fix it.
- StavrosK 10y agoWhy badmouth code at all? If it's in a code review, give feedback and wait for the change. If it's much later, on production, just rewrite it. If it's neither, why the hell aren't you doing code reviews?