<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by caasih on Medium]]></title>
        <description><![CDATA[Stories by caasih on Medium]]></description>
        <link>https://medium.com/@caasih?source=rss-9d44c20b9e98------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rJnZMCQP9NVy0AKrZRXouw.png</url>
            <title>Stories by caasih on Medium</title>
            <link>https://medium.com/@caasih?source=rss-9d44c20b9e98------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 13:10:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@caasih/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[On Matthew Fuller’s “Data Structures as Spatial Structures”]]></title>
            <link>https://medium.com/@caasih/on-matthew-fullers-data-structures-as-spatial-structures-f4e63f3e7350?source=rss-9d44c20b9e98------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e63f3e7350</guid>
            <category><![CDATA[caa-ins]]></category>
            <dc:creator><![CDATA[caasih]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 15:50:00 GMT</pubDate>
            <atom:updated>2018-01-12T15:51:41.376Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Ilya 前年介紹了 Matthew Fuller 在 caa-ins 上的一場，有關數據結構與空間結構的演講。那時沒辦法到場聽，但最近發現有<a href="http://caa-ins.org/archives/1213">錄影與逐字稿</a>。</p><p>開場就引用 Kurt Gödel 的不完備定理，接著說明編碼、轉譯、解碼這樣的過程，在我們的社會、文化中隨處可見。將各種程式語言的表現方式視為紋理、物料，好像混凝土、陶土那樣，有各自的特質和使用方式。這點有很有意思。</p><p>但我不懂，拿 <a href="https://en.wikipedia.org/wiki/G%C3%B6del_numbering">Gödel numbering</a> 來類比之後所有的編碼、解碼方式，是不是有點牽強？</p><p>Gödel 編碼的是一個公理系統中的命題，雖然最後以自然數來表現，但不會用到所有自然數的性質，目的是用它來完成證明。而後面提到的編碼、解碼（例如 Shannon 在訊息理論上的工作）牽扯到的是把自然界連續的訊號轉換成數位訊號，還要面對資訊損失。</p><p>我覺得編碼是人類拆分一個系統，試著去了解該系統的方法。例如有些程式語言的型別系統，表達能力比較強，所以用它描述要處理的資料時，可以設下較多限制，避免在轉譯成其他編碼時出錯。有些比較弱，但在趕著開發程式時，限制比較少。</p><p>最近聽到一種反思，讓我好奇「這反映的是人類自身的結構，還是世界的結構？」。（例如 Bartosz Milewski 在他的 category theory 課程 37:22 提到的）</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FI8LbkfSSR58%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DI8LbkfSSR58&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FI8LbkfSSR58%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a9cdc1d4864c316e2e18108653c3bb6/href">https://medium.com/media/7a9cdc1d4864c316e2e18108653c3bb6/href</a></iframe><p>如果這反映的是人類自己的結構，那麼 array, list, table, matrix, stack, heap 這些資料結構，它們的命名雖然有空間隱喻，表示的其實是人類用對空間的經驗來識別這些資料結構。它們是人類經驗延伸出來的抽象，城市的結構（也是人類的延伸）中本來就包含它們，而不是分開的、需要結合的兩種東西。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e63f3e7350" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Safe Space]]></title>
            <link>https://medium.com/@caasih/safe-space-fc3399a26e88?source=rss-9d44c20b9e98------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc3399a26e88</guid>
            <dc:creator><![CDATA[caasih]]></dc:creator>
            <pubDate>Wed, 14 Jun 2017 03:45:11 GMT</pubDate>
            <atom:updated>2017-06-14T03:49:25.052Z</atom:updated>
            <content:encoded><![CDATA[<p>（原來有個安心的地方，才有餘力面對世界）</p><p>雖然生命中看過不少令人安心的地方，但那都是「別人」經營出來的。待在那些地方很輕鬆，可以放心做事，但不是隨時都能去，對空間的存續也無能為力。</p><p>（對不起，不會再闖進別人的 safe space 了）</p><p>就算是虛幻的也好，讓我經營屬於自己的角落。</p><p>謝謝你讓我知道人在無能為力時，可以嘗試從來沒有想過的事情。</p><p>（像一面鏡子）</p><p>技術不是最重要的，「無法取代的事情」從小就知道了，只是沒有好好思考過得花多少功夫來保護它。</p><p>（對不起，對不起，對不起）</p><p>然後我想知道，開開心心地學習、撰碼是什麼感覺。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc3399a26e88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[狀態好像泡泡]]></title>
            <link>https://medium.com/@caasih/819790d96864?source=rss-9d44c20b9e98------2</link>
            <guid isPermaLink="false">https://medium.com/p/819790d96864</guid>
            <dc:creator><![CDATA[caasih]]></dc:creator>
            <pubDate>Wed, 03 Dec 2014 17:05:59 GMT</pubDate>
            <atom:updated>2014-12-13T06:19:46.712Z</atom:updated>
            <content:encoded><![CDATA[<p>這幾個月都在寫 React.js ，本來以為自己跟 React 滿合的，沒想到缺乏設計軟體系統的經驗讓自己吃了大虧。整個狀況大概可以簡化成下面這個例子：</p><h3>一切都很好</h3><p>一開始，要作個開關。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/458e753167f02d018b71cc93263d8fd1/href">https://medium.com/media/458e753167f02d018b71cc93263d8fd1/href</a></iframe><p>React 好棒棒，一下就做好了！還可以封裝到 &lt;Button&gt; 裡面！萬歲！</p><h3>加點什麼吧？</h3><p>那麼，變成三個開關吧！</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e94b79c10b8f0aa225da6fc94c34f78c/href">https://medium.com/media/e94b79c10b8f0aa225da6fc94c34f78c/href</a></iframe><p>那就把開關排三次就好啦，沒什麼難的！還做了個 &lt;ButtonGroup&gt; 出來咧！</p><h3>需求又改了</h3><p>那如果我希望按下一個開關，可以自動把其他開關都關掉呢？只好把狀態都移上來。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/925ca315f54257ad97a3f04d6d9c8699/href">https://medium.com/media/925ca315f54257ad97a3f04d6d9c8699/href</a></iframe><h3>下一步要往哪走？</h3><p>可是隔壁的老王說，他想要一組原來的開關，只好。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/15abdf654323f6a3511a8c65f17e9a38/href">https://medium.com/media/15abdf654323f6a3511a8c65f17e9a38/href</a></iframe><p>這樣一來， &lt;ButtonGroup&gt; 要嘛有兩種，要嘛得在 this.props 加個值，好決定該表現哪種行為。</p><h3>Single Source of Truth</h3><p>還不如讓最上層管理所有的狀態。</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f415f9a536fdc03195904c6b5ad3e0c0/href">https://medium.com/media/f415f9a536fdc03195904c6b5ad3e0c0/href</a></iframe><h3>於是…</h3><p>才知道為什麼 React 要分 props 和 state ，也知道寫個 stateless 的 component 到底方便在哪裡。如果按以前慣用的做法，讓各個 component 保有自己的狀態，然後到處發事件，光是聽事件的 code 就會扭成一團。對開發中的應用，哪些狀態彼此相關，常常在改變，甚至在不同層級間移動。</p><p>也看出 Flux 這個架構好在哪裡，如果 component 沒有狀態，那麼它就是個把 props/attributes 轉換成 HTML 的函式，對一種輸入只會有一種輸出。</p><p>只是知道得好像有點晚了 XDD</p><p>但沒關係，對系統外面來說，<a href="http://only-perception.blogspot.tw/2013/10/blog-post_24.html">沒有時間也就沒有狀態</a>，自然也沒有狀態該擺哪裡這種煩惱。</p><h3>EDIT</h3><ul><li>感謝 <a href="https://twitter.com/lyforever">@lyforever</a> 建議直接嵌入 fiddles 。</li><li>Medium 的 code block 好難用。</li><li>感謝 <a href="https://twitter.com/tomchentw">@tomchentw</a> 告訴我可以嵌入 gist 。</li></ul><p><em>Originally published at </em><a href="http://caasih.logdown.com/posts/2014/12/03/states-are-like-bubbles"><em>caasih.logdown.com</em></a><em> on December 3, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=819790d96864" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>