<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iad_otomamay</author_name>
  <author_url>https://blog.hatena.ne.jp/iad_otomamay/</author_url>
  <blog_title>レベルエンター山本大のブログ</blog_title>
  <blog_url>https://daiyamamoto.hatenablog.com/</blog_url>
  <categories>
    <anon>意見</anon>
  </categories>
  <description>■DIの説明で「生成処理の一元管理のメリット」を言うなら「一時的なクラスの切替のシナリオ」を使うべき DIのメリットを説明するときの話。 DIで管理することで「具象クラスに仕様変更があったときに切替が容易」といいますが、Eclipseリファクタリング全盛の時代に大きなメリットとは感じられないでしょう。説明するなら「一時的にクラスを取り替える必要がある場合」というシナリオの方がよいでしょう。 テスト時に一時的にクラスを取り替えたい場合に、いちいち生成部分をコメントアウトして変更し、テスト後に戻すような作業の必要がなくなります。 ■生成処理をフレームワークに委譲する理由 生成処理をフレームワークに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20070326%2Fp3&quot; title=&quot;DI解説のなかで、DIのメリット説明方法 - レベルエンター山本大のブログ&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>2007-03-26 00:00:02</published>
  <title>DI解説のなかで、DIのメリット説明方法</title>
  <type>rich</type>
  <url>https://daiyamamoto.hatenablog.com/entry/20070326/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
