<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go on Muhammad Nuh</title><link>https://hexrogue.github.io/tags/go/</link><description>Recent content in Go on Muhammad Nuh</description><generator>Hugo</generator><language>en-us</language><managingEditor>ikanlemas0@gmail.com (Muhammad Nuh)</managingEditor><webMaster>ikanlemas0@gmail.com (Muhammad Nuh)</webMaster><lastBuildDate>Tue, 05 Mar 2024 00:00:00 +0800</lastBuildDate><atom:link href="https://hexrogue.github.io/tags/go/index.xml" rel="self" type="application/rss+xml"/><item><title>Teaching a Server to Answer Calls</title><link>https://hexrogue.github.io/blog/teaching-server-answer-calls/</link><pubDate>Tue, 05 Mar 2024 00:00:00 +0800</pubDate><author>ikanlemas0@gmail.com (Muhammad Nuh)</author><guid>https://hexrogue.github.io/blog/teaching-server-answer-calls/</guid><description>&lt;figure&gt;&#10;&lt;img src="https://hexrogue.github.io/images/coffee-beans.jpg" alt="Debugging fuel"&gt;&#10;&lt;figcaption&gt;Debugging fuel. Consumed in large quantities during this project.&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;My admissions CRM could text people automatically. Then the boss asked the obvious question: can it call them too? That question cost me a month and taught me more about real time systems than anything before it. It also cost me my sleep schedule, which was already on a payment plan. This is that month.&lt;/p&gt;&#10;&lt;h2 id="the-gap-between-texting-and-talking"&gt;The gap between texting and talking&lt;/h2&gt;&#10;&lt;p&gt;Texting through code is posting letters. Your program hands words to a server, the server delivers them whenever. Nothing has to be alive at the same time. I had that working in days.&lt;/p&gt;</description></item><item><title>How I taught Go to make phone calls</title><link>https://hexrogue.github.io/blog/go-phone-calls-whatsapi/</link><pubDate>Sun, 11 Feb 2024 00:00:00 +0800</pubDate><author>ikanlemas0@gmail.com (Muhammad Nuh)</author><guid>https://hexrogue.github.io/blog/go-phone-calls-whatsapi/</guid><description>&lt;p&gt;Texting through code is easy. Your program sends words, the other side receives words. Done. Then someone asks &amp;ldquo;can it also call people&amp;rdquo; and you discover that voice is a whole different animal. This is the story of teaching my Go gateway to speak.&lt;/p&gt;&#10;&lt;h2 id="messages-are-letters-calls-are-conversations"&gt;Messages are letters, calls are conversations&lt;/h2&gt;&#10;&lt;p&gt;Think of a text message like a letter. You write it, you post it, it arrives whenever. Nothing needs to be live at the same time. A phone call is a conversation: both sides talking at once, reacting instantly, and if the words arrive late or jumbled, the whole thing falls apart.&lt;/p&gt;</description></item><item><title>Your Prayer App Downloads the Answer. I Derived It.</title><link>https://hexrogue.github.io/blog/my-go-prayer-time-calculator-from-pdf-formulas-to-terminal-tui/</link><pubDate>Sun, 07 May 2023 00:00:00 +0800</pubDate><author>ikanlemas0@gmail.com (Muhammad Nuh)</author><guid>https://hexrogue.github.io/blog/my-go-prayer-time-calculator-from-pdf-formulas-to-terminal-tui/</guid><description>&lt;p&gt;I found a paper called &amp;ldquo;Tracing the Shadow: Mathematical Calculation of Prayer Times Using Spherical Trigonometry.&amp;rdquo; The title alone had enough syllables to scare off a normal person, which is exactly how I knew I had to read it. I read it anyway.&lt;/p&gt;&#10;&lt;p&gt;I wanted to know how the app on my phone knew. Most apps download the answer from a server. Nobody shows the work. So I opened the paper and started translating it into Go.&lt;/p&gt;</description></item><item><title>The Sun Does Not Need an API</title><link>https://hexrogue.github.io/blog/my-go-prayer-time-calculator/</link><pubDate>Mon, 12 Apr 2021 00:00:00 +0800</pubDate><author>ikanlemas0@gmail.com (Muhammad Nuh)</author><guid>https://hexrogue.github.io/blog/my-go-prayer-time-calculator/</guid><description>&lt;p&gt;I have stood in a basement carpark, holding my phone at the angle where hope lives, waiting for a prayer app to admit it needed the internet. No signal, no answer. For a prayer timetable. The Sun was directly above the building, no signal required. It has been running this service for about four billion years and has never once asked me to accept cookies.&lt;/p&gt;&#10;&lt;p&gt;That was the moment I decided to compute the times myself.&lt;/p&gt;</description></item></channel></rss>