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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Pros/Cons of the "drive by" code fix?

2 点作者 hlship大约 1 年前
A question for HN: I&#x27;m in the habit of making small changes, as I see them, in code - usually fixing documentation strings and comments, occasionally refactoring code or even adding missing tests.<p>These &quot;drive by&quot; fixes, as I call them, are often not related to why I&#x27;ve created a branch and PR on some codebase, they&#x27;re incidental.<p>I feel like if I tried to put them aside and address them later, they would never get fixed. The work of tracking them, checking out a fresh branch, making those changes, and getting them reviewed, merged, and released - outside of &quot;real work&quot; on the codebase - seems too difficult.<p>This applies to many open source projects I work on, as well as many of my current and past companies&#x27; internal code.<p>So is this a common habit? Is it something I should embrace, or something I should avoid?

暂无评论

暂无评论