• 请不要在回答技术问题时复制粘贴 AI 生成的内容
simple_plan
V2EX  ›  程序员

命名困难户

  •  
  •   simple_plan ·
    doubledouble · Nov 14, 2011 · 5175 views
    This topic created in 5471 days ago, the information mentioned may be changed or developed.
    每次新建文件、类、方法、字段的时候,
    总是为起个容易好记的名字而纠结~~~
    像有些用英文翻译过来很长很长(缩写的话很难明白原来的意思)
    或者一些专用术语
    不知道大家是怎么解决的。
    6 replies  •  1970-01-01 08:00:00 +08:00
    unstop
    unstop
    Nov 14, 2011
    1
    分段命名吧,比如首页右边的友情链接边栏模板,可以叫:index_sidebar_links
    尽量用简单的英文词,实在不行……就用拼音吧
    xingzhi
    xingzhi
    Nov 14, 2011
    2
    哈哈,起一个project名字最难
    yangg
    yangg
    Nov 14, 2011
    3
    很长的单词用前3个或4个字母,很多单词的,果断用缩写
    Kymair
    Kymair
    Nov 14, 2011
    4
    之前在Coders at work里看Joshua Bloch的访谈,他会随时在身边放一本辞典,每次取名字前都会翻翻。
    simple_plan
    simple_plan
    OP
    Nov 14, 2011
    5
    @Kymair 我每次都是有道翻翻 - -
    glume
    glume
    Nov 15, 2011
    6
    同病~我甚至尝试过用中文。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1821 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:42 · PVG 09:42 · LAX 17:42 · JFK 20:42
    ♥ Do have faith in what you're doing.