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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Automating Dead Code Cleanup

111 点作者 dangoldin超过 1 年前

10 条评论

omoikane超过 1 年前
Related: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35755841">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35755841</a> - Sensenmann: Code Deletion at Scale
philbo超过 1 年前
My favourite technique for tackling dead code is something I saw in a lightning talk at Velocity Conf years ago. I&#x27;ve introduced it at three different companies now, it&#x27;s worked well in all three places and I&#x27;m always surprised it isn&#x27;t more widely known&#x2F;discussed (afaik).<p>This was the talk: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=29UXzfQWOhQ">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=29UXzfQWOhQ</a>
评论 #38081908 未加载
JonChesterfield超过 1 年前
This is a really interesting application of tooling. Especially since it&#x27;s cross language, though it sounds like they&#x27;ve punted on strings passed to eval.<p>I&#x27;m curious what stops tests being considered dead and eligible for deletion. If you just excluded the directory called &#x27;test&#x27; or similar you&#x27;d miss code that is dead other than uses from test code, which is probably a fair approximation to all &quot;dead&quot; code.
yoazmenda超过 1 年前
In other words, they built a code-aware system that both statically and dynamically which can format all the code at scale, delete code, etc...<p>If there is ever an AI sophisticated enough to write a new feature, I believe this is the way it will &quot;look&quot; at the code and re-write it
faizshah超过 1 年前
Any details on CodeModService? I’m curious cause I was just reading about Rosie from google.<p>There’s not really much public info on large scale code mod tools.
评论 #38081164 未加载
dep_b超过 1 年前
Interesting stuff. I&#x27;m always struggling to find dead code in Xcode projects as there&#x27;s very little refactoring tooling compared to bigger IDE&#x27;s like the classic Visual Studio on Windows or JetBrains products. I miss seeing dead code as greyed out. Them mentioning Objective-C gives me some hope.
imvetri超过 1 年前
I&#x27;m trying to solve automatic code refactoring for frontend.<p>Theory - Frontend is a giant tree of combination of component&#x27;s variant of show or hide.<p>With that fact, I&#x27; was attempting to create a code base scanner to automatically convert the code into such configurations.<p>This article gave me lot of hopes.
readthenotes1超过 1 年前
100m lines removed!<p>That&#x27;s a lot of &quot;developer productivity&quot;...<p>This makes me kind of sad, removing dead code was one of the joys of the job.
评论 #38082193 未加载
DonHopkins超过 1 年前
Now we just need AI that deletes dead comments.
评论 #38083022 未加载
Uptrenda超过 1 年前
Love the pic of the black and white dev. Got to have that diversity, baby! Doesn&#x27;t matter that only 8% of tech employees are black. No, in corpo-magic-fucking-pixie-bullshit-land they make up 50%.
评论 #38083403 未加载
评论 #38083004 未加载
评论 #38082575 未加载