《程式英文》 English for Programmers
「英文」是不少人學程式的關卡,而「命名」是電腦科學最難的問題之一。
這裡搜集了常見的「如何用英文命名、表達程式裡某個東西?」的問題與答案,幫助你學會 用英文提昇程式可讀性
❓ / 建議 💡 / 感想 💭
歡迎提出 問題 《程式英文》 GitHub 討論區
縮寫、簡寫的優缺點
2020-11-27 cognitive load
- Google 文件 https://bit.ly/2JgaQCL
- PTT 文章 https://bit.ly/2HHiO7d
- Facebook 討論 https://bit.ly/2V6DoRl
- Twitter 討論 https://bit.ly/2V9dso8
高中6K字-108版
2020-11-16 JSON
- 字表 Google Sheets 版 https://bit.ly/2ULo0tL
- 字表 JSON 版 https://bit.ly/2ILggFo
- Google 文件 https://bit.ly/35C8AhB
- PTT 文章 https://bit.ly/2Iy6nLt
- Facebook 討論 https://bit.ly/32Qe0ng
- Twitter 討論 https://bit.ly/35Cgesn
刷 LeetCode 練習命名
2020-11-07 LeetCode, naming, stack, digit, place, upper bound, majorant, lower bound, minorant, inclusive, exclusive
- Google 文件 https://bit.ly/2GIyLtk
- PTT 文章 https://bit.ly/3k8L6EN
- Facebook 討論 https://bit.ly/3ldpEQq
- Twitter 討論 https://bit.ly/3lcec7r
「命名」這個問題的本質
2020-10-02 naming
- Google 文件 https://bit.ly/2GvWwV2
- PTT 文章 https://bit.ly/36tInT8
- Facebook 討論 https://bit.ly/3jtwdgH
- Twitter 討論 https://bit.ly/3cSSP7J
如何命名「分段」功能?
2020-09-25 slice, split, detach, disconnect, delimiter, separator, divider, splitter, break
- Google 簡報 https://bit.ly/3mPCOEa
- PTT 文章 https://bit.ly/3i2ZKfy
- Facebook 討論 https://bit.ly/2G3gI0a
- Twitter 討論 https://bit.ly/2RVhIpE
「屬性」該用哪個字?
2020-09-18 attribute, property
- Google 簡報 https://bit.ly/32DAoAD
- Facebook 討論 https://bit.ly/35PASpc
- PTT 文章 https://bit.ly/3hJfR1P
- Twitter 討論 https://bit.ly/2RBSLQ5
如何命名「集合名詞」數量變數?
2020-09-11 size, return, result
- Google 簡報 https://bit.ly/3m9PWDZ
- Facebook 討論 https://bit.ly/33fQCix
- PTT 文章 https://bit.ly/3kbqJY1
- Twitter 討論 https://bit.ly/35pGG8F
如何命名「狀態」變數?
2020-09-04 state, status, ordinal
- Google 簡報 https://bit.ly/2GtLobb
- Facebook 討論 https://bit.ly/2EW8BCq
- PTT 文章 https://bit.ly/3boxC53
- Twitter 討論 https://bit.ly/3jCLPhE
如何命名「複製」功能?
2020-08-28 copy, clone, duplicate
- Google 簡報 https://bit.ly/3guPFaE
- Facebook 討論 https://bit.ly/2ExUOSl
- PTT 文章 https://bit.ly/2EoIPXj
- Twitter 討論 https://bit.ly/3hC9EFI
如何命名「檢查」功能?2
2020-08-21 validate, verify, argument, parameter
- Google 簡報 https://bit.ly/3l161ey
- Facebook 討論 https://bit.ly/3glA4Kd
- PTT 文章 https://bit.ly/2CPyq6a
- Twitter 討論 https://bit.ly/2QfUPfK
如何命名「檢查」功能?
2020-08-14 check, test, verify, validate, assert, ensure, confirm, authenticate, scan, ping, analyze, audit, diagnose, inspect
- Google 簡報 https://bit.ly/31UiEPK
- Facebook 相簿 https://bit.ly/31NqsCU
- PTT 文章 https://bit.ly/3ixdi3M
- Twitter 討論 https://bit.ly/3fPEmti
如何命名「次數」變數?
2020-08-07 times, calculate, compute, sum, total
- Google 簡報 https://bit.ly/3a1lDcO
- Facebook 相簿 https://bit.ly/2DHjNSx
- PTT 文章 https://bit.ly/30zS1QR
- Twitter 討論 https://bit.ly/3aaNlEg
如何命名「刪除」功能?
2020-07-31 clear, empty, delete, remove, clean, erase, cancel, dismiss
- Google 簡報 https://bit.ly/2XazA2P
- Facebook 相簿 https://bit.ly/2EsPmj9
- PTT 文章 https://bit.ly/2DilNAm
- Twitter 討論 https://bit.ly/2D57pM5
如何命名「種類」?
2020-07-24 type, kind, category, class, classification, sort, group, tag, attribute, property
- Google 簡報 https://bit.ly/2OOSpEs
- Facebook 相簿 https://bit.ly/3ju7sBz
- PTT 文章 https://bit.ly/30Aqduc
- Twitter 討論 https://bit.ly/2CYKgdZ
一定要寫英文嗎?
2020-07-17 ASCII, Unicode
- Google 簡報: https://bit.ly/2DGDhXd
- Facebook 相簿 : https://bit.ly/3fCF2mv
- PTT 文章 : https://bit.ly/3eD2VsO
- Twitter 討論 : https://bit.ly/2ZGtY2l
如何命名「數量變數」?
2020-07-10 count, number, quantity
- Google 簡報: https://bit.ly/3elcZGT
- Facebook 相簿 : https://bit.ly/3iNsgDO
- PTT 文章 : https://bit.ly/2DtNV3B
- Twitter 討論 : https://bit.ly/32947Sc