<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pmint</author_name>
  <author_url>https://blog.hatena.ne.jp/pmint/</author_url>
  <blog_title>遅い→起動時</blog_title>
  <blog_url>https://pmint.hatenadiary.org/</blog_url>
  <categories>
    <anon>Prog</anon>
  </categories>
  <description>d:id:pmint:20080227:p1の続き。 変数に限らず、シンボルのスコープは適切じゃないと。 広すぎても狭すぎてもいけない。 アプリの環境設定値をローカル変数でたらい回しされても困るし、直接呼び出せない手続き間のデータ交換のためにグローバル変数を使われても困る。 そもそもグローバル変数がいけないのは代入・更新がいたるところでされるから。 「使用できる範囲が広いから」ではない。 だって、ローカル変数でも「一時変数は悪」でしょ。 適用範囲が狭くても、一意ではない変数は可読性を下げる。 つまり、1つの変数を複数の型*1として使うことと、代入を繰り返すことが悪だということ。 代入を繰り返せ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpmint.hatenadiary.org%2Fentry%2F20080227%2Fp2&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>2008-02-27 00:00:00</published>
  <title>グローバル変数</title>
  <type>rich</type>
  <url>https://pmint.hatenadiary.org/entry/20080227/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
