分析 GitHub 上的 Tab 與 Space

作者用 BigQuery 分析了 GitHub 上的 Tab 與 Space 的差異 (是個 flame war 開始的節奏 XDDD):「400,000 GitHub repositories, 1 billion files, 14 terabytes of code: Spaces or Tabs?」。

可以看到除了 C 與 Go 以外,大多數的程式語言都是 Space > Tab。另外在文章下面也有使用的 BigQuery 指令可以參考。

3 thoughts on “分析 GitHub 上的 Tab 與 Space”

  1. go 有一個工具叫 fmt
    專門用在格式化 source code
    標準就是 tab
    所以才會看到
    go 都是 tab

    我想會放上去的應該都會順手用 fmt 改格式再上傳

Leave a Reply

Your email address will not be published. Required fields are marked *