{"id":5219,"date":"2026-02-22T18:41:31","date_gmt":"2026-02-22T09:41:31","guid":{"rendered":"https:\/\/blog2.dypg.jp\/wp\/?p=5219"},"modified":"2026-02-22T18:41:31","modified_gmt":"2026-02-22T09:41:31","slug":"lets-learn-to-code-%e3%80%90%e5%87%ba%e5%b1%8b%e6%95%b7%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e6%95%99%e5%ae%a4%e3%80%91%ef%bc%92%ef%bc%90%ef%bc%92%ef%bc%96%e5%b9%b4-8","status":"publish","type":"post","link":"https:\/\/blog2.dypg.jp\/wp\/?p=5219","title":{"rendered":"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff10\uff12\u6708\uff12\uff12\u65e5\u3010\u3064\u304b\u3057\u3093\u6388\u696d\u5831\u544a\u3011"},"content":{"rendered":"<p>\u6570\u5f0f\u3092\u4f7f\u3046\u3053\u3068\u3067\u30b3\u30fc\u30c9\u304c\u6e1b\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\uff13\u304b\u6240\u306e\u304a\u96db\u69d8\u51fa\u73fe\u5ea7\u6a19\u306e\u8a08\u7b97\u3092\u8a08\u7b97\u5f0f\u3068\u4e00\u3064\u306e\u5909\u6570\u3067\u8868\u73fe\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001<br \/>\n\u30b3\u30fc\u30c9\u6570\u304c\u6e1b\u308a\u3059\u3063\u304d\u308a\u3057\u305f\uff11\u884c\u306e\u30b3\u30fc\u30c9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u304c\u843d\u3061\u308b\u306e\u3067\u3001\u5909\u66f4\u3057\u305f\u3068\u304d\u306b\u65b0\u305f\u306a\u6570\u5f0f\u3092<br \/>\n\u8003\u3048\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>By using a mathematical formula, you can reduce the amount of code.<br \/>\nThe three spawn positions of Ohina-sama can be calculated using a single formula and one cariable, which allows the logic to be written in a single, clean line of code.<br \/>\nHowever, this approach may reduce maintainablility. If changes are required later, a new formula must be designed and carefully reconsidered.<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b21\u56de<\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u585a\u53e3\u3055\u3093\u3055\u3093\u30bf\u30a6\u30f3\u6559\u5ba4\u3000\uff10\uff13<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u6708\uff10\uff11<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.dypg.jp\/\">\u51fa\u5c4b\u6577\u6559\u5ba4\u3000\uff10<\/a>\uff13<a href=\"https:\/\/www.dypg.jp\/\">\u6708\uff10\uff17<\/a><a href=\"https:\/\/www.dypg.jp\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukasin\/4687348\/\">\u3064\u304b\u3057\u3093\u6559\u5ba4\u3000\uff10\uff13\u6708\uff12\uff12\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/02\/IMG_7784.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5220\" src=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/02\/IMG_7784.jpg\" alt=\"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff10\uff12\u6708\uff12\uff12\u65e5\u3010\u3064\u304b\u3057\u3093\u6388\u696d\u5831\u544a\u3011\" width=\"400\" height=\"300\" srcset=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/02\/IMG_7784.jpg 400w, https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/02\/IMG_7784-300x225.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n ","protected":false},"excerpt":{"rendered":"<p>\u6570\u5f0f\u3092\u4f7f\u3046\u3053\u3068\u3067\u30b3\u30fc\u30c9\u304c\u6e1b\u3089\u305b\u308b\u3053\u3068<\/p>\n","protected":false},"author":1,"featured_media":5220,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,3,16],"tags":[],"class_list":["post-5219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-73","category-3","category-16"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5219"}],"version-history":[{"count":2,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5219\/revisions"}],"predecessor-version":[{"id":5230,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5219\/revisions\/5230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/media\/5220"}],"wp:attachment":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}