<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuji_w6e</author_name>
  <author_url>https://blog.hatena.ne.jp/shuji_w6e/</author_url>
  <blog_title>やさしいデスマーチ</blog_title>
  <blog_url>https://shuji-w6e.hatenadiary.org/</blog_url>
  <categories>
    <anon>きのこ97</anon>
    <anon>ソフトウェア開発</anon>
    <anon>Planet</anon>
  </categories>
  <description>「プログラマが知るべき97のこと」の34個目のエピソードは、APIの設計におけるユニットテストに関する話です。API（Application Programming Interface）は文字通りにプログラム（コード）間の境界を定めます。あるフィーチャを実現するプログラムを書くことは難しいケースも簡単なケースもあります。しかし、そのフィーチャを外部に適切に公開すること、すなわちAPIを設計する事は常に難しいものです。 例えば、「カンマ区切りの文字列を分割し、整数として合計を求める」という機能を持つプログラムのAPIを考えてみます。この機能を実現するコードは簡単でしょう。ですが、この機能を満たす…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuji-w6e.hatenadiary.org%2Fentry%2F20110123%2F1295744223&quot; title=&quot; 34-API設計の黄金律 - やさしいデスマーチ&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>https://images-fe.ssl-images-amazon.com/images/I/511RPej0BNL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-23 09:57:03</published>
  <title> 34-API設計の黄金律</title>
  <type>rich</type>
  <url>https://shuji-w6e.hatenadiary.org/entry/20110123/1295744223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
