注册并分享邀请链接,可获得视频播放与邀请奖励。

Uncle Bob Martin
@unclebobmartin
Software Craftsman
加入 October 2007
363 正在关注    265.8K 粉丝
Refactoring is the act of changing the structure of code to be more consumable. But consumable by whom? If the audience is humans, we re-factor to human standards. If the audience is agents, we re-factor to agent standards. Those standards are different. When agents are the audience, I tolerate slightly larger functions, and slightly more comments. This is because agents are more able to deal with larger functions (cyclomatic complexity less than or equal to six). Agents also use comments well. They actually read them. And they maintain them. These differences are not large, but they are real.
显示更多
0
92
909
85
转发到社区