PHPDoc 函数变更日志(@change?)

发布于 2024-08-29 10:01:34 字数 1431 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百思不得你姐 2024-09-05 10:01:34

最好将 SCM 日志转储到变更日志 txt 文件中,然后尝试将其嵌入到源代码中。

原因:

  1. 过时 - 如果您停止添加更改注释,这对任何人都没有任何好处,如果必须进行编码马拉松/末日冲刺,则可能会发生这种情况。

  2. 非常规 - 我不记得见过有如此深入的内联文档的项目。有时约定完全是愚蠢的,但我认为明智的做法是减少维护。

It might be better to just dump your SCM log into a changelog txt file then try to embed it into the source code.

Reasons why:

  1. Staleness - It won't do anyone any good if you stop adding change notes which is likely to happen if having to go on a coding marathon/sprint of doom.

  2. Unconventional - I can't remember seeing a project with that in depth of inline documentation. Sometimes conventions are flat out stupid, but I think the wisdom for this one is cutting down on maintenance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文