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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

400,000 GitHub repositories,1B files,14 terabytes of code:Spaces or Tabs?

19 点作者 subliminalpanda超过 8 年前

5 条评论

Rockslide超过 8 年前
I just don&#x27;t get it. No one would argue that there clearly are different preferences in terms of the preferred indention width among different developers. So who on earth thinks: hey, I like an indention of 2 spaces. Let&#x27;s just require that for every person on earth who will ever have to deal with my source code. Just indent with tabs and everyone is happy.<p>Furthermore, when people are asked why they prefer spaces, the answer very often is along the lines of &quot;because then my code looks the same on every machine and no matter where I look at it&quot;. Which, in my opinion, is totally misguided. Indenting code is not about looking the same to everyone everywhere, it&#x27;s about gaining the best readability for everyone, and there just can&#x27;t be a sane default for that intrinsically.
评论 #12403636 未加载
greenyoda超过 8 年前
Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12397246" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12397246</a>
ericfrederich超过 8 年前
They mention that they searched for Python but it isn&#x27;t represented in the charts.
speps超过 8 年前
I&#x27;ve always loved the intention behind `gofmt`, you can see the result here.
collyw超过 8 年前
Can&#x27;t believe there are no comments already. (Spaces by the way).