<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tabitos-chalice</author_name>
  <author_url>https://blog.hatena.ne.jp/tabitos-chalice/</author_url>
  <blog_title>たびとの旅路 ～電脳砂漠の冒険譚～</blog_title>
  <blog_url>https://tabitos-voyage.com/</blog_url>
  <categories>
    <anon>開発思想</anon>
    <anon>開発思想|プログラミングTIPS</anon>
  </categories>
  <description>if文やswitch文の多用に疑問を感じていませんか？本記事では、ブール代数の考え方（true=1, false=0）を利用し、キー入力判定と座標計算をif文なしの数式だけで実装するエレガントなプログラミングテクニックを紹介します。天才プログラマのコードから着想を得たこの手法は、コードを数学的な美しさを持つ「数式」へと昇華させます。WPFのサンプルコード付き。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftabitos-voyage.com%2Fentry%2F2021%2F12%2F27%2F024723&quot; title=&quot;そのif文は、本当に必要か？ ～キー入力判定、邪道と呼ばれた座標計算の真実～ - たびとの旅路 ～電脳砂漠の冒険譚～&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/t/tabitos-chalice/20250803/20250803141554.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-27 02:47:23</published>
  <title>そのif文は、本当に必要か？ ～キー入力判定、邪道と呼ばれた座標計算の真実～</title>
  <type>rich</type>
  <url>https://tabitos-voyage.com/entry/2021/12/27/024723</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
