<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fromdusktildawn</author_name>
  <author_url>https://blog.hatena.ne.jp/fromdusktildawn/</author_url>
  <blog_title>分裂勘違い君劇場 by ふろむだ</blog_title>
  <blog_url>https://www.furomuda.com/</blog_url>
  <categories>
  </categories>
  <description>「変数のスコープは狭いほど良い」と妄信する 変数でもメソッド名でもクラス名でも言えることだが、単純に「スコープは狭いほどよい」という方針でプログラムすると、逆に保守性も可読性も悪いプログラムができあがることがけっこうある*1。 実際、「あちこちから頻繁にアクセスするようなオブジェクトやメソッド」は、スコープをぐっと広くしてしまった方が(場合によってはグローバル変数やグローバル関数にしてしまった方が)、いちいちパラメータ渡しのバケツリレーをせずに、オブジェクトや機能を使うことができ、プログラムの可読性も保守性もずっと向上することがけっこうある。 たとえば、プログラムのいろいろな箇所から比較的頻繁…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.furomuda.com%2Fentry%2F20081026%2Fp1&quot; title=&quot; 中途半端に優秀なプログラマが「正しいプログラミングテクニック」だと妄信しがちな３つポイント - 分裂勘違い君劇場 by ふろむだ&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>2008-10-26 00:00:00</published>
  <title> 中途半端に優秀なプログラマが「正しいプログラミングテクニック」だと妄信しがちな３つポイント</title>
  <type>rich</type>
  <url>https://www.furomuda.com/entry/20081026/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
