版上的马工马婆,有遇到多年前写的比较复杂的程序自己看不懂的情况吗?
对于很复杂的逻辑,除了在code 上写comment, 还有什么好的做笔记的办法,方便以后回看?
谢谢大家
版上的马工马婆,有遇到多年前写的比较复杂的程序自己看不懂的情况吗?对于很复杂的逻辑,除了在code 上写comment, 还有什么好的做笔记的办法,方便以后回看?谢谢大家vangoc 发表于 2022-12-07 17:55
I wrote an email (with some technical analysis) years ago. Recently I pulled it out and totally did not understand what I was talking about.
所以要加comment。。。
我一般comment 是code 的好几倍长,这样才能保证以后能看懂。。。
Keep it simple
I wrote an email (with some technical analysis) years ago. Recently I pulled it out and totally did not understand what I was talking about.teamwork 发表于 2022-12-07 18:29
😂😂 Same! 不过我是写成文档。
常常遇到。
加comment
add more comments
会遇到 有时候需要改的话只好重写
lol, 看到这个帖子的时候,正在焦头烂额的改6年前写的code
你需要登录后才可以编辑