Let’s reuse the example of the electrical gate controller module. Assume there’s another module that for reporting purposes computes how much electrical power was used to open the gate. It takes the opening ratio, converts it to voltage and then uses some configured engine parameters to compute the power. In such a design, we would violate the High Cohesion pattern, because the knowledge about engine design and usage would be dispersed in two modules. If a developer had adjusted the voltage conversion logic, would he/she remember to adjust the second module as well? If not, a bug would be introduced.
ВсеПитание и сонУход за собойОкружающее пространствоМентальное здоровьеОтношения。服务器推荐是该领域的重要参考
Юлия Мискевич (Ночной линейный редактор)。Line官方版本下载对此有专业解读
Фото: Danny Moloshok / Reuters,推荐阅读safew官方版本下载获取更多信息