gpt4 book ai didi

cohesion - "coherence"的良好定义

转载 作者:行者123 更新时间:2023-12-04 22:02:32 25 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

4年前关闭。




Improve this question




我试图告诉某人他的代码不是“连贯的”,因为它有多种用途。我认为我不能很好地解释它,所以我正在寻找一个很好的引用和/或定义。

最佳答案

我认为正确的术语是 cohesion .

In computer programming, cohesion is a measure of how strongly-related and focused the various responsibilities of a software module are. Cohesion is an ordinal type of measurement and is usually expressed as "high cohesion" or "low cohesion" when being discussed.

Modules with high cohesion tend to be preferable because high cohesion is associated with several desirable traits of software including robustness, reliability, reusability, and understandability whereas low cohesion is associated with undesirable traits such as being difficult to maintain, difficult to test, difficult to reuse, and even difficult to understand.

关于cohesion - "coherence"的良好定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/581058/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com