<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tachikawa844</author_name>
  <author_url>https://blog.hatena.ne.jp/tachikawa844/</author_url>
  <blog_title>tachikawa844の日記</blog_title>
  <blog_url>https://tachikawa844.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>デザインパターン</anon>
  </categories>
  <description>結城浩さんの「Java言語で学ぶデザインパターン入門」を題材にpythonでデザインパターンを書いてみる。 今回の題材はAbstract Factoryパターン。名前の通り抽象的な工場で、抽象的な部品を組み合わせて抽象的な製品を作るらしい。 わかりにくいが、要は部品の具体的な実装は気にせずに部品を組み立てて製品としてまとめてしまうというものみたい。 具体的な実装はサブクラスで行う。 サンプルのプログラムは階層構造を持ったリンク集をHTMLファイルとして作るもの。 はじめに抽象的な工場、部品、製品を含む部分（factory.py)。 # -*- coding: utf-8 -*- class I…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftachikawa844.hatenadiary.org%2Fentry%2F20090110%2F1231561119&quot; title=&quot;Abstract Factoryパターン - tachikawa844の日記&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-01-10 13:18:39</published>
  <title>Abstract Factoryパターン</title>
  <type>rich</type>
  <url>https://tachikawa844.hatenadiary.org/entry/20090110/1231561119</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
