<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t-miyahira</author_name>
  <author_url>https://blog.hatena.ne.jp/t-miyahira/</author_url>
  <blog_title>コドモン Product Team Blog</blog_title>
  <blog_url>https://tech.codmon.com/</blog_url>
  <categories>
    <anon>クラス設計</anon>
    <anon>デザインパターン</anon>
  </categories>
  <description>こちらの記事は「コドモン Advent Calendar 2023」の 17日目の記事です🎅 qiita.com こんにちは！プロダクト開発部の宮平です。 コントローラークラスに責務を持たせすぎて、コントローラークラスが肥大化することはありませんか？ 今回はデザインパターンの「Decorator」パターン（以下デコレータ）で肥大化を抑え、コントローラークラスで行っていた処理を凝集度高く分割し、再利用性を高める方法についてご紹介しようと思います。 ※留意事項 通常、コントローラをデコレートする方法として、フレームワークが提供するMiddleware（ミドルウェア）と呼ばれる一般的な概念1があり、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.codmon.com%2Fentry%2F2023%2F12%2F17%2F000000&quot; title=&quot;Decorator パターンでコントローラーの肥大化を抑える話 #デザインパターン - コドモン Product Team Blog&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://cdn-ak.f.st-hatena.com/images/fotolife/t/t-miyahira/20231127/20231127111409.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-17 00:00:00</published>
  <title>Decorator パターンでコントローラーの肥大化を抑える話 #デザインパターン</title>
  <type>rich</type>
  <url>https://tech.codmon.com/entry/2023/12/17/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
