<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unyaa</author_name>
  <author_url>https://blog.hatena.ne.jp/unyaa/</author_url>
  <blog_title>unyaa’s diary</blog_title>
  <blog_url>https://unyaa.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>デザインパターンにはたくさんの先人の知恵が詰まっています。 stateパターンもそのうちの一つ。 私が思うメリット stateパターンのメリットは状態に関する分岐を一箇所にまとめることができる点だと考えています。 stateパターンを使用するためにすること １振る舞いの整理 まずどのような振る舞いがあるか整理します。 実際の振る舞いは思っていたとおりの数だったでしょうか？ ここで言うところの振る舞いとは、人間の行動で例えると歩くとか走るとかになります。 ２状態の整理 次は状態の整理をします。 状態は様々な要素の組み合わせによって決定されることになります。 表などに書き出し状態に名前をつけます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funyaa.hatenadiary.jp%2Fentry%2F2017%2F06%2F28%2F181458&quot; title=&quot;デザインパターンのstateパターンへの取り組み方 - unyaa’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-28 18:14:58</published>
  <title>デザインパターンのstateパターンへの取り組み方</title>
  <type>rich</type>
  <url>https://unyaa.hatenadiary.jp/entry/2017/06/28/181458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
