{"id":4165,"date":"2022-08-21T19:30:38","date_gmt":"2022-08-21T11:30:38","guid":{"rendered":"https:\/\/www.chenqing.work\/?p=4165"},"modified":"2022-08-21T19:30:39","modified_gmt":"2022-08-21T11:30:39","slug":"%e8%af%bb-sa-the-hard-parts-%e4%b9%8b%e8%80%a6%e5%90%88","status":"publish","type":"post","link":"https:\/\/www.chenqing.work\/?p=4165","title":{"rendered":"\u8bfb | SA : The Hard Parts \u4e4b\u8026\u5408"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1176\" height=\"1024\" src=\"https:\/\/www.chenqing.work\/wp-content\/uploads\/2022\/08\/image-38.png\" alt=\"\" class=\"wp-image-4176\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\ud83c\udf57\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u8026\u5408<\/li><li><a href=\"https:\/\/www.chenqing.work\/?p=3753\">\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u4ee3\u7801\u590d\u7528<\/a><\/li><li><a href=\"https:\/\/www.chenqing.work\/?p=3894\">\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u6570\u636e\u6240\u6709\u6743<\/a><\/li><li><a href=\"https:\/\/www.chenqing.work\/?p=3968\">\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u6570\u636e\u8bbf\u95ee<\/a><\/li><li><a href=\"https:\/\/www.chenqing.work\/?p=4057\" data-type=\"URL\" data-id=\"https:\/\/www.chenqing.work\/?p=4057\">\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u4e8b\u52a1<\/a><\/li><li>\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u7ea6\u5b9a<\/li><\/ul>\n\n\n\n<p>\u8026\u5408\uff0c\u6307\u4e00\u7a0b\u5e8f\u4e2d\uff0c\u6a21\u5757\u53ca\u6a21\u5757\u4e4b\u95f4\u4fe1\u606f\u6216\u53c2\u6570\u4f9d\u8d56\u7684\u7a0b\u5ea6\u3002\u4e24\u4e2a\u90e8\u5206\u8026\u5408\uff0c\u5176\u8868\u73b0\u5c31\u662f\u5176\u4e2d\u4e00\u90e8\u5206\u7684\u53d8\u5316\u53ef\u80fd\u5f15\u53d1\u53e6\u4e00\u90e8\u5206\uff08\u4e3a\u4e86\u7ef4\u6301\u9002\u5f53\u7684\u529f\u80fd\uff09\u4e5f\u8ddf\u7740\u53d8\u5316\u3002<\/p>\n\n\n\n<p>\uff08\u6458\u81ea wiki\uff09\u5728\u9762\u5411\u8fc7\u7a0b\u7f16\u7a0b\u4e2d\uff0c\u5b58\u5728\u4ee5\u4e0b\u51e0\u79cd<a href=\"https:\/\/en.wikipedia.org\/wiki\/Coupling_(computer_programming)\" data-type=\"URL\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Coupling_(computer_programming)\">\u8026\u5408<\/a>\u7c7b\u578b<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Content coupling\uff0c\u5185\u5bb9\u8026\u5408\uff0c\u4e00\u4e2a\u6a21\u5757\u76f4\u63a5\u4f7f\u7528\u53e6\u4e00\u4e2a\u6a21\u5757\u5185\u90e8\u7684\u4ee3\u7801\uff0c\u8fdd\u80cc\u4e86\u4fe1\u606f\u9690\u85cf\u7684\u8f6f\u4ef6\u8bbe\u8ba1\u539f\u5219\u3002<\/li><li>Common coupling\uff0c\u5171\u4eab\u8026\u5408\uff0c\u591a\u4e2a\u6a21\u5757\u90fd\u4f1a\u8bbf\u95ee\u540c\u4e00\u4e2a\u5168\u5c40\u6570\u636e\u3002<\/li><li>External coupling\uff0c\u5916\u90e8\u8026\u5408\uff0c\u591a\u4e2a\u6a21\u5757\u5171\u4eab\u540c\u4e00\u4e2a\u5916\u90e8\u6570\u636e\u683c\u5f0f\u3001\u901a\u4fe1\u534f\u8bae\u3001\u8bbe\u5907\u63a5\u53e3\u3002<\/li><li>Control coupling\uff0c\u63a7\u5236\u8026\u5408\uff0c\u4e00\u4e2a\u6a21\u5757\u63a7\u5236\u53e6\u4e00\u4e2a\u6a21\u5757\u7684\u6267\u884c\u6d41\u7a0b\u3002<\/li><li>Stamp coupling (data-structured coupling)\uff0c\u7279\u5f81\u8026\u5408\/\u6807\u8bb0\u8026\u5408\uff0c\u4e5f\u79f0\u6570\u636e\u7ed3\u6784\u8026\u5408\uff0c\u591a\u4e2a\u6a21\u5757\u516c\u7528\u4e00\u4e2a\u7ec4\u5408\u6570\u636e\u7ed3\u6784\uff0c\u4f46\u6bcf\u4e2a\u6a21\u5757\u53ea\u7528\u4e86\u5176\u4e2d\u4e00\u90e8\u5206\u3002<\/li><li>Data coupling\uff0c\u6570\u636e\u8026\u5408\uff0c\u591a\u4e2a\u6a21\u5757\u901a\u8fc7\u53c2\u6570\u5171\u4eab\u6570\u636e\u3002<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.chenqing.work\/wp-content\/uploads\/2022\/08\/image-37.png\" alt=\"\" class=\"wp-image-4172\"\/><\/figure>\n\n\n\n<p>\u5728\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4e2d\uff0c\u8026\u5408\u7c7b\u578b\u6709<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Subclass coupling\uff0c\u5b50\u7c7b\u8026\u5408\uff0c\u5b50\u7c7b\u80fd\u94fe\u63a5\u5230\u7236\u7c7b\uff0c\u7236\u7c7b\u4e0d\u80fd\u94fe\u63a5\u5230\u5b50\u7c7b\u3002<\/li><li>Temporal coupling\uff0c\u65f6\u7a7a\u8026\u5408\uff0c\u4ec5\u4ec5\u56e0\u4e3a\u540c\u65f6\u53d1\u751f\uff0c\u4e24\u4e2a\u52a8\u4f5c\u5c31\u88ab\u653e\u5230\u4e00\u4e2a\u6a21\u5757\u4e2d\u3002<\/li><li><strong>Dynamic coupling<\/strong>\uff0c\u52a8\u6001\u8026\u5408\uff0c\u5404\u90e8\u5206\u5728\u8fd0\u884c\u65f6\u624d\u53d1\u751f\u7684\u8054\u7cfb\uff0c\u5982\u540c\u6b65\/\u5f02\u6b65\u901a\u4fe1\u3001\u52a8\u6001\u7ed1\u5b9a\u3002<\/li><li><strong>Static coupling<\/strong>\uff0c\u9759\u6001\u8026\u5408\uff0c\u901a\u8fc7\u7ea6\u5b9a\u6765\u5904\u7406\u7684\u9759\u6001\u4f9d\u8d56\uff0c\u5982\u64cd\u4f5c\u7cfb\u7edf\u3001\u6846\u67b6\u3001\u4f20\u9012\u4f9d\u8d56\u7ba1\u7406\u7684\u5e93\u3002<\/li><li>Semantic coupling\uff0c\u8bed\u4e49\u8026\u5408\uff0c\u5404\u90e8\u5206\u4f7f\u7528\u7684\u6982\u5ff5\u76f8\u4f3c\u6027\u3002<\/li><li>Logical coupling\uff0c\u903b\u8f91\u8026\u5408\/\u6f14\u5316\u8026\u5408\/\u53d8\u5316\u8026\u5408\uff0c\u4e24\u4e2a\u90e8\u5206\u7684\u53d8\u5316\u603b\u662f\u540c\u65f6\u53d1\u751f\u6216\u524d\u540e\u76f8\u7ee7\u3002<\/li><\/ul>\n\n\n\n<p>\u5728\u5fae\u670d\u52a1\u67b6\u6784\u7684\u8bed\u5883\u4e2d\uff0c\u9759\u6001\u8026\u5408\u7528\u4e8e\u5206\u6790\u64cd\u4f5c\u4f9d\u8d56\uff0c\u52a8\u6001\u8026\u5408\u7528\u4e8e\u5206\u6790\u901a\u4fe1\u4f9d\u8d56\u3002<\/p>\n\n\n\n<p>\u5982\u4f55\u5212\u5206\u6a21\u5757\u3001\u670d\u52a1\uff0c\u4ee5\u4f55\u79cd\u65b9\u5f0f\u901a\u4fe1\u3001\u4ee5\u4f55\u79cd\u65b9\u5f0f\u4ea4\u6362\u4fe1\u606f\u90fd\u5c5e\u4e8e\u5904\u7406\u9759\u6001\u4f9d\u8d56\u7684\u7ea6\u5b9a\u3002<\/p>\n\n\n\n<p>\u52a8\u6001\u4f9d\u8d56\u5219\u4e3b\u8981\u53d7\u4e09\u4e2a\u7ef4\u5ea6\u5f71\u54cd\uff1aCommunication\u3001Consistency\u3001Coordination\u3002<\/p>\n\n\n\n<p>\u672a\u5b8c\u5f85\u7eed&#8230;<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf57\u8bfb | Software Architecture\uff1aThe Hard Parts \u4e4b\u8026\u5408 \u8bfb |  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,2],"tags":[89],"class_list":["post-4165","post","type-post","status-publish","format-standard","hentry","category-code","category-2","tag-89"],"_links":{"self":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4165"}],"version-history":[{"count":20,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4165\/revisions"}],"predecessor-version":[{"id":4191,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/4165\/revisions\/4191"}],"wp:attachment":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}