<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yarb</author_name>
  <author_url>https://blog.hatena.ne.jp/yarb/</author_url>
  <blog_title>yarbの日記</blog_title>
  <blog_url>https://yarb.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>オイラープロジェクト17問目。1〜1000までの数字について、「345 -&gt; three hundred and forty-five」のように文字に開いたとき、使われているアルファベットの文字数の合計を求めよという問題。RSpecでやってみた。イテレーションが短いのが好きなので、最初は1桁だけで、1 -&gt; one、2 -&gt; two をやり、次に 11 -&gt; eleven という風に桁をあげていく感じでテストコードと本体を膨らましていったら、非常に見通しの悪いコードになった。 class Fixnum single_digit = %w(one two three four five six …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyarb.hatenadiary.org%2Fentry%2F20110811%2Fp1&quot; title=&quot;オイラープロジェクトをRSpecを使ったテスト駆動っぽく - yarbの日記&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>2011-08-11 00:00:02</published>
  <title>オイラープロジェクトをRSpecを使ったテスト駆動っぽく</title>
  <type>rich</type>
  <url>https://yarb.hatenadiary.org/entry/20110811/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
