<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Singleton on Debimate</title><link>https://debimate.jp/tags/singleton/</link><description>Recent content in Singleton on Debimate</description><image><title>Debimate</title><url>https://debimate.jp/images/default-ogp.jpg</url><link>https://debimate.jp/images/default-ogp.jpg</link></image><generator>Hugo -- 0.161.1</generator><language>ja-jp</language><lastBuildDate>Sun, 26 Apr 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://debimate.jp/tags/singleton/index.xml" rel="self" type="application/rss+xml"/><item><title>【Singeltonパターン】考え方は単純だが、使いどころが大切なデザインパターン【コード例はRubyとJava】</title><link>https://debimate.jp/post/ja/2020-04-26-singelton%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E8%80%83%E3%81%88%E6%96%B9%E3%81%AF%E5%8D%98%E7%B4%94%E3%81%A0%E3%81%8C%E4%BD%BF%E3%81%84%E3%81%A9%E3%81%93%E3%82%8D%E3%81%8C/</link><pubDate>Sun, 26 Apr 2020 00:00:00 +0000</pubDate><guid>https://debimate.jp/post/ja/2020-04-26-singelton%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3%E8%80%83%E3%81%88%E6%96%B9%E3%81%AF%E5%8D%98%E7%B4%94%E3%81%A0%E3%81%8C%E4%BD%BF%E3%81%84%E3%81%A9%E3%81%93%E3%82%8D%E3%81%8C/</guid><description>&lt;h3 id="前書きsingletonパターンは奥が深い"&gt;前書き：Singletonパターンは奥が深い&lt;/h3&gt;
&lt;p&gt;Singletonパターンは、GoF（Gang of Four）デザインパターンの一つであり、あるクラスのインスタンスが一つしかない状態を保証する方法です。「インスタンスが一つしか無い」という前提を生み出す事で、複数のインスタンスを用いる事によるバグの発生リスクを無くせます（正しく実装できていれば）。&lt;/p&gt;</description></item></channel></rss>