<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>susisu</author_name>
  <author_url>https://blog.hatena.ne.jp/susisu/</author_url>
  <blog_title>Object.create(null)</blog_title>
  <blog_url>https://susisu.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>What? Null Object パターンとは プログラムを書いていると, 何もしない・何もないということを表したいシチュエーションがしばしば登場します. ナイーブな実装ではこのような場合に null のような特殊な値を使いますが, 多くの言語では null に対してはメソッドの定義や呼び出しができないため, 以下のようなデメリットがあります1. メソッドを呼び出すたびに都度 null かどうかの検査が必要になり, コードが冗長になる null の場合にどうするかという処理を都度記述することになり, コードの凝集度が下がる null かどうかの検査を忘れてランタイムエラーが発生する Null…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2023%2F09%2F10%2F234229&quot; title=&quot;Null Object is a ... - Object.create(null)&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>2023-09-10 23:42:29</published>
  <title>Null Object is a ...</title>
  <type>rich</type>
  <url>https://susisu.hatenablog.com/entry/2023/09/10/234229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
