<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsuzuki670</author_name>
  <author_url>https://blog.hatena.ne.jp/tsuzuki670/</author_url>
  <blog_title>tamani</blog_title>
  <blog_url>https://tamani.hatenadiary.jp/</blog_url>
  <categories>
    <anon>オブジェクト指向</anon>
    <anon>Ruby</anon>
    <anon>SyncQiita</anon>
  </categories>
  <description>「ドットがつながったらあかんで」とかいうやつ、くらいの認識しかなかったが整理できたのでメモ。 結論としては、「ドットがつながったらあかんで」ではなく、「ドットがつながったときは不要な依存をつくっちゃう場合があるから、ほんとにそれでいいかよく考えなね」であると理解した。 飛び越えた依存 例えば以下のようなコードを考える。 （以下、barや@barはBarインスタンスであることを前提とし、bazについても同様。） class Foo def foo_method @bar.baz.baz_method end end あるいは、こんなコード。 class Foo def foo_method(ba…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamani.hatenadiary.jp%2Fentry%2F2020%2F04%2F25%2F000335&quot; title=&quot;デメテルの法則 - tamani&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>2020-04-25 00:03:35</published>
  <title>デメテルの法則</title>
  <type>rich</type>
  <url>https://tamani.hatenadiary.jp/entry/2020/04/25/000335</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
