<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>macneko-ayu</author_name>
  <author_url>https://blog.hatena.ne.jp/macneko-ayu/</author_url>
  <blog_title>ごんれのラボ</blog_title>
  <blog_url>https://blog.macneko.com/</blog_url>
  <categories>
  </categories>
  <description>概要 本題 追加でやるなら 諦めることも必要 概要 DTPerのスクリプトもくもく会 #2 で参加者の方にお話しした内容の抜粋版。 これぐらいの気持ちでリファクタリングするのが心理的負担も少なくていいと思う。 本題 typoを直す 変数名、メソッド名、コメントのtypoを直す 同じ処理を二度書かない 複数回書いている処理を抽出してメソッドに書き直す プロパティは変数にいれておく コメントを見直す 読み直して意味がわからないものは書き直す メソッドに概要、パラメーター、戻り値などのコメントをつける 処理をシンプルなものに書き直せないか見直す if文、for文のネストを減らす 追加でやるなら 変数…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.macneko.com%2Fentry%2Feasy-script-refactoring&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>2017-07-15 14:58:29</published>
  <title>昔書いたスクリプトを見直すときに留意しておくこと</title>
  <type>rich</type>
  <url>https://blog.macneko.com/entry/easy-script-refactoring</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
