V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ericgui
V2EX  ›  程序员

我们的一个函数名, temporaryFixXXXX,已经三年了,还是 temporary

  •  
  •   ericgui · 2021-02-27 04:45:24 +08:00 · 4100 次点击
    这是一个创建于 1400 天前的主题,其中的信息可能已经有所发展或是发生改变。

    所以啊,程序员的 TODO 。。。。

    14 条回复    2021-02-27 18:04:15 +08:00
    noqwerty
        1
    noqwerty  
       2021-02-27 05:10:49 +08:00 via Android
    哈哈,又不是不能用.jpg
    Trim21
        2
    Trim21  
       2021-02-27 05:18:51 +08:00 via Android   ❤️ 5
    重命名成 permanentFix,todo 立刻移除
    Seddas
        3
    Seddas  
       2021-02-27 05:53:11 +08:00 via iPhone
    这算啥,我见过七八年的 todo
    Ehco1996
        4
    Ehco1996  
       2021-02-27 08:13:39 +08:00 via iPhone   ❤️ 1
    todo means never do
    hlwjia
        5
    hlwjia  
       2021-02-27 11:24:07 +08:00 via iPhone
    只能说这个 fix 写地很耐用
    itabas016
        6
    itabas016  
       2021-02-27 12:00:15 +08:00 via Android   ❤️ 1
    TODO 意思是 I have an idea
    leega0
        7
    leega0  
       2021-02-27 15:45:51 +08:00
    只要不是计划需求,能 do 的都 do 了,to do 的 never to do
    12101111
        8
    12101111  
       2021-02-27 15:56:31 +08:00
    17 year old Firefox feature request fixed:
    https://news.ycombinator.com/item?id=26256459
    fucUup
        9
    fucUup  
       2021-02-27 16:29:57 +08:00
    做就是爱, 不做证明你不爱
    git00ll
        10
    git00ll  
       2021-02-27 16:43:16 +08:00
    todo 补充这里的注释
    mingl0280
        11
    mingl0280  
       2021-02-27 17:05:13 +08:00 via Android
    我一般会在写完一个项目以后用 todo explorer 扫一下代码看看还剩啥 todo 没,有的话赶紧给实现了。
    wd
        12
    wd  
       2021-02-27 17:25:37 +08:00 via iPhone
    @Trim21 你还别说,改名也是个 todo..
    CEBBCAT
        13
    CEBBCAT  
       2021-02-27 17:44:47 +08:00   ❤️ 1
    Use TODO comments for code that is temporary, a short-term solution, or good-enough but not perfect.

    TODOs should include the string TODO in all caps, followed by the name, e-mail address, bug ID, or other identifier of the person or issue with the best context about the problem referenced by the TODO. The main purpose is to have a consistent TODO that can be searched to find out how to get more details upon request. A TODO is not a commitment that the person referenced will fix the problem. Thus when you create a TODO with a name, it is almost always your name that is given.

    ```
    // TODO([email protected]): Use a "*" here for concatenation operator.
    // TODO(Zeke) change this to use relations.
    // TODO(bug 12345): remove the "Last visitors" feature.
    ```

    If your TODO is of the form "At a future date do something" make sure that you either include a very specific date ("Fix by November 2005") or a very specific event ("Remove this code when all clients can handle XML responses.").

    出自: https://google.github.io/styleguide/cppguide.html#TODO_Comments
    ipwx
        14
    ipwx  
       2021-02-27 18:04:15 +08:00   ❤️ 1
    我寻思能工作三年的 temporaryFix 的质量,早就经过实践检验,可以称得上是 stableFix 了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2775 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 13:40 · PVG 21:40 · LAX 05:40 · JFK 08:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.