<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>雑記</anon>
  </categories>
  <description>データベースとかでもよく状態を表すカラムを用意することがあるとは思います。 その時に要件に併せてパターンを用意することが多いと思うんですが、その場合兎にも角にも「初期状態」つまり何もしていないというデフォルトを考えてほしいなと思いました。 デフォルトをつけるメリットとしては 「何も状態を変化させていない」というのがわかる 状態をリセットしたい時に明示的に書きやすくなる というのが挙げられます。 特に1番目が結構大事で、データが作られただけという状態が表現できるので、状態に合わせたセットアップなどのぬけもれ判定が容易になります。 具体例を書きたかったんですが力尽きたので今日書きたいのはここらへん…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2018%2F07%2F01%2F225853&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>2018-07-01 22:58:53</published>
  <title>状態には初期状態を必要であればつけようという話</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2018/07/01/225853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
