<?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>コメントすべきでないこと、すべきなこと コメントの目的とはなんでしょうか？ それは書き手の意図を読み手に知らせることです。 ただし、全ての意図をコメントすればいいわけではありません。 コメントを読むということはその分だけコードを読む時間が減るので、書くならばコードを読むより価値がある必要があります。 以下ではコメントすべきでないこと、すべきことを見ていきます。 コメントすべきでないこと コードからすぐにわかることを書かない 例えば以下のようなコメントが該当しそうです。 # 引数を二つ与えて、その合計を返す関数 def total(a, b) a + b end total(2, 5) #=&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosatoh.com%2Fentry%2F2022%2F10%2F12%2F120000&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-12 12:00:00</published>
  <title>【リーダブルコード】第五章 コメントすべきことを知る の要約</title>
  <type>rich</type>
  <url>https://osatoh.com/entry/2022/10/12/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
