V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
simple_plan
V2EX  ›  程序员

命名困难户

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