<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>2019年の最初だし、ブログでも書いてみようという試み。 事の発端のツイート コード読んでいて違和感あるけど、修正しなくても動いている場合のレビューが難しい。例えば、無駄なメソッド呼び出しとか。def foo(x) a = x.flat_map(&amp;:bar) (a + [1]).flattenend— 神速 (@sinsoku_listy) 2018年12月31日 この例は「flat_map使っているし、flatten要らないよね」って意図だったけど、@kamipoさんや@hanachin_さんからbarがネストした配列を返すときは必要というリプライを頂いた。 flat_mapよく分からなくな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2019%2F01%2F01%2F235628&quot; title=&quot;rubyのflat_mapをちゃんと理解した - アジャイルSEの憂鬱&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>2019-01-01 23:56:28</published>
  <title>rubyのflat_mapをちゃんと理解した</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2019/01/01/235628</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
