<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>snoozer-05</author_name>
  <author_url>https://blog.hatena.ne.jp/snoozer-05/</author_url>
  <blog_title>Standing on the shoulder of giants</blog_title>
  <blog_url>https://snoozer-05.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>パターン</anon>
  </categories>
  <description>インスタンス変数には役割を表す名前をつけましょう。変数がコレクションを持つ場合は、複数形の名前にしましょう。 インスタンス変数の命名に関するパターンです。 変数は変数名と型によって構成されます。そのうち、型については、その変数が何を出来るかという情報しか持ちません。そのため、変数が読み手に自身の役割を伝える唯一の手段は、変数名となります。また、読み手が文脈から変数の役割を推測するのは、容易ではありません。なので、変数名にはその変数の役割を正しく表す名前をつけるべきです。名前重要。 class Timer def initialize @count = 0 @period = 1000 end …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsnoozer-05.hatenadiary.org%2Fentry%2F20070802%2F1186063931&quot; title=&quot;Role Suggesting Instance Variable Name - Standing on the shoulder of giants&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>2007-08-02 23:12:11</published>
  <title>Role Suggesting Instance Variable Name</title>
  <type>rich</type>
  <url>https://snoozer-05.hatenadiary.org/entry/20070802/1186063931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
