提问 HN:维护者为什么花时间审查我的代码?
1 分•作者: dils•7 个月前
最近,我一直在参与各种开源项目。我主要处理标有“新手友好”标签的问题。在开始解决问题之前,我通常会先看看其他人之前的尝试。如果问题出现超过一年,我通常能找到几个PR或评论。通过查看工作历史,通常就能明白之前的尝试为什么没有成功:有人完全误解了任务并走错了方向,有人几乎不会写代码,还有人只是在@贡献者,而不是真正地解决问题[1]。让我感到惊讶的是,维护者几乎总是有时间回答每一个问题,审查那些荒谬且错误的PR,并花几天时间与贡献者(包括我)沟通,提供关于工作的反馈,而他们自己完全可以在不到一个小时内解决这个问题。老实说,我不明白为什么一个拥有10年以上经验的人会花时间审查我的“新手友好”PR,好像他们没有其他事情可做一样。我努力想做出贡献并学习,但我不希望打扰任何人或浪费任何人的时间,这就是为什么我想知道维护者为什么要花时间审查我的代码?他们的动机是什么?
[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 "good first issues". 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't understand why someone with 10+ years of experience would spend time reviewing my "good first issue" PRs like they don'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's why I am wondering why would maintainers spend their time reviewing my code? What is their motivation?<p>[1] https://github.com/tensorflow/tensorflow/issues/22926#issuecomment-2888463504