<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higayasuo</author_name>
  <author_url>https://blog.hatena.ne.jp/higayasuo/</author_url>
  <blog_title>ひがやすを技術ブログ</blog_title>
  <blog_url>https://higayasuo.hatenablog.com/</blog_url>
  <categories>
    <anon>ダイコン</anon>
  </categories>
  <description>従来のオブジェクト指向では、データと振る舞いを1つに してクラスにまとめます。 これがオブジェクト指向の最も重要なポイントとされてきた わけですが、業務アプリケーションに限っていうと 話が変わってきます。 例えば、手数料というデータがあったとします。 手数料を計算するという振る舞いは通常業務ごとにロジックが 異なるでしょう。 この振る舞いはいったいどこに置くべきでしょうか。 仮にデータといっしょにしたとしましょう。 業務が追加・変更されるたびにクラスを修正するということは、 ありえないので、業務ごとに派生クラスを作って手数料を計算する メソッドを実装することになるでしょう。 新たな業務Cができ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigayasuo.hatenablog.com%2Fentry%2F20040726%2F1090802133&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>2004-07-26 09:35:33</published>
  <title>ダイコンがそこにある理由</title>
  <type>rich</type>
  <url>https://higayasuo.hatenablog.com/entry/20040726/1090802133</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
