{"id":17341,"date":"2022-05-21T18:27:30","date_gmt":"2022-05-21T09:27:30","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=17341"},"modified":"2023-05-28T08:08:09","modified_gmt":"2023-05-27T23:08:09","slug":"%e3%80%90%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%8c%87%e5%90%91%e3%80%91%e3%80%8c%e3%82%a4%e3%83%b3%e3%82%bf%e3%83%bc%e3%83%95%e3%82%a7%e3%83%bc%e3%82%b9%e5%88%86%e9%9b%a2%e3%81%ae","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=17341","title":{"rendered":"\u3010\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3011\u300c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5206\u96e2\u306e\u539f\u5247\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5206\u96e2\u306e\u539f\u5247(Interface Segregation Principle)\u3068\u306f\uff1f<\/h2>\n<p>SOLID\u539f\u5247\u306eI\u306b\u3042\u305f\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u5229\u7528\u3057\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u3078\u306e\u4f9d\u5b58\u3092\u5f37\u5236\u3057\u3066\u306f\u306a\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u308b\u969b\u306e\u539f\u5247<\/p>\n<ul>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u672c\u5f53\u306b\u5fc5\u8981\u3068\u3057\u3066\u3044\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u307f\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u898b\u3048\u308b\u3002<\/li>\n<li>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5229\u7528\u8005\u306e\u7acb\u5834\u306b\u7acb\u3063\u3066\u6700\u5c0f\u9650\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3002<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u4f7f\u7528\u3057\u306a\u3044\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u5b9f\u88c5\u3092\u5f37\u5236\u3055\u308c\u308b\u3079\u304d\u3067\u306f\u306a\u3044\u3002<\/li>\n<li>\u4e00\u90e8\u672a\u5b9f\u88c5\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308b\u5834\u5408\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5206\u3051\u308b\u3053\u3068\u3092\u691c\u8a0e\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30c0\u30e1\u306a\u4f8b<\/h2>\n<p>\u8907\u5408\u6a5f\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306bprint\u3001fax\u3001scan\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3092\u7d99\u627f\u3057\u3066\u4f7f\u3046\u5177\u8c61\u30af\u30e9\u30b9\u306f\u5fc5\u305a\u3057\u3082\u5168\u3066\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u5370\u5237\u6a5f\u80fd\u3057\u304b\u306a\u3044\u8907\u5408\u6a5f\u3082\u3042\u3063\u305f\u308a\u3059\u308b\u3088\u3046\u306b\u3067\u3059\u3002\uff09<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-17345\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2022\/05\/-2022-05-21-19.13.23-e1653128059735.png\" alt=\"\" width=\"300\" height=\"288\" \/><\/p>\n<p>\u307e\u305f\u3001\u4eca\u5f8c\u65b0\u3057\u304f\u8907\u5408\u6a5f\u306b\u300c\u30b7\u30e5\u30ec\u30c3\u30c0\u30fc\u6a5f\u80fd\u300d\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3068\u3057\u305f\u3089\u5168\u3066\u306e\u8907\u5408\u6a5f\u306b\u305d\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h2>\u826f\u3044\u4f8b<\/h2>\n<p>\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u4f7f\u3046\u5358\u4f4d\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u5206\u96e2\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u300d\u3068\u3044\u3046\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-17349\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2022\/05\/-2022-05-21-19.31.49-e1653129193881.png\" alt=\"\" width=\"500\" height=\"327\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u3042\u308c\u3070\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u6570\u304c\u5897\u3048\u308b\u306e\u3067\u30bd\u30fc\u30b9\u306e\u5b9f\u88c5\u91cf\u304c\u591a\u5c11\u5897\u3048\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u4ed5\u69d8\u5909\u66f4\u306b\u5f37\u3044\u3067\u3059\u3057\u3001\u521d\u3081\u3066\u53c2\u753b\u3059\u308b\u65b9\u3067\u3082\u305d\u306e\u90e8\u5206\u3060\u3051\u3092\u7406\u89e3\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u7406\u89e3\u3057\u3084\u3059\u3044\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u3082\u3061\u308d\u3093\u3001\u5168\u3066\u306e\u5834\u5408\u3067\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5206\u3051\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u304f\u4e3b\u306bSOLID\u306e\u57fa\u672c\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067\u3042\u308b<span style=\"color: #ff0000;\"><strong>\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u30b3\u30fc\u30c9<\/strong><\/span>\u304c\u4e3b\u306a\u7528\u9014\u306b\u306f\u306a\u3063\u3066\u304f\u308b\u306e\u3067\u305d\u3053\u306f\u610f\u8b58\u3057\u307e\u3057\u3087\u3046\u3002\uff09<\/p>\n<h2>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u304a\u3044\u3066<\/h2>\n<p>\u6628\u4eca\u3067\u3042\u308c\u3070Vue\u3084React\u306a\u3069\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u306fTypeScript\u3092\u4f7f\u3046\u3053\u3068\u3082\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30d5\u30ed\u30f3\u30c8\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5074\u306eprops\u306e\u5f15\u6570\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5b9a\u7fa9\u306b\u3082\u3053\u306e\u539f\u5247\u306f\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002(\u4f7f\u308f\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u6392\u9664\u3057\u3088\u3046\u3068\u3044\u3046\u3060\u3051\u3067\u306f\u306a\u3044\u3002\uff09<\/p>\n<p>props\u306einterface\u3092\u8907\u6570\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u6c4e\u7528\u5316\u3055\u305b\u3059\u304e\u3066\u3044\u308b\u3068\u300c\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u306f\u3053\u306eprops\u306f\u672c\u5f53\u306b\u4f7f\u3063\u3066\u3044\u308b\u306e\u304b\uff1f\u300d\u306a\u3069\u3068\u7591\u554f\u3092\u611f\u3058\u306a\u304c\u3089\u958b\u767a\u3092\u9032\u3081\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u81ea\u7136\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5206\u96e2\u306e\u539f\u5247\u3092\u610f\u8b58\u3057\u3066\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u91cd\u8907\u306f\u3067\u304d\u308b\u3060\u3051\u6392\u9664\u3059\u308b\u3068\u3044\u3046\u8003\u3048\u65b9\u306b\u3082\u4e00\u90e8\u53cd\u3059\u308b\u6982\u5ff5\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u305d\u306e\u8fba\u3068\u306e\u5171\u5b58\u306a\u3069\u3082\u7d4c\u9a13\u3092\u7a4d\u3093\u3067\u5224\u65ad\u30b9\u30ad\u30eb\u3092\u9ad8\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5206\u96e2\u306e\u539f\u5247(Interface Segregation Principle)\u3068\u306f\uff1f SOLID\u539f\u5247\u306eI\u306b\u3042\u305f\u308b\u3082\u306e\u3067\u3059\u3002 \u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u5229\u7528\u3057\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u3078\u306e\u4f9d\u5b58\u3092\u5f37\u5236\u3057\u3066\u306f\u306a\u3089\u306a\u3044\u300d\u3068 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[29],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/17341"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17341"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/17341\/revisions"}],"predecessor-version":[{"id":20702,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/17341\/revisions\/20702"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17341"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}