<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamata78</author_name>
  <author_url>https://blog.hatena.ne.jp/tamata78/</author_url>
  <blog_title>気軽に楽しくプログラムと遊ぶ</blog_title>
  <blog_url>https://tamata78.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>オブジェクト指向の原則の一つに 単一責任の原則があります。一つのクラスの果たす役割を一つだけにするという原則です。原則が守られているかの確認はそのクラスの変更理由が一つしかない事です。帳票出力クラスだったら出力内容の変更のみでしか 修正が入らない状態。DB登録内容の変更がこのクラスに影響している といった状態を見つけたら、役割の分離を行う必要がある。複数の責務が混在していると修正時のミスが発生しやすくなる。 使用するときに間違ったメソッドを使ってしまう。といった状況が生まれてきます。そういった状態を回避するためにクラスの責務を一つに限定し、固く濃くする。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2015%2F02%2F12%2F222455&quot; title=&quot;単一責任の原則 - 気軽に楽しくプログラムと遊ぶ&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>2015-02-12 22:24:55</published>
  <title>単一責任の原則</title>
  <type>rich</type>
  <url>https://tamata78.hatenablog.com/entry/2015/02/12/222455</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
