<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>small hallucinations</title>
    <link>https://tonghe.xyz/</link>
    <description>small hallucinations</description>
    <managingEditor>! (Tonghe Wang)</managingEditor>
    <pubDate>Sun, 25 Oct 2026 21:32:12 +0100</pubDate>
    <item>
      <title>Email OTP and the Case of the Missing Logo</title>
      <link>https://tonghe.xyz/2026/email-otp/</link>
      <description>&lt;p&gt;I was implementing authentication for a service I was building.&lt;/p&gt;&#xA;&lt;p&gt;I&#39;ve been logging in to a few online services using Passkeys, though I don&#39;t remember opting in.&lt;/p&gt;&#xA;&lt;p&gt;Logging in with a fingerprint on my Mac is a quality-of-life improvement. Upon reading how passkeys work, however, I didn&#39;t quite understand why it was necessary. There are &lt;a href=&#34;https://danfabulich.medium.com/passkeys-are-just-passwords-that-require-a-password-manager-ebb7f2fdcadf&#34;&gt;complaints on the internet&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So for my service, I implemented email OTP instead. If it&#39;s about liberating the user from remembering another password, I believe the six-digit login code is much easier for developers and sufficiently familiar to users, at least for a non-critical and non-sensitive service.&lt;/p&gt;&#xA;&lt;p&gt;I also updated the login-code email template, although I had a hard time including the logo. It turned out email services would strip out inline SVG markup and base64 data URLs from the embedded HTML. (It was very entertaining to watch AI painstakingly try and fail to reproduce the logo with an elaborate &lt;code&gt;table&lt;/code&gt;.)&lt;/p&gt;&#xA;&lt;p&gt;The correct approach is to set the image source in the email&#39;s HTML to a &lt;code&gt;cid:&lt;/code&gt; URL, attach the base64-encoded PNG to the message, and assign the attachment a matching Content-ID. With those IDs linked up, the image renders correctly and the email is ready to send.&lt;/p&gt;&#xA;</description>
      <pubDate>Sun, 25 Oct 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Streaks Are for Boring Things</title>
      <link>https://tonghe.xyz/2026/streaks/</link>
      <description>&lt;p&gt;I was studying the UX design of Apple Books and noticed that at the bottom of the Home screen, there is a reading goal progress dial, followed by your current streak, and your longest streak. You keep the streak alive if you spend enough time reading in the Apple Books app to meet your goal.&lt;/p&gt;&#xA;&lt;img src=&#34;https://tonghe.xyz/assets/260830-reading-goals.png&#34; style=&#34;width: 336px; height: 384px;&#34; /&gt;&#xA;&lt;p&gt;This streak design is not really a source of bragging rights, as there isn&#39;t much of a social element in Apple Books. There&#39;s no “my streak is longer than my frenemy&#39;s” badge of honor for readers to display.&lt;/p&gt;&#xA;&lt;p&gt;At the same time, Duolingo&#39;s design has combined streaks with social features to an extreme. You have your own streak. When you break your streak, your friend can save it for you by spending their own gems. When you pledge to maintain a streak of a certain length and fulfill the pledge, you get extra gems. You are also constantly reminded that your friend has achieved a remarkably long streak. All this adds to the social pressure on users to keep coming back to the game. (Duolingo has taken gamification to another level. It would be disrespectful not to call it a game.)&lt;/p&gt;&#xA;&lt;p&gt;Now, what&#39;s interesting is that you only want to use the streak feature for activities that are traditionally considered boring or unengaging (reading, learning vocabulary).&lt;/p&gt;&#xA;&lt;p&gt;If something is inherently engaging, you don&#39;t need a “streak” feature to remind users to come back. For example, you don&#39;t see a “streak” reminder splashed across TikTok&#39;s home screen.&lt;/p&gt;&#xA;</description>
      <pubDate>Sun, 30 Aug 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Building a Landing Page with Codex, Astro, and Cloudflare</title>
      <link>https://tonghe.xyz/2026/landing-page/</link>
      <description>&lt;p&gt;I created a &lt;a href=&#34;https://streets.city/&#34;&gt;landing page&lt;/a&gt; for a project that I&#39;ve wanted to start for a long time. Much of the delay came from my struggle to wrap my head around it.&lt;/p&gt;&#xA;&lt;p&gt;The best way to beat procrastination is to do something—anything, really—and simply get started. For me, that “something” was building a landing page.&lt;/p&gt;&#xA;&lt;p&gt;I asked Codex to generate five landing-page mockups in vastly different styles. I then refined the design by asking it to create variants of the two I liked best.&lt;/p&gt;&#xA;&lt;p&gt;As of August 2026, Codex (with &lt;code&gt;gpt-5.6-sol&lt;/code&gt;) understands images remarkably well. It can generate design mockups and accurately interpret their layouts.&lt;/p&gt;&#xA;&lt;p&gt;After some discussion, I asked Codex to build the site with server-side rendering so that users would receive fully rendered HTML without much JavaScript fluff. I also wanted the landing page to include a waitlist feature.&lt;/p&gt;&#xA;&lt;p&gt;This was my first time using Astro. Judging by the code Codex produced, Astro handles the job cleanly and elegantly.&lt;/p&gt;&#xA;&lt;p&gt;What&#39;s remarkable is that Astro creates a server-side endpoint that receives signup requests without adding any bloat. The endpoint then inserts each email address into a database table.&lt;/p&gt;&#xA;&lt;p&gt;Cloudflare makes this especially simple. I deployed the landing page to Cloudflare Pages and connected it to a D1 database to store incoming waitlist signups. It just worked.&lt;/p&gt;&#xA;</description>
      <pubDate>Thu, 13 Aug 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>A lightweight Swift workflow with Zed</title>
      <link>https://tonghe.xyz/2026/swift-in-zed/</link>
      <description>&lt;p&gt;I played with Swift over the weekend, and Xcode felt sluggish at times on my machine. I also had to ask Codex for help quite often just to navigate its UI.&lt;/p&gt;&#xA;&lt;p&gt;When I tried coding in Zed, it failed to recognize structs, variables, and similar symbols defined in other project files.&lt;/p&gt;&#xA;&lt;p&gt;A quick Google search led me to a very helpful blog post, “&lt;a href=&#34;https://creativewithin.medium.com/how-i-got-zed-editor-working-with-swift-projects-60ea78d4165e&#34;&gt;How I Got Zed Editor Working with Swift Projects&lt;/a&gt;,” and a GitHub repository: &lt;a href=&#34;https://github.com/SolaWing/xcode-build-server&#34;&gt;&lt;code&gt;xcode-build-server&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Following the instructions in the blog post, I installed &lt;code&gt;xcode-build-server&lt;/code&gt; and generated a &lt;code&gt;buildServer.json&lt;/code&gt; file with the following command:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;xcode-build-server config -scheme SCHEME_NAME -project PROJECT_NAME.xcodeproj&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Zed could now recognize the project&#39;s symbols.&lt;/p&gt;&#xA;&lt;p&gt;I wanted to use the simulator without opening Xcode. After some trial and error, I got hot reload working too. Here&#39;s how:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Navigate to the project directory and run &lt;code&gt;open -a Simulator&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;xcodebuild&lt;/code&gt; to build the codebase as an &lt;code&gt;.app&lt;/code&gt; bundle.&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;xcrun&lt;/code&gt; to install and launch the built bundle in the simulator.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I&#39;ve shared the Bash script I&#39;m using in &lt;a href=&#34;https://gist.github.com/t0nghe/29cad0dbbfe3181113b3797f64d18af1&#34;&gt;a GitHub Gist&lt;/a&gt;. Update the project name, scheme, directories, and other values as needed, then install &lt;a href=&#34;https://github.com/emcrisostomo/fswatch&#34;&gt;&lt;code&gt;fswatch&lt;/code&gt;&lt;/a&gt; to watch for file changes. Now you can run this command and have fun:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;open -a Simulator &amp;amp;&amp;amp; dev.sh&lt;/code&gt;&lt;/p&gt;&#xA;</description>
      <pubDate>Tue, 04 Aug 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Your ideas are wrong (and your instincts aren&#39;t)</title>
      <link>https://tonghe.xyz/2026/zynga/</link>
      <description>&lt;p&gt;I&#39;ve been reading &lt;em&gt;&lt;a href=&#34;https://www.lifeatthespeedofplay.com/&#34;&gt;Life at the Speed of Play&lt;/a&gt;&lt;/em&gt; by Mark Pincus, the founder of Zynga, the social gaming company behind &lt;em&gt;FarmVille&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here are a few takeaways that I found fascinating:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Instincts and ideas are two different things.&lt;/strong&gt; Your instincts are almost always right; your ideas are often wrong. Recognizing this distinction makes it much easier to abandon failing ideas without giving up on the core insight. Your instinct tells you where the market is going or which problems are worth solving. Your ideas represent specific ways of building a product or finding a solution. Ideas tend to be wrong because they involve countless permutations of details. Which brings us to:&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Proven, better, new.&lt;/strong&gt; When you follow an instinct, find the features that are &lt;span class=&#34;line&#34;&gt;&lt;em&gt;proven&lt;/em&gt;&lt;/span&gt; to work in competing products and copy them. Identify which details in existing products you can objectively make &lt;span class=&#34;line&#34;&gt;&lt;em&gt;better&lt;/em&gt;&lt;/span&gt;. Introducing &lt;span class=&#34;line&#34;&gt;&lt;em&gt;new&lt;/em&gt;&lt;/span&gt; features or ways of interacting is risky. That&#39;s why:&lt;/li&gt;&#xA;&lt;li&gt;A “&lt;strong&gt;minimum idea state&lt;/strong&gt;” is much more useful than a “minimum viable product.” MVPs are too heavy. Instead, build just enough of your idea to rapidly gather data and test the waters.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</description>
      <pubDate>Mon, 03 Aug 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Alpaca WebSocket Authentication with WebSockex</title>
      <link>https://tonghe.xyz/2026/auth-timeout/</link>
      <description>&lt;p&gt;I was trying to stream market data through Alpaca&#39;s &lt;a href=&#34;https://docs.alpaca.markets/docs/real-time-stock-pricing-data&#34;&gt;WebSocket endpoint&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Alpaca&#39;s documentation lists the following three steps for receiving market data from the stream:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Connect to the endpoint.&lt;/li&gt;&#xA;&lt;li&gt;Send an authentication frame.&lt;/li&gt;&#xA;&lt;li&gt;Send a subscription frame.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Step 2 proved tricky.&lt;/p&gt;&#xA;&lt;p&gt;The library I&#39;m using is WebSockex. As a best practice, you should either send the auth frame in the &lt;code&gt;handle_connect&lt;/code&gt; function or reply with one from &lt;code&gt;handle_frame&lt;/code&gt; when the “connected” message is received. In this particular case, both approaches failed or timed out.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;handle_connect&lt;/code&gt; function is called immediately after the WebSocket connection is established. From &lt;code&gt;handle_connect&lt;/code&gt;, you cannot return &lt;code&gt;{:reply, auth_frame, state}&lt;/code&gt;; you can only return &lt;code&gt;{:ok, state}&lt;/code&gt; or &lt;code&gt;{:close, state}&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you want to send the auth frame to the server, you have to use &lt;code&gt;WebSockex.send_frame(pid, frame)&lt;/code&gt;. ChatGPT keeps telling me to do the following, although it invariably causes a &lt;code&gt;CallingSelfError&lt;/code&gt;. Apparently, you cannot simply ask yourself—the same process—to send a frame.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;1&lt;/span&gt;&lt;span&gt;&lt;span style=&#34;color:#a90d91&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;handle_connect&lt;/span&gt;(&lt;span style=&#34;color:#000&#34;&gt;_conn&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;state&lt;/span&gt;) &lt;span style=&#34;color:#a90d91&#34;&gt;do&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;2&lt;/span&gt;&lt;span&gt;  &lt;span style=&#34;color:#177500&#34;&gt;# This will cause an error.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;3&lt;/span&gt;&lt;span&gt;  &lt;span style=&#34;color:#3f6e75&#34;&gt;WebSockex&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;send_frame&lt;/span&gt;(&lt;span style=&#34;color:#000&#34;&gt;self&lt;/span&gt;(), {&lt;span style=&#34;color:#c41a16&#34;&gt;:text&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;auth_frame&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;4&lt;/span&gt;&lt;span&gt;  {&lt;span style=&#34;color:#c41a16&#34;&gt;:ok&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;state&lt;/span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;5&lt;/span&gt;&lt;span&gt;&lt;span style=&#34;color:#a90d91&#34;&gt;end&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;But in the &lt;code&gt;handle_frame&lt;/code&gt; function, you can return a tuple like this: &lt;code&gt;{:reply, auth_frame, state}&lt;/code&gt;. You only need to pattern-match the incoming frames. When you see “connected,” return that reply tuple. This would have worked had it not timed out. (Curiously, replying with a subscription frame worked.)&lt;/p&gt;&#xA;&lt;p&gt;In the end, I sent the auth frame inside the &lt;code&gt;start_link&lt;/code&gt; function.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 1&lt;/span&gt;&lt;span&gt;  &lt;span style=&#34;color:#a90d91&#34;&gt;def&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;start_link&lt;/span&gt;(&lt;span style=&#34;color:#000&#34;&gt;state&lt;/span&gt;) &lt;span style=&#34;color:#a90d91&#34;&gt;do&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 2&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#000&#34;&gt;connected&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#3f6e75&#34;&gt;WebSockex&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;start_link&lt;/span&gt;(&lt;span style=&#34;color:#836c28&#34;&gt;@uri&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;__MODULE__&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;state&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 3&lt;/span&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 4&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#a90d91&#34;&gt;case&lt;/span&gt; &lt;span style=&#34;color:#000&#34;&gt;connected&lt;/span&gt; &lt;span style=&#34;color:#a90d91&#34;&gt;do&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 5&lt;/span&gt;&lt;span&gt;      {&lt;span style=&#34;color:#c41a16&#34;&gt;:ok&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;pid&lt;/span&gt;} &lt;span style=&#34;color:#000&#34;&gt;-&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 6&lt;/span&gt;&lt;span&gt;        &lt;span style=&#34;color:#3f6e75&#34;&gt;WebSockex&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;send_frame&lt;/span&gt;(&lt;span style=&#34;color:#000&#34;&gt;pid&lt;/span&gt;, {&lt;span style=&#34;color:#c41a16&#34;&gt;:text&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;auth_json&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 7&lt;/span&gt;&lt;span&gt;        {&lt;span style=&#34;color:#c41a16&#34;&gt;:ok&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;pid&lt;/span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 8&lt;/span&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt; 9&lt;/span&gt;&lt;span&gt;      {&lt;span style=&#34;color:#c41a16&#34;&gt;:error&lt;/span&gt;, &lt;span style=&#34;color:#000&#34;&gt;reason&lt;/span&gt;} &lt;span style=&#34;color:#000&#34;&gt;-&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;10&lt;/span&gt;&lt;span&gt;        &lt;span style=&#34;color:#3f6e75&#34;&gt;Logger&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#000&#34;&gt;info&lt;/span&gt;(&lt;span style=&#34;color:#000&#34;&gt;reason&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;11&lt;/span&gt;&lt;span&gt;    &lt;span style=&#34;color:#a90d91&#34;&gt;end&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span style=&#34;white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f&#34;&gt;12&lt;/span&gt;&lt;span&gt;  &lt;span style=&#34;color:#a90d91&#34;&gt;end&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 13 Feb 2026 18:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Building Complexity from Simple Ideas</title>
      <link>https://tonghe.xyz/2026/elixir-in-action/</link>
      <description>&lt;p&gt;I finished reading &lt;em&gt;&lt;a href=&#34;https://www.manning.com/books/elixir-in-action-third-edition&#34;&gt;Elixir in Action&lt;/a&gt;&lt;/em&gt;. It&#39;s a great book that explains complex ideas—many of them new to me—in clear, simple language.&lt;/p&gt;&#xA;&lt;p&gt;In each chapter, the author illustrates a set of new concepts with simple code examples and occasional exercises. As you go deeper into the book, you can clearly see how new concepts are built on the simpler ones introduced earlier. It feels recursive.&lt;/p&gt;&#xA;&lt;p&gt;At its core, Elixir is very, very simple. You define small functions that perform specific tasks. You can specify the conditions under which these functions run using the &lt;code&gt;when&lt;/code&gt; clause and parameter pattern matching. You then build larger functions by composing smaller ones.&lt;/p&gt;&#xA;&lt;p&gt;The notions of pure functions and immutability go hand in hand. They may seem like constraints at first, until you realize that they free you from having to ask yourself, “Am I manipulating this list in place or not?” or “Is this pointer mutable or not?” No, you didn&#39;t change the list in place. No, it&#39;s not mutable, and you don&#39;t need to worry about pointers.&lt;/p&gt;&#xA;&lt;p&gt;The most basic way to coordinate processes is by sending messages. A process exits after it receives and processes a message. To keep a process alive, you recursively call the function that receives messages. There are complex features, but these simple concepts remain at the core. This makes Elixir much easier for me to think about than &lt;a href=&#34;https://gobyexample.com/goroutines&#34;&gt;goroutines&lt;/a&gt; and &lt;a href=&#34;https://gobyexample.com/channels&#34;&gt;channels&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Go and read it.&lt;/p&gt;&#xA;</description>
      <pubDate>Wed, 14 Jan 2026 18:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>