问HN:维护者为什么要花时间审查我的代码?

1作者: dils2 个月前原帖
最近,我一直在参与各种开源项目的工作。大多数情况下,我专注于标记为“适合新手的问题”。在开始处理一个问题之前,我通常会查看其他人之前的尝试。如果这个问题存在超过一年,通常我能找到几条PR(拉取请求)或评论。通过查看工作历史,通常可以明显看出之前的尝试为何没有成功:有人完全误解了任务,走了错误的方向;有人几乎不会编码;还有人只是不断提醒贡献者,而不是实际做工作[1]。令我感到惊讶的是,维护者几乎总能抽出时间回答每一个问题,审查那些极其糟糕和错误的PR,并花费数天时间与贡献者(包括我)沟通,提供关于工作的反馈,而他们自己完全可以在不到一个小时的时间内解决这个问题。老实说,我不明白为什么一个拥有10年以上经验的人会花时间审查我的“适合新手的问题”的PR,好像他们没有其他事情可做。我想要有所贡献并学习,但我不想打扰任何人或浪费任何人的时间,这就是我想知道维护者为什么会花时间审查我的代码的原因。他们的动机是什么?<p>[1] https://github.com/tensorflow/tensorflow/issues/22926#issuecomment-2888463504
查看原文
Recently, I was working on various open source projects. Mostly I was working on issues labelled as &quot;good first issues&quot;. Before I start working on a issue I usually take a look at the previous attempts made by other people. Usually I can find a couple of PRs or comments if the issue is older than one year. Looking at the work history usually it becomes obvious why previous attempts were not successful: someone completely misunderstood the task and went the wrong direction, someone can barely code, someone is just pinging the contributors instead of doing the actual work[1]. What was surprising to me was that the maintainers almost always found time to answer every question, review ridiculously bad and incorrect PRs and spend days communicating with the contributor (including me) to give feedback about the work, while they themselves could absolutely resolve the issue in less than an hour. To be honest I don&#x27;t understand why someone with 10+ years of experience would spend time reviewing my &quot;good first issue&quot; PRs like they don&#x27;t have anything else to do. I am trying to be useful and to learn but I don’t want to bother anyone or waste anyone’s time and that&#x27;s why I am wondering why would maintainers spend their time reviewing my code? What is their motivation?<p>[1] https:&#x2F;&#x2F;github.com&#x2F;tensorflow&#x2F;tensorflow&#x2F;issues&#x2F;22926#issuecomment-2888463504