Tab 還是空格?程式碼風格戰爭一次看懂

觀看數觀測
共同標籤
已比對共同詞彙 · 18 個標籤 · 比對時間 2026/11/03 下午03:57
比對依據(60 處)
- Junior影片說明v0.9 Tab 還是空格?這集陪 Junior 分清楚程式碼風格戰爭裡,哪些是語法、寫…
- 程式影片說明… 還是空格?這集陪 Junior 分清楚程式碼風格戰爭裡,哪些是語法、寫錯會報錯,哪…
- 戰爭影片說明…?這集陪 Junior 分清楚程式碼風格戰爭裡,哪些是語法、寫錯會報錯,哪些只是各家…
- 團隊影片說明…g、formatter 與 CI 怎麼讓團隊停戰。 章節 0:00 Tab 還是空…
- 20影片說明… 章節 0:00 Tab 還是空格 0:20 Tab 和空格存的不一樣 1:51 P…
- 20影片說明…是語意 3:51 慣例:縮排與行長 5:20 大括號 5:57 命名 6:29 證據…
- 協議影片說明…式化另開 commit 10:49 停戰協議 11:13 總結 參考資料 - Ed…
- 2026影片說明…onfig〈EditorConfig〉(2026-10-28 查閱):https://e…
- 2026影片說明…17.2 documentation〉(2026-10-28 查閱):https://s…
- 2026影片說明…15.2 documentation〉(2026-10-28 查閱):https://d…
- Line影片說明…- Python〈1. Command line and environment — P…
- Environment影片說明…1. Command line and environment — Python 2.7.18 doc…
- 2026影片說明…7.18 documentation〉(2026-10-28 查閱):https://d…
- 2026影片說明… - Go〈Effective Go〉(2026-10-28 查閱):https://g…
- The影片說明…_go#semicolons - Go〈The Go Programming Lang…
- 2026影片說明…uage Specification〉(2026-10-28 查閱):https://g…
- International影片說明…c#Semicolons - Ecma International〈ECMAScript® 2026 La…
- 2026影片說明…ational〈ECMAScript® 2026 Language Specificat…
- 2026影片說明…uage Specification〉(2026-10-29 查閱):https://2…
- The影片說明…olon-insertion - Go〈The Go Programming Lang…
- 2026影片說明…uage Specification〉(2026-10-28 查閱):https://g…
- Google影片說明…hon.org/pep-0008/ - Google〈Google Java Style G…
- Google影片說明…/pep-0008/ - Google〈Google Java Style Guide〉(2…
- 2026影片說明…e Java Style Guide〉(2026-10-28 查閱):https://g…
- 2026影片說明…ernel coding style〉(2026-10-28 查閱):https://d…
- Microsoft影片說明…coding-style.html - Microsoft Learn〈.NET Coding C…
- 2026影片說明…g Conventions - C#〉(2026-10-28 查閱):https://l…
- Google影片說明…oding-conventions - Google〈C# at Google Style …
- Google影片說明…ions - Google〈C# at Google Style Guide〉(2026-1…
- 2026影片說明…Google Style Guide〉(2026-10-28 查閱):https://g…
- 2026影片說明…StyleDefaults.java〉(2026-10-29 查閱):https://g…
- 2026影片說明…StyleSettings.java〉(2026-10-29 查閱):https://g…
- 2026影片說明…tingsProvider.java〉(2026-10-29 查閱):https://g…
- The影片說明…er.java#L422-L426 - The Jargon File 4.4.7〈i…
- 2026影片說明…4.4.7〈indent style〉(2026-10-28 查閱):http://ww…
- WHO影片說明…Overflow〈Developers Who Use Spaces Make Mor…
- WHO影片說明…re Money Than Those Who Use Tabs〉(2017-06-1…
- On影片說明… Eye Tracking Study on camelCase and under…
- Marco影片說明…rticle/view/30356 - Marco Zehe〈About Marco Ze…
- Marco影片說明… - Marco Zehe〈About Marco Zehe〉(2026-10-30 查閱…
- 2026影片說明…e〈About Marco Zehe〉(2026-10-30 查閱):https://m…
- Marco影片說明…rcozehe.de/about/ - Marco Zehe〈Change `useTab…
- 2026影片說明…- Go〈gofmt command〉(2026-10-28 查閱):https://p…
- 2026影片說明…tier〈Why Prettier?〉(2026-10-28 查閱):https://p…
- 2026影片說明…〈Option Philosophy〉(2026-10-28 查閱):https://p…
- 2026影片說明…- Prettier〈Options〉(2026-10-28 查閱):https://p…
- 2026影片說明…Configuration File〉(2026-10-30 查閱):https://p…
- 2026影片說明…Prettier〈Rationale〉(2026-10-28 查閱):https://p…
- 2026影片說明…ettier vs. Linters〉(2026-10-29 查閱):https://p…
- 2026影片說明…Lint〈Core Concepts〉(2026-10-29 查閱):https://e…
- 2026影片說明…pts/ - Astral〈Ruff〉(2026-10-29 查閱):https://d…
- GitHub影片說明…s.astral.sh/ruff/ - GitHub Docs〈Continuous int…
- 2026影片說明…inuous integration〉(2026-10-29 查閱):https://d…
- Martin影片說明…nuous-integration - Martin Fowler〈Continuous I…
- 2026影片說明…StyleSettings.java〉(2026-10-29 查閱):https://g…
- 2026影片說明…lame Documentation〉(2026-10-28 查閱):https://g…
- GitHub影片說明…om/docs/git-blame - GitHub Docs〈Viewing and un…
- 2026影片說明…nderstanding files〉(2026-10-28 查閱):https://d…
- 程式影片標題Tab 還是空格?程式碼風格戰爭一次看懂
- 戰爭影片標題Tab 還是空格?程式碼風格戰爭一次看懂
比對版本
youtube-quality-20261017-a
影片說明
v0.9 Tab 還是空格?這集陪 Junior 分清楚程式碼風格戰爭裡,哪些是語法、寫錯會報錯,哪些只是各家的慣例。再看實驗證據能說到哪裡,最後談 EditorConfig、formatter 與 CI 怎麼讓團隊停戰。 章節 0:00 Tab 還是空格 0:20 Tab 和空格存的不一樣 1:51 Python:縮排就是語法 2:44 Go 和 JavaScript 的分號 3:18 Go:大小寫就是語意 3:51 慣例:縮排與行長 5:20 大括號 5:57 命名 6:29 證據能說到哪裡 8:05 gofmt 與 Prettier 9:04 工具怎麼分工 9:59 格式化另開 commit 10:49 停戰協議 11:13 總結 參考資料 - EditorConfig〈EditorConfig〉(2026-10-28 查閱):https://editorconfig.org/ - EditorConfig〈EditorConfig Specification — EditorConfig Specification 0.17.2 documentation〉(2026-10-28 查閱):https://spec.editorconfig.org/ - Python〈2. Lexical analysis — Python 3.15.2 documentation〉(2026-10-28 查閱):https://docs.python.org/3/reference/lexical_analysis.html - Python〈1. Command line and environment — Python 2.7.18 documentation〉(2026-10-28 查閱):https://docs.python.org/2.7/using/cmdline.html - Go〈Effective Go〉(2026-10-28 查閱):https://go.dev/doc/effective_go#semicolons - Go〈The Go Programming Language Specification〉(2026-10-28 查閱):https://go.dev/ref/spec#Semicolons - Ecma International〈ECMAScript® 2026 Language Specification〉(2026-10-29 查閱):https://262.ecma-international.org/17.0/#sec-automatic-semicolon-insertion - Go〈The Go Programming Language Specification〉(2026-10-28 查閱):https://go.dev/ref/spec#Exported_identifiers - Python〈PEP 8 – Style Guide for Python Code〉(2001-07-05):https://peps.python.org/pep-0008/ - Google〈Google Java Style Guide〉(2026-10-28 查閱):https://google.github.io/styleguide/javaguide.html - Linux kernel〈Linux kernel coding style〉(2026-10-28 查閱):https://docs.kernel.org/process/coding-style.html - Microsoft Learn〈.NET Coding Conventions - C#〉(2026-10-28 查閱):https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions - Google〈C# at Google Style Guide〉(2026-10-28 查閱):https://google.github.io/styleguide/csharpguide.html - IntelliJ IDEA〈CodeStyleDefaults.java〉(2026-10-29 查閱):https://github.com/JetBrains/intellij-community/blob/8062c061ff/platform/code-style-api/src/com/intellij/psi/codeStyle/CodeStyleDefaults.java#L19-L20 - IntelliJ IDEA〈CommonCodeStyleSettings.java〉(2026-10-29 查閱):https://github.com/JetBrains/intellij-community/blob/8062c061ff/platform/code-style-api/src/com/intellij/psi/codeStyle/CommonCodeStyleSettings.java#L1038-L1042 - IntelliJ IDEA〈JavaLanguageCodeStyleSettingsProvider.java〉(2026-10-29 查閱):https://github.com/JetBrains/intellij-community/blob/8062c061ff/java/java-frontback-impl/src/com/intellij/ide/JavaLanguageCodeStyleSettingsProvider.java#L422-L426 - The Jargon File 4.4.7〈indent style〉(2026-10-28 查閱):http://www.catb.org/jargon/html/I/indent-style.html - Stack Overflow〈Developers Who Use Spaces Make More Money Than Those Who Use Tabs〉(2017-06-15):https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/ - Sharif 與 Maletic〈An Eye Tracking Study on camelCase and under_score Identifier Styles〉(2010-06-30):https://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf - Oliveira 等人〈Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers〉(2024-09-30):https://sol.sbc.org.br/index.php/sbes/article/view/30356 - Marco Zehe〈About Marco Zehe〉(2026-10-30 查閱):https://marcozehe.de/about/ - Marco Zehe〈Change `useTabs` to `true` by default · Issue #7475 · prettier/prettier〉(2020-08-04):https://github.com/prettier/prettier/issues/7475#issuecomment-668544890 - Go〈gofmt command〉(2026-10-28 查閱):https://pkg.go.dev/cmd/gofmt - Prettier〈Why Prettier?〉(2026-10-28 查閱):https://prettier.io/docs/why-prettier - Prettier〈Option Philosophy〉(2026-10-28 查閱):https://prettier.io/docs/option-philosophy - Prettier〈Options〉(2026-10-28 查閱):https://prettier.io/docs/options - Prettier〈Configuration File〉(2026-10-30 查閱):https://prettier.io/docs/configuration - Prettier〈Rationale〉(2026-10-28 查閱):https://prettier.io/docs/rationale - Prettier〈Prettier vs. Linters〉(2026-10-29 查閱):https://prettier.io/docs/comparison - ESLint〈Core Concepts〉(2026-10-29 查閱):https://eslint.org/docs/latest/use/core-concepts/ - Astral〈Ruff〉(2026-10-29 查閱):https://docs.astral.sh/ruff/ - GitHub Docs〈Continuous integration〉(2026-10-29 查閱):https://docs.github.com/en/actions/get-started/continuous-integration - Martin Fowler〈Continuous Integration〉(2024-01-18):https://martinfowler.com/articles/continuousIntegration.html - IntelliJ IDEA〈CommonCodeStyleSettings.java〉(2026-10-29 查閱):https://github.com/JetBrains/intellij-community/blob/8062c061ff/platform/code-style-api/src/com/intellij/psi/codeStyle/CommonCodeStyleSettings.java#L360-L374 - Git〈Git - git-blame Documentation〉(2026-10-28 查閱):https://git-scm.com/docs/git-blame - GitHub Docs〈Viewing and understanding files〉(2026-10-28 查閱):https://docs.github.com/en/repositories/working-with-files/using-files/viewing-and-understanding-files 相關影片 - v0.8 Vim、Emacs、nano 差在哪?:https://youtu.be/AIfKE39MxEA SJ Studio|Stay Junior #Tab還是空格 #程式碼風格 #EditorConfig
本頁的資料來源與計算方式
影片的數字
- 公開統計
- 觀看、喜歡與留言總數是取得當時的 YouTube 公開統計,不是即時數值;各項統計的觀測時間可能不同。「資料最後記錄」是影片資料的記錄時間,不代表觀看、喜歡或留言都在那時重新觀測。
- 觀看歷史
- 圖上每個點是實際儲存的觀測,連線只為方便閱讀,不代表中間時間的測量值;沒有歷史觀測時不建立時間序列。
- 喜歡占互動
- 喜歡 ÷(喜歡+不喜歡+顯示留言),任一來源缺值時不估算。
- 字幕
- 只記錄來源是否提供字幕,尚未擷取逐字稿,因此字幕不列入標籤比對。
- 觀測分析
- 直播逐時/逐日最高同時在線取自所讀直播紀錄;讀取上限、略過與解析失敗的筆數列在「資料涵蓋範圍與解析限制」。
共同標籤
標籤來源:新文易數(tag.observe.tw)。共同標籤以文字比對影片標題與說明,不是 AI 判讀;命中不代表事件歸屬或立場,與頻道分類分開。標題或說明出現標籤,不代表影片主題;可能來自固定宣傳或版權文字。字幕尚未取得,不列入比對。
- 比對範圍
- 僅列出目前詞彙版本與影片標題、說明仍相符的比對結果;待比對或來源文字已變動的影片不列入,數量見「收錄與比對範圍」。
- 期間
- 「往前 N 日」包含今天與前 N 天,共 N+1 個台北日曆日(往前 7 日為 8 個日曆日);指定起訖日期時以實際起訖日為準。日數、日期與小時條件同時套用。
- 命中片段
- 每支影片最多顯示 3 段,標示來自標題、說明或字幕;沒有片段時顯示「沒有命中片段」,來源文字缺漏時顯示「來源文字未提供」,不另行補寫。完整比對依據在影片頁的「共同標籤與比對依據」。
- 顯示排除
- 符合標籤顯示規則的詞(上游排除詞、雜訊、純數字或日期、長度不符,以及核定的來源或平台名稱、雙字通用詞、國家城市政黨詞、少數 YouTube 平台或宣傳用語)整詞不列入排行,但仍保留在原始詞彙池與比對證據中;原始詞彙池列出排除原因。雙字通用詞只依核定清單判定,包含它們的人名、事件或具體議題不會因此被排除。管理員也可以在排行上直接排除個別標籤,同樣只影響排行顯示,每次排除與恢復都留有紀錄。
- 說明欄樣板
- 同一頻道說明欄反覆出現的宣傳段落不列入比對。「24小時」這類詞只在這種重複宣傳段落中略過,出現在一般新聞內容時照常計入;這不同於整詞的顯示排除。
- 示例
- 列表與片段只是符合條件的影片例子,不能用來推算整體比例或全站失真程度;有效比對的影片比例只代表比對完成度。
- 觀看
- 累計觀看是取得當時的公開觀測值,不是期間增量;無觀看值的影片不當作 0。
本頁資料範圍
觀看數與互動數為取得當時的公開觀測值。
時間序列只有一筆有效觀測時,只列出該值與觀測時間,不畫走勢圖;累積兩筆以上才畫圖。
資料來源
本站以納入名單的 YouTube 頻道與影片為範圍(名單見頻道觀測),數據來自 YouTube 公開資料與定時觀測:直播約每分鐘輪詢一次,頻道統計、新影片與影片統計則分批輪流更新,所以同一頁的數字不一定在同一時間取得。不涵蓋全 YouTube;缺漏、尚未收錄或資料服務中斷都不等於零,尚未取得的數值顯示「—」。
頁面使用台北時間(UTC+8)。「更新於」是來源已記錄的觀測時間;來源沒有記錄時顯示「未記錄」,不以開啟網頁的時間代替。
共同標籤詞彙的標籤來源:新文易數(tag.observe.tw),保留來源、版本與比對依據;本站的頻道分類沿用有影儀表板的來源組織方式,與內容標籤是不同維度。影片數、觀看數與直播同時在線人數分開計算,不代表 YouTube 全站流量,也不表示因果關係。
