<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hachibeechan</author_name>
  <author_url>https://blog.hatena.ne.jp/hachibeechan/</author_url>
  <blog_title>タオルケット体操</blog_title>
  <blog_url>https://hachibeechan.hateblo.jp/</blog_url>
  <categories>
    <anon>TypeScript</anon>
  </categories>
  <description>今回のエントリは特定の言語に向けて書いているわけではありませんが、関数をサポートしていない言語では必然的にクラスをベースに実装していくことになるのである程度は対象となる言語は絞られます*1。 また特に説明がなければサンプルはTypeScriptで書きます。 さて、あくまで傾向としてではありますが関数を作れる言語の経験が短い人（例えばJavaやRubyですと、関数ではなくクラスに対するメソッドという形で実装することになります）は、単機能の振る舞いを実装するためだけであっても以下のようなコードを実装しがちです class DoSomethinger { constructor(private so…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhachibeechan.hateblo.jp%2Fentry%2Fyou-might-not-want-to-declare-classes&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>2020-02-18 22:44:12</published>
  <title>不要なクラス宣言、やめちゃおっか？</title>
  <type>rich</type>
  <url>https://hachibeechan.hateblo.jp/entry/you-might-not-want-to-declare-classes</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
