<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラム全般 / アルゴリズム</anon>
  </categories>
  <description>■ 変数 スコープは狭くする 以下のように、変数のスコープはできるだけ狭くするといい。 ブロック内のローカル変数 =&gt; メソッドのローカル変数 =&gt; private 変数 =&gt; protected変数 =&gt; public変数 メリット * 一度に注意しておくべき事項が減り、理解の助けになる =&gt; プログラムの変更時に間違いを犯す可能性も減少する 変数宣言は、最初に利用される場所の近くでする メリット * プログラムの理解し易くなる * バグを混入させる危険を狭めることができる * リファクタリング時にメソッドとして抽出することも楽に行える 変数名は、何を表すものかを説明する名前をつける * 変…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F29342942&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>2012-06-19 20:10:11</published>
  <title>【プログラム】良いプログラムを書くために... ～ コーディング編 ～</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/29342942</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
