<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiratara</author_name>
  <author_url>https://blog.hatena.ne.jp/hiratara/</author_url>
  <blog_title>Pixel Pedals of Tomakomai</blog_title>
  <blog_url>https://hiratara.hatenadiary.jp/</blog_url>
  <categories>
    <anon>日記</anon>
  </categories>
  <description>オブジェクト指向がわかりにくい例をもう一つ。主語の選択は適切でも、主語の振る舞いや主語と主語の間の関係が極端に不自然な場合がある。 「彼」が「宝くじ」を引いて、「宝くじ」が「彼」の過去の当選履歴を調べる こう書くと、そんな設計しないよって思うはず。ところが、lot = he.getLot();、lot.getHistory(he);って書くと、ああ、やるかも、と思えるのがプログラミングの恐ろしさ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20050705%2F1120533522&quot; title=&quot;オブジェクト指向(2) - Pixel Pedals of Tomakomai&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>2005-07-05 12:18:42</published>
  <title>オブジェクト指向(2)</title>
  <type>rich</type>
  <url>https://hiratara.hatenadiary.jp/entry/20050705/1120533522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
