{"id":2429,"date":"2024-09-24T21:07:19","date_gmt":"2024-09-24T12:07:19","guid":{"rendered":"https:\/\/y42u.net\/tec001\/?p=2429"},"modified":"2024-09-24T21:07:54","modified_gmt":"2024-09-24T12:07:54","slug":"github_copilot","status":"publish","type":"post","link":"https:\/\/y42u.net\/tec001\/2024\/09\/24\/github_copilot\/","title":{"rendered":"GitHub Copilot\u3092\u4f7f\u3063\u3066\u307f\u305f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u751f\u6210AI\u30d6\u30fc\u30e0\u306a\u306e\u3067\u3001\u30bd\u30d5\u30c8\u958b\u767a\u306b\u3069\u308c\u3060\u3051\u6709\u52b9\u304b\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f\u3002\u6d41\u884c\u306b\u306f\u4e57\u308b\u65b9\u306a\u306e\u3067\u3002\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"476\" height=\"460\" src=\"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/09\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-09-24-21.05.33.png?resize=476%2C460&#038;ssl=1\" alt=\"\" class=\"wp-image-2430\" srcset=\"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/09\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-09-24-21.05.33.png?w=476&amp;ssl=1 476w, https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/09\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-09-24-21.05.33.png?resize=300%2C290&amp;ssl=1 300w, https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/09\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-09-24-21.05.33.png?resize=40%2C40&amp;ssl=1 40w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">1)\u74b0\u5883\u8a2d\u5b9a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u624b\u6301\u3061\u306e\u74b0\u5883\u3067\u306fVSCode\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u7c21\u5358\u305d\u3046\u306a\u306e\u3067VSCode\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u74b0\u5883\u8a2d\u5b9a\u65b9\u6cd5\u306a\u3069Net\u306b\u6ca2\u5c71\u6709\u308a\u307e\u3059\u306e\u3067\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5927\u4f53\u306f\u4ee5\u4e0b\u306e\u30d5\u30ed\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GitHub \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>GitHub copilot\u5951\u7d04\u3059\u308b<br>\u500b\u4eba\u5951\u7d04\u3067\uff11\uff10\u30c9\u30eb\/\u6708<\/li>\n\n\n\n<li>VSCode \u3078\u306e GitHub Copilot \u5c0e\u5165<br>GitHub Copilot \u7528\u306e Extension \uff08\u62e1\u5f35\u6a5f\u80fd\uff09\u3092 VSCode \u306b\u8ffd\u52a0\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u5951\u7d04\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u306e\u30d5\u30ed\u30fc\u3067\u5927\u4f53\u4f7f\u3048\u308b\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(\u53c2\u8003URL)\u00a0<a href=\"https:\/\/docs.github.com\/ja\/copilot\/using-github-copilot\/getting-started-with-github-copilot\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub Copilot \u306e\u6982\u8981 (\u516c\u5f0f)<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2)\u65e9\u901f\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GeoDiveExa\u3092Xamarin\u304b\u3089NetMAUI\u306b\u79fb\u690d\u4e2d\u3067\u3001VSCode\u3067\u306e\u958b\u767a\u304c\u3067\u304d\u308b\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u65e9\u901f\u4f7f\u3063\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2-1)\u30af\u30e9\u30b9\u8aac\u660e\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GeoDiveExa\u306eMapViewClass\u306e\u76f4\u524d\u3067\u300c<strong>\/\/\/ &lt;summary><\/strong>\u300d\u3068\u5165\u308c\u308b\u3068\u6b21\u306e\u69d8\u306a\u7c21\u5358\u306a\u8aac\u660e\u304c\u51fa\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \/\/\/ &lt;summary>\n    \/\/\/ MapViewModel\u306f\u3001\u5730\u56f3\u306e\u8868\u793a\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3067\u3059\u3002\n    \/\/\/ &lt;\/summary><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u306f\u307e\u3042\u307e\u3042\u3067\u3059\u304c\u3001MapViewClass\u306e\u4e0a\u3067\u300c\u53f3\u30af\u30ea\u30c3\u30af\u300d\u300ccopilot->\u8aac\u660e\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u69d8\u306a\u8aac\u660e\u304c\u5ef6\u3005\u3068\u7d9a\u304d\u307e\u3059\uff1d\u9a5a\u304d\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\uff1c<strong>copilot->\u8aac\u660e\u306e\u629c\u7c8b<\/strong>>\n\n\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001<strong>MapViewModel<\/strong>\u3068\u3044\u3046\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3067\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306f\u3001\u5730\u56f3\u306e\u8868\u793a\u3084\u64cd\u4f5c\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306eViewModel\u3067\u3042\u308a\u3001MVVM\u30d1\u30bf\u30fc\u30f3\u306b\u5f93\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002ObservableObject\u3092\u7d99\u627f\u3057\u3066\u304a\u308a\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u66f4\u3092\u901a\u77e5\u3059\u308b\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\n\n<strong>\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30d5\u30a3\u30fc\u30eb\u30c9<\/strong>\n<strong>Title<\/strong>: \u5730\u56f3\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u4fdd\u6301\u3059\u308b\u6587\u5b57\u5217\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\n<strong>_addNewPin\u3068AddNewPin<\/strong>: \u65b0\u3057\u3044\u30d4\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u305d\u306e\u30d0\u30c3\u30af\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u66f4\u3055\u308c\u308b\u3068OnPropertyChanged\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\n<strong>_replaceOldPin\u3068ReplaceOldPin<\/strong>: \u65e2\u5b58\u306e\u30d4\u30f3\u3092\u7f6e\u304d\u63db\u3048\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u305d\u306e\u30d0\u30c3\u30af\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002\u3053\u3061\u3089\u3082\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u66f4\u3055\u308c\u308b\u3068OnPropertyChanged\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\n\n<strong>\u30bf\u30fc\u30b2\u30c3\u30c8\u95a2\u9023\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\n<strong>_targetPicker<\/strong>: Picker\u306e\u9078\u629e\u7d50\u679c\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002\n<strong>GpsLabel, GpsBackColor, GpsLabelVisible<\/strong>: GPS\u95a2\u9023\u306e\u30e9\u30d9\u30eb\u3084\u80cc\u666f\u8272\u3001\u8868\u793a\u72b6\u614b\u3092\u7ba1\u7406\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\n<strong>TargetPickerText, TargetSelected, TargetPickerVisible, TargetButtonVisible<\/strong>: \u30bf\u30fc\u30b2\u30c3\u30c8Picker\u306e\u30c6\u30ad\u30b9\u30c8\u3084\u9078\u629e\u72b6\u614b\u3001\u8868\u793a\u72b6\u614b\u3092\u7ba1\u7406\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\n\n...<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2-2)\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uff11\uff19\u7968\u7cfb\u3067\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b\u95a2\u6570<strong>calcDistance19M<\/strong>\u4e0a\u3067\u300c\u53f3\u30af\u30ea\u30c3\u30af\u300d\u300ccopilot->\u30c6\u30b9\u30c8\u3092\u751f\u6210\u3059\u308b\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u3067\u304d\u307e\u3059\u3002\u4e00\u77ac\u3067\u51fa\u6765\u307e\u3059\uff1d\u9a5a\u304d\u3067\u3001\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public void TestCalcDistance19M_PositiveCoordinates()\n{\n    \/\/ Arrange\n    double oldLatM = 1000.0;\n    double oldLonM = 2000.0;\n    double newLatM = 3000.0;\n    double newLonM = 4000.0;\n\n    \/\/ Act\n    var (latKm, lonKm, distKm) = MapUtilClass.calcDistance19M(oldLatM, oldLonM, newLatM, newLonM);\n\n    \/\/ Assert\n    Assert.Equal(2.0, latKm);\n    Assert.Equal(2.0, lonKm);\n    Assert.Equal(Math.Sqrt(8.0), distKm);\n}\n\n&#91;Fact]\npublic void TestCalcDistance19M_NegativeCoordinates()\n{\n    \/\/ Arrange\n    double oldLatM = -1000.0;\n    double oldLonM = -2000.0;\n    double newLatM = -3000.0;\n    double newLonM = -4000.0;\n\n    \/\/ Act\n    var (latKm, lonKm, distKm) = MapUtilClass.calcDistance19M(oldLatM, oldLonM, newLatM, newLonM);\n\n    \/\/ Assert\n    Assert.Equal(-2.0, latKm);\n    Assert.Equal(-2.0, lonKm);\n    Assert.Equal(Math.Sqrt(8.0), distKm);\n}\n\n&#91;Fact]\npublic void TestCalcDistance19M_MixedCoordinates()\n{\n    \/\/ Arrange\n    double oldLatM = 1000.0;\n    double oldLonM = -2000.0;\n    double newLatM = -3000.0;\n    double newLonM = 4000.0;\n\n    \/\/ Act\n    var (latKm, lonKm, distKm) = MapUtilClass.calcDistance19M(oldLatM, oldLonM, newLatM, newLonM);\n\n    \/\/ Assert\n    Assert.Equal(-4.0, latKm);\n    Assert.Equal(6.0, lonKm);\n    Assert.Equal(Math.Sqrt(52.0), distKm);\n}\n\n&#91;Fact]\npublic void TestCalcDistance19M_ZeroCoordinates()\n{\n    \/\/ Arrange\n    double oldLatM = 0.0;\n    double oldLonM = 0.0;\n    double newLatM = 0.0;\n    double newLonM = 0.0;\n\n    \/\/ Act\n    var (latKm, lonKm, distKm) = MapUtilClass.calcDistance19M(oldLatM, oldLonM, newLatM, newLonM);\n\n    \/\/ Assert\n    Assert.Equal(0.0, latKm);\n    Assert.Equal(0.0, lonKm);\n    Assert.Equal(0.0, distKm);\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3)\u611f\u60f3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3061\u3087\u3063\u3068\u4f7f\u3063\u3066\u307f\u305f\u3060\u3051\u3067\u3001\u4fbf\u5229\u306a\u306e\u304c\u5206\u304b\u3063\u305f\u3002\u307e\u3060\u307e\u3060\u6a5f\u80fd\u306f\u6ca2\u5c71\u6709\u308b\u306e\u3067\u5f90\u3005\u306b\u899a\u3048\u3066\u884c\u304d\u307e\u3059\u304c\u3001\u6708\uff11\uff10\u30c9\u30eb\u306e\u8cbb\u7528\u306f\u30bd\u30d5\u30c8\u958b\u767a\u8005\u306b\u306f\u5fc5\u8981\u306a\u7d4c\u8cbb\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fbf\u5229\u306a\u4e16\u306e\u4e2d\u3067\u3059\u304c\u3001\u82e5\u3044\u4eba\u304c\u6700\u521d\u304b\u3089\u3053\u306e\u69d8\u306atool\u3092\u4f7f\u3063\u305f\u3089\u672c\u5f53\u306e\u601d\u8003\u529b\uff08\uff1f\uff09\u304c\u4ed8\u304f\u306e\u304b\u306a\u3002\u3002\u3002\u3068\u3001\u82e5\u5e72\u5fc3\u914d\u306b\u306f\u306a\u308a\u307e\u3059\u304c\u3001\u5e74\u5bc4\u308a\u306b\u306f\u512a\u3057\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u751f\u6210AI\u30d6\u30fc\u30e0\u306a\u306e\u3067\u3001\u30bd\u30d5\u30c8\u958b\u767a\u306b\u3069\u308c\u3060\u3051\u6709\u52b9\u304b\u3092\u4f53\u9a13\u3057\u3066\u307f\u305f\u3002\u6d41\u884c\u306b\u306f\u4e57\u308b\u65b9\u306a\u306e\u3067\u3002\u3002 1)\u74b0\u5883\u8a2d\u5b9a \u624b\u6301\u3061\u306e\u74b0\u5883\u3067\u306fVSCode\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u7c21\u5358\u305d\u3046\u306a\u306e\u3067VSCode\u3092\u4f7f\u7528\u3059\u308b\u4e8b\u306b\u3057\u307e\u3059\u3002 \u74b0\u5883\u8a2d\u5b9a\u65b9\u6cd5\u306a\u3069Net\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2430,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,55],"tags":[79,158],"class_list":["post-2429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-period","tag-copilot","tag-github"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/09\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-09-24-21.05.33.png?fit=476%2C460&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/comments?post=2429"}],"version-history":[{"count":2,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2429\/revisions"}],"predecessor-version":[{"id":2445,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2429\/revisions\/2445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/media\/2430"}],"wp:attachment":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/media?parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/categories?post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/tags?post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}