<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on 遠瀬緑のホームページ</title>
    <link>https://midry3.github.io/posts/</link>
    <description>Recent content in Posts on 遠瀬緑のホームページ</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-jp</language>
    <copyright>© 2026 遠瀬緑(Midry)</copyright>
    <lastBuildDate>Wed, 01 Jul 2026 00:07:11 +0900</lastBuildDate><atom:link href="https://midry3.github.io/posts/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>3言語でシングルトンパターンを実装</title>
      <link>https://midry3.github.io/posts/1/</link>
      <pubDate>Wed, 01 Jul 2026 00:07:11 +0900</pubDate>
      
      <guid>https://midry3.github.io/posts/1/</guid>
      <description>&lt;h1 class=&#34;relative group&#34;&gt;シングルトンパターンとは
    &lt;div id=&#34;シングルトンパターンとは&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e3%82%b7%e3%83%b3%e3%82%b0%e3%83%ab%e3%83%88%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3%e3%81%a8%e3%81%af&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;
    
&lt;/h1&gt;
&lt;p&gt;インスタンスの存在を &lt;strong&gt;一つだけ&lt;/strong&gt; 許すような実装のことを &lt;strong&gt;シングルトンパターン&lt;/strong&gt; と言います。例えば「ゲームのセーブデータを管理するクラス」があるとします。このクラスのインスタンスを、それぞれ必要になった箇所で作っていたらどうなるでしょうか？&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
