<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yhayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/yhayashi/</author_url>
  <blog_title>Sobalipse日記</blog_title>
  <blog_url>https://yhayashi-2.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>Javaプログラミングで非情のルールを考えたことがある（自分も含めて誰も実践してくれなかったのだが）。それは、「オブジェクト型の変数にすべてfinalを付ける」というもの。このルールに従うと、 すべてのメンバ変数が、コンストラクタで必ず初期化され、値が変わらないことが保障される 一つのローカル変数が複数の意味で使われることが防止される という、良いプログラムの決まり事に沿うことができる。さらに、決定的な効果として、Javaの実行時エラーの95%を占める「NullPointer Exception」がなくなる。というのも、nullになり得る変数が存在しないのだから。C++では、クラスの代入オペレ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyhayashi-2.hatenadiary.org%2Fentry%2F20050831&quot; title=&quot;変数はすべてfinal - Sobalipse日記&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-08-31 00:00:00</published>
  <title>変数はすべてfinal</title>
  <type>rich</type>
  <url>https://yhayashi-2.hatenadiary.org/entry/20050831</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
