<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cero-t</author_name>
  <author_url>https://blog.hatena.ne.jp/cero-t/</author_url>
  <blog_title>谷本 心 in せろ部屋</blog_title>
  <blog_url>https://cero-t.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>よく定数クラスというものを見かける。 大体はXxxConstantsという名前で、public static finalなフィールドをたくさん持つクラス。 あるいは、定数クラス自身をinterfaceとして定義しておいて、 値を利用するクラスで、implementsするという手法も見かける。 初めて見た時には、便利な手法だと思ったけど、 その後、ひどい定数クラスを目にすることが少なくなかった。 定数クラスは、疎結合の考え方と全く合わないと僕は思う。 具体的に、悪い例を見ながら話していく。 public class XxxConstants { public static final Strin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcero-t.hatenadiary.jp%2Fentry%2F20090315%2F1237138482&quot; title=&quot;考えなしに肥大化する定数クラス。 - 谷本 心 in せろ部屋&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>2009-03-15 02:34:42</published>
  <title>考えなしに肥大化する定数クラス。</title>
  <type>rich</type>
  <url>https://cero-t.hatenadiary.jp/entry/20090315/1237138482</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
