<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gyaogate</author_name>
  <author_url>https://blog.hatena.ne.jp/gyaogate/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>STORES モバイルオーダー</anon>
    <anon>Ruby on Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>こんにちは、Webアプリケーションエンジニアの染谷(somezi)です。 皆さんは予約システムをつくったことはありますか？私は現在モバイルオーダーを開発しており、その中で時間を指定せずに最短で受け取れるように注文する「即時注文」と、あらかじめ決められた時間に受け取るように注文する「予約注文」をつくりました。 本記事では、即時注文と予約注文を実装する際に「このパターンでこの時間注文できるんだっけ？？」と何度も混乱した経験から、時間の集合演算というアプローチでリファクタリングすることで技術的に乗り越えた話を紹介します。 ※世間一般でイメージする予約システムとはちょっと違いますが、広義の意味では予約…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2025%2F06%2F30%2F173000&quot; title=&quot;モバイルオーダーの予約システムで複雑な時間の計算を集合演算で解決した - STORES Product 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/s/stores-tech/20250630/20250630173003.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-30 17:30:00</published>
  <title>モバイルオーダーの予約システムで複雑な時間の計算を集合演算で解決した</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2025/06/30/173000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
