TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to deal with hostile code review?

4 点作者 codingstuffs将近 5 年前
The small startup I work for is starting to do a refactoring&#x2F;version 2 of its product, as such the owner is going through the code base and marking areas for improvement.<p>He has marked a few parts of the code that I worked on, and one in particular has the comment &quot;&#x2F;&#x2F;codingstuffs: This code makes me want to cry. Try xxx coding style??&quot;<p>Now, I will be the first to admit that likely my code sometimes can be a little messier, but the coding style he prefers the pyramid of doom (https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Pyramid_of_doom_(programming)) and I had been taught this was not a good thing.<p>I&#x27;m happy to code to his particular style, but I can&#x27;t help but feel hurt by the comments. Does anyone have suggestions as to how to separate themselves more from their code&#x2F;work so that I can not take this as personally?

1 comment

wizzwizz4将近 5 年前
Ask the owner to be a bit nicer. You can say something like:<p>&gt; While we all make snide comments about our own code, it <i>really hurts</i> when it comes from somebody else; this is distracting me from the actual suggestions you&#x27;re giving. Could you try to be nicer with the comments you leave during code review?<p>This isn&#x27;t a problem with you.
评论 #23690736 未加载