vincel
V2EX  ›  编程

你们代码里的 username 的 n 会大写吗

  •  
  •   vincel · Mar 19, 2019 · 5184 views
    This topic created in 2640 days ago, the information mentioned may be changed or developed.

    以前按照驼峰命名法,第二个单词的首字母 n 应该大写,即写成 userName 昨天突然发现 username 居然是一个完整的单词...类似的还有 password、filename 对于强迫症的我现在就有点懵逼了 想问问各位所在公司的规范或者说个人习惯是如何书写的

    cydysm
        1
    cydysm  
       Mar 19, 2019
    这是一个完整的词
    username
    noun [ C ] UK ​ /ˈjuː.zə.neɪm/ US ​ /ˈjuː.zɚ.neɪm/ also user ID

    a name or other word that you sometimes need to type in along with a password before you are allowed to use a computer or a website
    agagega
        2
    agagega  
       Mar 19, 2019 via iPhone
    有强迫症的话建议改叫 handle
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5677 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:42 · PVG 09:42 · LAX 18:42 · JFK 21:42
    ♥ Do have faith in what you're doing.