<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mikio-k</author_name>
  <author_url>https://blog.hatena.ne.jp/mikio-k/</author_url>
  <blog_title>デザインダイアローグコペンハーゲン</blog_title>
  <blog_url>https://ddcph.hatenablog.com/</blog_url>
  <categories>
    <anon>テクノロジー</anon>
    <anon>CIID</anon>
  </categories>
  <description>CIIDでは基本的にチームでモノ作りを行います。そのため、プログラミングひとつとってもペアプログラミングのような事をする事が多いのです。そういった場合に我々からすると当たり前の様な事であっても、プログラミング初心者からすると、そんな手があったのか！と言う超絶テクニックに見えるものがあるらしく、いくつかメモとして残して起きます。 フラグを利用したトグル処理 ユーザインタフェースだとか、何らかのインタラクションを制御したいと思うと、ボタンなどを押した時にONとOFFを切り替えたい事が多くあると思うのですが、下記のようなコードで、２種類の処理を交互に実施する事ができます。 int flag = 0;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fddcph.hatenablog.com%2Fentry%2F2016%2F04%2F09%2F191910&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>https://lh3.googleusercontent.com/-RP_Ny-QHnMc/VwTsh3NYYcI/AAAAAAABw8s/tngDEGuDsQIyVN33c1GxzKgg4h1z7TfGg/s1024/IMG_20160406_130120.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-09 19:19:10</published>
  <title>アルゴリズムと言う程ではないがプログラミング初心者が驚くちょっとしたテクニックなど</title>
  <type>rich</type>
  <url>https://ddcph.hatenablog.com/entry/2016/04/09/191910</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
