<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osatohh</author_name>
  <author_url>https://blog.hatena.ne.jp/osatohh/</author_url>
  <blog_title>おさとの雑記帳</blog_title>
  <blog_url>https://osatoh.com/</blog_url>
  <categories>
    <anon>本</anon>
  </categories>
  <description>最善の名前とは誤解されない名前をつける！ ある変数や関数名をつけた際には「他の意味に取られることはないか？」を自問するべきです。 以下では自問・検討の仕方を見ていきます。 曖昧な名前を避ける 変数に対して代入されるものが、何かに処理をくわえて残ったものか、それとも除外されたものなのか。 ここではfilterと言うメソッドが例に挙げられてました。 filterは絞り込んだ結果を選択するのか、除外するのかがわかりにくいですね。 なので、選択するならselect、除外するならexcludeのような名前にした方が意味が伝わりやすいですね。 ちなみにRubyではfilterはselectのエイリアスなの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosatoh.com%2Fentry%2F2022%2F10%2F10%2F152627&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>2022-10-10 15:26:27</published>
  <title>【リーダブルコード】第三章 　誤解されない名前 の要約</title>
  <type>rich</type>
  <url>https://osatoh.com/entry/2022/10/10/152627</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
