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

2021-02-27 04:45:24 +08:00
 ericgui

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

4095 次点击
所在节点    程序员
14 条回复
noqwerty
2021-02-27 05:10:49 +08:00
哈哈,又不是不能用.jpg
Trim21
2021-02-27 05:18:51 +08:00
重命名成 permanentFix,todo 立刻移除
Seddas
2021-02-27 05:53:11 +08:00
这算啥,我见过七八年的 todo
Ehco1996
2021-02-27 08:13:39 +08:00
todo means never do
hlwjia
2021-02-27 11:24:07 +08:00
只能说这个 fix 写地很耐用
itabas016
2021-02-27 12:00:15 +08:00
TODO 意思是 I have an idea
leega0
2021-02-27 15:45:51 +08:00
只要不是计划需求,能 do 的都 do 了,to do 的 never to do
12101111
2021-02-27 15:56:31 +08:00
17 year old Firefox feature request fixed:
https://news.ycombinator.com/item?id=26256459
fucUup
2021-02-27 16:29:57 +08:00
做就是爱, 不做证明你不爱
git00ll
2021-02-27 16:43:16 +08:00
todo 补充这里的注释
mingl0280
2021-02-27 17:05:13 +08:00
我一般会在写完一个项目以后用 todo explorer 扫一下代码看看还剩啥 todo 没,有的话赶紧给实现了。
wd
2021-02-27 17:25:37 +08:00
@Trim21 你还别说,改名也是个 todo..
CEBBCAT
2021-02-27 17:44:47 +08:00
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(kl@gmail.com): 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
2021-02-27 18:04:15 +08:00
我寻思能工作三年的 temporaryFix 的质量,早就经过实践检验,可以称得上是 stableFix 了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/756664

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX