提问 HN:我该如何帮助经常打错字的同事?
5 分•作者: tornadofart•6 个月前
新年快乐!
有个奇怪的问题,但还是说一下吧。
我的同事工作非常认真负责,工作努力,学习也很快,还会主动增加测试覆盖率等等。我认为他的贡献是积极的,但他的某些工作会引发问题,尤其是在配置文件、shell脚本等方面,也就是那些没有被代码检查工具或拼写检查器直接发现的问题。
他的拼写错误率很高。我怀疑他可能没有被诊断出患有阅读障碍。
错误常常很晚才被发现,多数是在预发布环境中,这使得问题变得很棘手。这导致了数次生产环境的中断。
我们有代码审查,也有完善的测试套件等,但拼写错误还是会漏过去——一旦你犯了错误,其他人就更难发现它们。
我为他感到难过,因为这已经在团队内部引发了指责,有人问怎么会这么粗心。我并不认为他是粗心,因为他其他方面都很细致。另一方面,这个问题已经升级,因为他对此非常敏感。
我怀疑他既清楚这个问题,又同时否认这个问题,因此极度防御。
他的看法是我们应该增加测试覆盖率。这的确是解决方案的一部分。然而,一旦他参与编写测试,问题就转移到了编写正确的测试上。
我正在考虑的:
* 解决问题:调整我们的工具和配置机制,在配置中使用更少的字符串,减少动态类型脚本等。
* 请他让AI专门审查他的代码,检查潜在的拼写错误。
* 增加测试覆盖率,但测试由其他人编写。
我没有考虑的:
* 告诉他我怀疑他有阅读障碍。我不是医生。
我正在努力拓宽我对这个问题的视野,也许我遗漏了什么。你会怎么做?
查看原文
Happy new year!<p>Weird question but here goes.<p>My colleague has a strong work ethic, works hard, learns fast, goes out of his way to increase test coverage etc. I would say his contribution is net-positive but some of his work causes problems, especially when it comes to config files, shell scripting etc., so everything that is not directly caught by a linter or spell-checker.<p>His typo rate is quite high. I suspect an undiagnosed dyslexia.<p>Mistakes are often caught very late, mostly in staging, making it cumbersome. It led to a few production outages.<p>We have code reviews, a solid test suite etc. but typos are slipping through - once you make them, it's just harder for others to catch them.<p>I feel bad for him because it already led to a blame game within the team, with some asking how one can be so sloppy. I don't suspect sloppiness because he is otherwise thorough. On the other hand, it escalated because the subject is very touchy with him.<p>I suspect he is weirdly aware of the problem and in denial at the same time, and therefore extremely defensive.<p>His take is that we should increase test coverage. It is part of the answer. However, once he's involved in writing the tests, the problem is shifted to writing correct tests.<p>What I'm thinking about:<p>- engineer the problem away: adjust our tooling and config mechanisms, less strings in our configs, less dynamically-typed scripting etc.<p>- asking him to let AI review his code specifically for potential typos<p>- increasing test coverage, with other people than him writing the tests<p>What I am not considering:<p>- Telling him I suspect he has dyslexia. I'm not a doctor.<p>I'm trying to broaden my horizon on this issue, maybe I am missing something. What would you do?