leohxj
V2EX  ›  问与答

大家对变量命名有什么技巧么?

  •  
  •   leohxj · Aug 27, 2014 · 2940 views
    This topic created in 4475 days ago, the information mentioned may be changed or developed.
    谈谈你对变量命名的技巧吧。
    6 replies  •  2014-08-27 20:35:42 +08:00
    tabris17
    tabris17
    Aug 27, 2014❤️1
    1
    如果语言支持,可用中文
    happywowwow
    happywowwow
    Aug 27, 2014❤️1
    2
    我是下划线爱好者
    loading
    loading
    Aug 27, 2014 via Android❤️1
    3
    如果代码不想让人看,联系拼音首字母
    roushan
    roushan
    Aug 27, 2014❤️1
    4
    尽量不要让别人看出是什么意思,能多长就多长
    hellov22ex
    hellov22ex
    Aug 27, 2014❤️1
    5
    名词小写,动词大写
    简单明了的写出这个玩意是干嘛的
    太长的不要
    hellov22ex
    hellov22ex
    Aug 27, 2014
    6
    哎,好像名词和动词那个倒了下。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1711 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:45 · PVG 08:45 · LAX 16:45 · JFK 19:45
    ♥ Do have faith in what you're doing.