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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: CodeBuff – smart code formatter

62 点作者 parrt超过 8 年前

7 条评论

chriswarbo超过 8 年前
Very interesting! I have been thinking about something similar, but rather than learning from examples, it would have a generic &quot;misaligned&quot; cost function that would penalise lines which have similar content but in different columns, and minimise this by hillclimbing or similar.<p>The difficulty is tying it to a particular language&#x27;s parser and whitespace rules.
评论 #12531706 未加载
评论 #12530528 未加载
mkagenius超过 8 年前
Does this ML model assume that popular code style = correct code style? (had a cursory look)
评论 #12529095 未加载
评论 #12528770 未加载
clemensley超过 8 年前
Love this approach. We need more ai applied to problems in writing code. Like an ai parser that auto corrects errors. Anyone know if something like this exists?
评论 #12547160 未加载
评论 #12532292 未加载
lubomir超过 8 年前
How does it deal with languages with significant whitespace? Can it format Python without breaking it?
评论 #12530520 未加载
评论 #12532249 未加载
thealistra超过 8 年前
Why do you need a grammar if this is supposed to learn it itself from the code?
评论 #12530031 未加载
评论 #12532230 未加载
jpalomaki超过 8 年前
This would be a nice way for getting the code formatter configuration about right when switching to a new editor with an old project.
Hydraulix989超过 8 年前
How does this improve over VSCode&#x27;s golang formatting (which I think is excellent)?
评论 #12529496 未加载
评论 #12530518 未加载