<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kabakiyo</author_name>
  <author_url>https://blog.hatena.ne.jp/kabakiyo/</author_url>
  <blog_title>遅咲きのエンジニア</blog_title>
  <blog_url>https://kabakiyo.hatenadiary.org/</blog_url>
  <categories>
    <anon>勉強日誌</anon>
  </categories>
  <description>デザインパターン入門 Iteratorパターン デザインパターンの種類は全部で２３個。一ヶ月もあれば制覇できる。ただ、読むだけでは頭に入らないと思うので実際に書くようにする。 Iteratorパターンはループをまわす処理を実装に依存しないようにするパターン。つまり、どんな実装であろうと、その集合がなんであれ同じようにループをまわせるようにすること。 例えば次の要素が存在するかを判断するメソッドhas_next?と次の要素を取り出すnextメソッドの２つによって、どんな集合であろうと同じようにループをまわすことができるようになる。 サンプルソースをRubyで書いてみる。keyを持つkeyboar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkabakiyo.hatenadiary.org%2Fentry%2F20090420%2F1240235875&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>2009-04-20 22:57:55</published>
  <title>今日の勉強</title>
  <type>rich</type>
  <url>https://kabakiyo.hatenadiary.org/entry/20090420/1240235875</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
