<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uupaa</author_name>
  <author_url>https://blog.hatena.ne.jp/uupaa/</author_url>
  <blog_title>latest log</blog_title>
  <blog_url>https://uupaa.hatenadiary.org/</blog_url>
  <categories>
    <anon>js</anon>
    <anon>ネタ</anon>
  </categories>
  <description>140文字を超えちゃうので、こちらで。JavaScriptなコードを書いてると「このへんの処理はどこにも依存してないから、特定のライブラリの一部ではなく、単体でロードしても使えるような部品としてまとめられたらなぁ」とか「でも、ライブラリの一部として利用する場合にグローバルネームスペースを汚染するのはダメだよなぁ」と、考えたことはありませんか?window.uu 以下をライブラリのネームスペースとして利用している uupaa.js では、このような工夫をしています。 // === uu.base64 / window.base64 === (function(namespace) { names…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuupaa.hatenadiary.org%2Fentry%2F20100524%2F1274684311&quot; title=&quot; ライブラリの一部でありながら単体利用も可能にする工夫 - latest log&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>2010-05-24 15:58:31</published>
  <title> ライブラリの一部でありながら単体利用も可能にする工夫</title>
  <type>rich</type>
  <url>https://uupaa.hatenadiary.org/entry/20100524/1274684311</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
