<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vasilyjp</author_name>
  <author_url>https://blog.hatena.ne.jp/vasilyjp/</author_url>
  <blog_title>ZOZO TECH BLOG</blog_title>
  <blog_url>https://techblog.zozo.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>iOS</anon>
    <anon>設計</anon>
  </categories>
  <description>iOSアプリチームの@hiragramです。 最近、ファーストリリース時からあった画面の大規模なリファクタリングを担当しました。 コードは遅かれ早かれ賞味期限が切れて少しずつ腐っていくものですが、その賞味期限を少しでも伸ばすために、普段コードを書く時にSwiftのOptionalについて意識していることを記事にします。 「とりあえずOptional」をやめる SwiftのOptionalは便利ですが、「Optionalを使えば、nilを安全に扱えて良い」と捉えてしまうと、気づくとモデルのプロパティがOptionalだらけになっていて使う側で毎回アンラップをしなくてはいけないような状況に必ずなり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.zozo.com%2Fentry%2Fhow-to-use-optional-in-more-better-way&quot; title=&quot;大規模リファクタリングで痛感したSwiftのOptionalとの正しい付き合い方 - ZOZO TECH BLOG&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>https://cdn-ak.f.st-hatena.com/images/fotolife/v/vasilyjp/20180202/20180202153329.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-05 11:00:00</published>
  <title>大規模リファクタリングで痛感したSwiftのOptionalとの正しい付き合い方</title>
  <type>rich</type>
  <url>https://techblog.zozo.com/entry/how-to-use-optional-in-more-better-way</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
