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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why I’m Ending my GitHub Streak after 844 Days

5 点作者 karangoeluw超过 9 年前

3 条评论

mindcrime超过 9 年前
I only consciously started paying attention to my streak a while back. I&#x27;m up to 33 days (today will make 34 once I push something). I have been using the &quot;streak focus&quot; to motivate me to make lots of &quot;easy, but useful&quot; changes to a large existing codebase.<p>Specifically, I have thousands of lines of Groovy&#x2F;Grails code that I&#x27;ve written over the past few years, where I lazily used &quot;println&quot; to output debug messages, instead of using the log object and the corresponding debug&#x2F;info&#x2F;error&#x2F;warn&#x2F;whatever call. So now, everyday, I grep through the code, find a file with some println&#x27;s in it, change some number of them (anywhere from 2 or 3, up to dozens), then commit that.<p>It&#x27;s a small thing, but over time it&#x27;s improving the code base, and pushing my streak up as well. And since I&#x27;m visiting every file (eventually) including ones I maybe otherwise wouldn&#x27;t touch, it&#x27;s also a chance to sometimes wind up removing dead code, outdated&#x2F;useless comments, etc.<p>And of course all this is mixed in with the actual development work on the project as well.<p>I doubt I&#x27;ll get to 844 days, but that&#x27;s OK. It&#x27;s fun and it&#x27;s a way to help keep things moving forward.
danso超过 9 年前
Meanwhile, John Resig is about to hit 700 days: <a href="https:&#x2F;&#x2F;github.com&#x2F;jeresig" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jeresig</a>
alttab超过 9 年前
Well done. The haters will come in and pick apart each commit and why it wasn&#x27;t worthy - but you&#x27;ve already won by that point.