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

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

  •  
  •   ericgui · Feb 27, 2021 · 4758 views
    This topic created in 1921 days ago, the information mentioned may be changed or developed.

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

    14 replies    2021-02-27 18:04:15 +08:00
    noqwerty
        1
    noqwerty  
       Feb 27, 2021 via Android
    哈哈,又不是不能用.jpg
    Trim21
        2
    Trim21  
       Feb 27, 2021 via Android   ❤️ 5
    重命名成 permanentFix,todo 立刻移除
    Seddas
        3
    Seddas  
       Feb 27, 2021 via iPhone
    这算啥,我见过七八年的 todo
    Ehco1996
        4
    Ehco1996  
       Feb 27, 2021 via iPhone   ❤️ 1
    todo means never do
    hlwjia
        5
    hlwjia  
    PRO
       Feb 27, 2021 via iPhone
    只能说这个 fix 写地很耐用
    itabas016
        6
    itabas016  
       Feb 27, 2021 via Android   ❤️ 1
    TODO 意思是 I have an idea
    leega0
        7
    leega0  
       Feb 27, 2021
    只要不是计划需求,能 do 的都 do 了,to do 的 never to do
    12101111
        8
    12101111  
       Feb 27, 2021
    17 year old Firefox feature request fixed:
    https://news.ycombinator.com/item?id=26256459
    fucUup
        9
    fucUup  
       Feb 27, 2021
    做就是爱, 不做证明你不爱
    git00ll
        10
    git00ll  
       Feb 27, 2021
    todo 补充这里的注释
    mingl0280
        11
    mingl0280  
       Feb 27, 2021 via Android
    我一般会在写完一个项目以后用 todo explorer 扫一下代码看看还剩啥 todo 没,有的话赶紧给实现了。
    wd
        12
    wd  
       Feb 27, 2021 via iPhone
    @Trim21 你还别说,改名也是个 todo..
    CEBBCAT
        13
    CEBBCAT  
       Feb 27, 2021   ❤️ 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  
       Feb 27, 2021   ❤️ 1
    我寻思能工作三年的 temporaryFix 的质量,早就经过实践检验,可以称得上是 stableFix 了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2757 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 15:47 · PVG 23:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.