<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>雑記</anon>
  </categories>
  <description>雑記です。 Railsをやっていると『DRYじゃない』とか『DRYにしよう』みたいのでいろいろ処理をまとめることが多いと思います。その結果、親しいカテゴリの処理が一つにまとまることが多いです。 ただ割と起こりがちな現象として 似たような処理だが細部が違うので吸収できるように汎用化する 汎用化するとINPUTの多様性が上がってくる 例外ケースを補足するguard説が増えるなど、パターン対応に追われ処理が複雑化する みたいな現象が発生します。 これに対しては以下の問いかけをするとバラせるかなと思ってて その処理はいろいろなことをやりすぎではないか その処理はもう少し分解できるのではないか その処理…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2018%2F09%2F06%2F232155&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>2018-09-06 23:21:55</published>
  <title>汎用化処理に対して良いアプローチを考えたい</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2018/09/06/232155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
