<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zwfk</author_name>
  <author_url>https://blog.hatena.ne.jp/zwfk/</author_url>
  <blog_title>とめども日誌</blog_title>
  <blog_url>https://zwfk.hatenadiary.org/</blog_url>
  <categories>
    <anon>DP</anon>
  </categories>
  <description>CommandパターンとStrategyパターンは何が違うのか考えてみた。静的に見れば（クラス図で見れば）両方同じだけど、それぞれ目的が違う。 Commandパターンは「やること」が色々あるときに使う。 Strategyパターンは「やりかた」が色々あるときに使う。 こういう理解でよいでしょうか？（誰に聞いてる）【追記】さわださんからツッコミ。ありがとうございます。 Command パターンを使うのは要求をカプセル化したいとき。Strategy パターンはアルゴリズムをカプセル化したいとき。 「要求」（結城さんのデザパタ本だと「命令」）・「アルゴリズム」を言いかえようとした結果「やること」・「や…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzwfk.hatenadiary.org%2Fentry%2F20040406%2F1081227098&quot; title=&quot;CommandとStrategy - とめども日誌&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>2004-04-06 13:51:38</published>
  <title>CommandとStrategy</title>
  <type>rich</type>
  <url>https://zwfk.hatenadiary.org/entry/20040406/1081227098</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
