<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jiikko</author_name>
  <author_url>https://blog.hatena.ne.jp/jiikko/</author_url>
  <blog_title>ツユダクの肉増しのRuby on Railsの初心者で</blog_title>
  <blog_url>https://jiikko.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby、どんなに汚くても動くけど、翌日その書いたコードを見ると理解するまでに時間がかかることがよくある。 たぶんこれって可読性がないから。 コードの消費期限をあげるためとか最近自分が意識していること 適切なメソッドを使う イテレータは、論理判定とかぐちゃっと書けば割とメソッドの種類を知らなくても書ける。でもこれだと可読性が息してない。 レコードを取り除きたい場合はreject。レコードを選びたい時はselect。オブジェクトから配列を作りたい時はpluck。とか使い分ける。 Word.all.map{ |v| v.id } ↓ Wod.pluck(:id) とか。 適切なメソッドを書いていけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjiikko.hatenadiary.org%2Fentry%2F20130522%2F1369234017&quot; title=&quot;Rubyistビギナーが最近Rubyを書いてて思ったこと - ツユダクの肉増しのRuby on Railsの初心者で&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>2013-05-22 23:46:57</published>
  <title>Rubyistビギナーが最近Rubyを書いてて思ったこと</title>
  <type>rich</type>
  <url>https://jiikko.hatenadiary.org/entry/20130522/1369234017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
