<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>chan.dev</title><description>Incoherant ramblings, by chantastic</description><link>https://chan.dev/</link><language>en-us</language><item><title>How I Use AssemblyAI&apos;s APIs for chantastic.fm</title><link>https://chan.dev/how-chantastic-fm-uses-assemblyai</link><guid isPermaLink="true">https://chan.dev/how-chantastic-fm-uses-assemblyai</guid><description>A practical walkthrough of the AssemblyAI APIs behind chantastic.fm: transcribe and diarize, correct through the LLM Gateway, then summarize, chapter, and export captions.</description><pubDate>Wed, 02 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;AI-assisted post: written from the transcription pipeline behind chantastic.fm.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I don’t edit podcast transcripts.&lt;/p&gt;
&lt;p&gt;I call AssemblyAI, let code check what comes back, and when something is wrong I change the inputs and run it again.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://chantastic.fm&quot; target=&quot;_blank&quot;&gt;chantastic.fm&lt;/a&gt; is the show that used to be React Podcast.
The pipeline lives in &lt;a href=&quot;https://github.com/chantastic/podcast&quot; target=&quot;_blank&quot;&gt;chantastic/podcast&lt;/a&gt;.
This is how the APIs are wired, with the request shapes we actually send.&lt;/p&gt;
&lt;p&gt;We use three AssemblyAI endpoints:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;POST https://api.assemblyai.com/v2/transcript&lt;/code&gt; to transcribe and diarize&lt;/li&gt;
&lt;li&gt;&lt;code&gt;POST https://llm-gateway.assemblyai.com/v1/understanding&lt;/code&gt; for a Speaker Identification follow-up, when we didn’t ask on the original job&lt;/li&gt;
&lt;li&gt;&lt;code&gt;POST https://llm-gateway.assemblyai.com/v1/chat/completions&lt;/code&gt; for everything we ask a model: corrections, then chapters, topics, and a summary&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We do not use AssemblyAI’s built-in summarization or auto-chapters.
Those last two jobs go through the LLM Gateway with our own schemas, and code decides what is kept.&lt;/p&gt;
&lt;h2&gt;Transcribe and diarize&lt;a href=&quot;#transcribe-and-diarize&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Each episode is submitted to the pre-recorded transcription API with model &lt;code&gt;assemblyai-stt-3-7&lt;/code&gt;, speaker labels, punctuation, and formatting on.
The request is built in &lt;code&gt;src/transcription/assemblyai.js&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export const API = &lt;/span&gt;&lt;span&gt;&apos;https://api.assemblyai.com/v2&apos;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export function requestBody({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;audioUrl, model, keyterms = [], prompt,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speakerLabels = true, webhook, speechUnderstanding&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const body = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;audio_url: audioUrl,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speech_models: [model],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_labels: !!speakerLabels,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;punctuate: true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;format_text: true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (keyterms.length) body.keyterms_prompt = keyterms;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (prompt) body.prompt = prompt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (speechUnderstanding) body.speech_understanding = speechUnderstanding;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (webhook?.url) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;body.webhook_url = webhook.url;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (webhook.headerName &amp;amp;&amp;amp; webhook.headerValue) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;body.webhook_auth_header_name = webhook.headerName;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;body.webhook_auth_header_value = webhook.headerValue;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return body;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;In practice we do not send a free-text &lt;code&gt;prompt&lt;/code&gt;.
The useful hint is &lt;code&gt;keyterms_prompt&lt;/code&gt;: a lean list of proper nouns for that episode.&lt;/p&gt;
&lt;p&gt;A finished request looks like this (trimmed, no secrets):&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// POST https://api.assemblyai.com/v2/transcript&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;audio_url: &lt;/span&gt;&lt;span&gt;&quot;https://media.example.com/show/audio/123.mp3&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speech_models: [&lt;/span&gt;&lt;span&gt;&quot;assemblyai-stt-3-7&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_labels: true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;punctuate: true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;format_text: true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;keyterms_prompt: [&lt;/span&gt;&lt;span&gt;&quot;chantastic&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Dan Abramov&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Redux&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;// speech_understanding and webhook_url are added when they apply&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;If a name comes out wrong, I don’t patch the transcript.
I add the name to the seeds or the notes and transcribe again.&lt;/p&gt;
&lt;h2&gt;Key terms&lt;a href=&quot;#key-terms&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;keyterms_prompt&lt;/code&gt; is built only from data we already have (&lt;code&gt;src/transcription/seeds.js&lt;/code&gt;).
The sources, in order, are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;hosts and guests, including spoken aliases and former names&lt;/li&gt;
&lt;li&gt;people, products, libraries, and companies in the visible show-note link text (never the href)&lt;/li&gt;
&lt;li&gt;sponsor names&lt;/li&gt;
&lt;li&gt;a show-wide glossary&lt;/li&gt;
&lt;li&gt;per-episode seed fixes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Proper nouns only.
No dictionary words, no URLs, and nothing taken from the title or description.
AssemblyAI’s limit is 1,000 terms, each at most six words; we log the count and flag an episode that goes over.&lt;/p&gt;
&lt;h2&gt;Speaker Identification&lt;a href=&quot;#speaker-identification&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;speaker_labels&lt;/code&gt; gives us lettered speakers (A, B, C).
Naming those letters is a separate step.&lt;/p&gt;
&lt;p&gt;A single host and a single guest skip Speaker Identification.
We request it only for a group episode: more than one credited guest, a panel, or three or more credited people.&lt;/p&gt;
&lt;p&gt;When we do, it goes on the original transcription request as &lt;code&gt;speech_understanding&lt;/code&gt;, with effort always &lt;code&gt;low&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export function speakerIdentificationRequest(people, { effort = &lt;/span&gt;&lt;span&gt;&apos;low&apos;&lt;/span&gt;&lt;span&gt; } = {}) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_type: &lt;/span&gt;&lt;span&gt;&apos;name&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speakers: speakerIdCandidates(people),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;effort: effort === &lt;/span&gt;&lt;span&gt;&apos;medium&apos;&lt;/span&gt;&lt;span&gt; ? &lt;/span&gt;&lt;span&gt;&apos;low&apos;&lt;/span&gt;&lt;span&gt; : (effort || &lt;/span&gt;&lt;span&gt;&apos;low&apos;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;speakerIdCandidates&lt;/code&gt; sends each credited person as &lt;code&gt;{ name, description }&lt;/code&gt;, for example &lt;code&gt;&quot;Host of the show&quot;&lt;/code&gt; or &lt;code&gt;&quot;Guest on this episode&quot;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The attached request looks like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;speech_understanding: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;request: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_identification: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_type: &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speakers: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{ name: &lt;/span&gt;&lt;span&gt;&quot;chantastic&quot;&lt;/span&gt;&lt;span&gt;, description: &lt;/span&gt;&lt;span&gt;&quot;Host of the show&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{ name: &lt;/span&gt;&lt;span&gt;&quot;Guest One&quot;&lt;/span&gt;&lt;span&gt;, description: &lt;/span&gt;&lt;span&gt;&quot;Guest on this episode&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{ name: &lt;/span&gt;&lt;span&gt;&quot;Guest Two&quot;&lt;/span&gt;&lt;span&gt;, description: &lt;/span&gt;&lt;span&gt;&quot;Guest on this episode&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;effort: &lt;/span&gt;&lt;span&gt;&quot;low&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;If that did not run, and the finished transcript has three or more voices (each with at least 30 seconds of talk) and the host never introduced themselves, we send a follow-up.
That call does not re-transcribe.
It posts the existing &lt;code&gt;transcript_id&lt;/code&gt; to the Speech Understanding API:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// POST https://llm-gateway.assemblyai.com/v1/understanding&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;transcript_id: &lt;/span&gt;&lt;span&gt;&quot;transcript_id&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speech_understanding: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;request: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;speaker_identification: { &lt;/span&gt;&lt;span&gt;/* same shape as above */&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;A name from Speaker Identification is used only if that person is credited on the episode.
If it disagrees with the word-based naming, Identification wins, but still only for a credited person.
Anything uncertain stays &lt;code&gt;Speaker X&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Webhooks, then a fingerprint so we don’t pay twice&lt;a href=&quot;#webhooks-then-a-fingerprint-so-we-dont-pay-twice&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If a webhook is configured, the transcription request also includes:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;webhook_url: &lt;/span&gt;&lt;span&gt;&quot;https://chantastic.fm/_hooks/assemblyai&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;webhook_auth_header_name: &lt;/span&gt;&lt;span&gt;&quot;x-webhook-secret&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;webhook_auth_header_value: &lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;AssemblyAI POSTs &lt;code&gt;{ transcript_id, status }&lt;/code&gt; to that URL when the job finishes, and we complete the sync.
The hook checks the shared secret in the &lt;code&gt;x-webhook-secret&lt;/code&gt; header with a constant-time compare.
If the secret is not set, that route is a 404 and nothing extra is billed; we poll &lt;code&gt;GET /v2/transcript/:id&lt;/code&gt; instead.&lt;/p&gt;
&lt;p&gt;We also refuse to submit the same job twice.
Stage A is cached by a SHA-256 fingerprint of the provider, the audio object (its key, etag, and size), and the request params, which include the seeds and the model:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const fp = await fingerprint({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;provider: config.provider,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;audio: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;key: input.episode.audioKey,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;etag: String(head.etag || &lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt;).replace(&lt;/span&gt;&lt;span&gt;/&quot;/g&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;size: head.size ?? null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;params&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;If a completed or in-flight version already has that fingerprint, the episode is skipped.
Unchanged audio and unchanged inputs are not sent again.&lt;/p&gt;
&lt;h2&gt;Correct the transcript through the LLM Gateway&lt;a href=&quot;#correct-the-transcript-through-the-llm-gateway&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Stage B is not “the model rewrites the transcript.”
The model proposes edits.
Code accepts or rejects each one.
Timestamps and speaker labels are off limits.&lt;/p&gt;
&lt;p&gt;The call goes to AssemblyAI’s LLM Gateway, on the same key and balance as transcription.
The show’s correction model is &lt;code&gt;claude-opus-5-5&lt;/code&gt;.
About 10 cents per episode with Opus.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// POST https://llm-gateway.assemblyai.com/v1/chat/completions&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const body = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;model, &lt;/span&gt;&lt;span&gt;// &quot;claude-opus-5-5&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;messages,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;max_tokens: maxTokens || c.maxOutputTokens || 16000,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;response_format: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;json_schema&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;json_schema: { name: &lt;/span&gt;&lt;span&gt;&quot;transcript_edits&quot;&lt;/span&gt;&lt;span&gt;, strict: true, schema }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if (m.region) body.model_region = m.region;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;For this show, &lt;code&gt;max_tokens&lt;/code&gt; is 10,000 and &lt;code&gt;model_region&lt;/code&gt; is &lt;code&gt;&quot;global&quot;&lt;/code&gt;.
The transcript is sent in 15-minute chunks, with the previous chunk’s last three segments as read-only context.&lt;/p&gt;
&lt;p&gt;The model must return JSON in this schema:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export const OUTPUT_SCHEMA = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;edits&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;listen&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;edits: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;array&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;items: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;segment&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;old&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;new&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;source&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;reason&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;confidence&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;segment: { type: &lt;/span&gt;&lt;span&gt;&quot;integer&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;old: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;new: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;source: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span&gt;enum: [&lt;/span&gt;&lt;span&gt;&quot;seed&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;notes&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;model-knowledge&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;reason: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;confidence: { type: &lt;/span&gt;&lt;span&gt;&quot;number&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;listen: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;array&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;items: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;segment&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;words&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;note&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;segment: { type: &lt;/span&gt;&lt;span&gt;&quot;integer&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;words: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;note: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;old&lt;/code&gt; has to be copied from the segment.
&lt;code&gt;source&lt;/code&gt; is &lt;code&gt;&quot;seed&quot;&lt;/code&gt; or &lt;code&gt;&quot;notes&quot;&lt;/code&gt; when the new words are in those lists, and &lt;code&gt;&quot;model-knowledge&quot;&lt;/code&gt; only when they are not.
If the model is unsure, it should not edit: it adds a &lt;code&gt;listen&lt;/code&gt; note instead.&lt;/p&gt;
&lt;h2&gt;Validate every edit in code&lt;a href=&quot;#validate-every-edit-in-code&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;validateEdit&lt;/code&gt; in &lt;code&gt;src/transcription/correct.js&lt;/code&gt; is the gate.
A rejected edit is recorded with a reason and never applied.
The rules that matter in practice:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;old&lt;/code&gt; must match the current segment exactly once.
Surrounding punctuation can differ; the transcript keeps its own.&lt;/li&gt;
&lt;li&gt;The edit cannot change punctuation, except writing out an initial (&lt;code&gt;M.&lt;/code&gt; → &lt;code&gt;Michel&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;A no-op (&lt;code&gt;old&lt;/code&gt; equals &lt;code&gt;new&lt;/code&gt;) is refused.&lt;/li&gt;
&lt;li&gt;Word-count changes are capped: at most 12 words out, 6 words in, and a net growth of 2.
Joining a split name is allowed (&lt;code&gt;React XP&lt;/code&gt; → &lt;code&gt;ReactXP&lt;/code&gt;) and needs no extra evidence.
Ordinary joins (&lt;code&gt;on to&lt;/code&gt; → &lt;code&gt;onto&lt;/code&gt;) are refused.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;&quot;seed&quot;&lt;/code&gt; or &lt;code&gt;&quot;notes&quot;&lt;/code&gt; edit has to be backed by those lists, or by one credited person’s name.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&quot;model-knowledge&quot;&lt;/code&gt; needs confidence of at least 0.9.
Below that, code may still allow it through a lane: dictionary terms at 0.6 if they sound like the original, a sounds-alike lane at 0.75, or evidence from seeds, notes, or a person credited on this episode.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The model’s answer is stored with the question.
If I only change a validation rule, the stored answer is judged again and there is no new API call.&lt;/p&gt;
&lt;h2&gt;Summarize, chapters, and topics&lt;a href=&quot;#summarize-chapters-and-topics&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Stage D is one more Gateway call per episode, after the transcript has been corrected.
The model never writes a timestamp.
It points at a numbered line of the transcript, and code reads the time off that line, so a chapter can only start where something was said.&lt;/p&gt;
&lt;p&gt;The lines are caption sentences joined into one-speaker spans of at most 30 seconds.
The call reuses &lt;code&gt;callGateway&lt;/code&gt; with a different schema name:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;await callGateway(io, config, model, plan.messages, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;episode_chapters&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;schema: CHAPTER_SCHEMA,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;maxTokens: plan.settings.maxOutputTokens &lt;/span&gt;&lt;span&gt;// 2000&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export const CHAPTER_SCHEMA = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;chapters&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;topics&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;summary&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;summary: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;chapters: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;array&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;items: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;line&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;title&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;line: { type: &lt;/span&gt;&lt;span&gt;&quot;integer&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;title: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;topics: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;array&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;items: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;object&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;additionalProperties: false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;required: [&lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;kind&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;properties: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: { type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt; },&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;kind: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span&gt;type: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span&gt;enum: [&lt;/span&gt;&lt;span&gt;&quot;person&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;technology&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;organization&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;work&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;concept&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;judgeAnswer&lt;/code&gt; keeps only what passes.
Anything else is listed with a reason and never repaired:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Chapters must point at a real line, run in time order, start at least 120 seconds apart, use a title of at most 60 characters, and not repeat a title.
At most 20 are kept.
If fewer than 3 usable chapters remain, we write none: players ignore fewer.&lt;/li&gt;
&lt;li&gt;Players want the first chapter at zero.
A first chapter that starts in the opening minute is moved there; otherwise we add an &lt;code&gt;&quot;Introduction&quot;&lt;/code&gt; chapter.&lt;/li&gt;
&lt;li&gt;Topics must be said in the episode, as whole words, any casing.
At most 15, no duplicates, and only the kinds in the schema.&lt;/li&gt;
&lt;li&gt;The summary must be 80 to 400 characters, one plain paragraph, with no markup or URLs.
A mid-sentence capitalized word is treated as a name and must appear in the transcript or the episode title.
Fail any of that and there is no summary.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As with corrections, the model’s answer is stored once per question.
Changing a spacing or count rule re-judges the stored answer for nothing.&lt;/p&gt;
&lt;h2&gt;Render the files, then go live&lt;a href=&quot;#render-the-files-then-go-live&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Stage C always re-runs and costs no API call.
It applies any pinned corrections, then writes the files other apps read from one list of sentence-level cues.&lt;/p&gt;
&lt;p&gt;The episode page is speaker turns: one paragraph per turn, as Markdown and HTML.
Caption files are sentence-level, because a three-minute monologue is useless as a single subtitle.
From those cues, &lt;code&gt;src/transcription/exporters.js&lt;/code&gt; writes three files that always agree:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.vtt&lt;/code&gt; — WebVTT with &lt;code&gt;&amp;lt;v Speaker&amp;gt;&lt;/code&gt; tags, for Apple Podcasts and browsers&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.srt&lt;/code&gt; — SubRip, as &lt;code&gt;Speaker: text&lt;/code&gt;, for YouTube and video tools&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.podcast.json&lt;/code&gt; — Podcasting 2.0 transcript JSON 1.0.0 (&lt;code&gt;speaker&lt;/code&gt;, &lt;code&gt;startTime&lt;/code&gt;, &lt;code&gt;endTime&lt;/code&gt; in seconds, &lt;code&gt;body&lt;/code&gt;), for &lt;code&gt;&amp;lt;podcast:transcript type=&quot;application/json&quot;&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Stage D adds &lt;code&gt;.chapters.json&lt;/code&gt; (Podcasting 2.0 chapters, for &lt;code&gt;&amp;lt;podcast:chapters&amp;gt;&lt;/code&gt;) and a &lt;code&gt;.chapters.txt&lt;/code&gt; of &lt;code&gt;00:00:00 Title&lt;/code&gt; lines for the description.&lt;/p&gt;
&lt;p&gt;None of that is live until we promote it.
&lt;code&gt;promote&lt;/code&gt; copies the current live row aside, then switches the live transcript, captions, speakers, chapters, topics, and summary in one statement.
&lt;code&gt;unpromote&lt;/code&gt; writes that copy back, or removes the live row if there was none before.
Neither call touches AssemblyAI.
The same render twice is skipped.&lt;/p&gt;
&lt;p&gt;That’s the pipeline: transcribe with the names we already have, name speakers only when they’re credited, let the model propose, let code decide, and ship open files.
When something is wrong, I change the inputs and run it again.&lt;/p&gt;</content:encoded><category>audio</category><category>tools</category><category>ai</category></item><item><title>Set Up T3 Code for Your Phone (Without Leaving the Door Open)</title><link>https://chan.dev/set-up-t3-code-phone-and-security</link><guid isPermaLink="true">https://chan.dev/set-up-t3-code-phone-and-security</guid><description>Set up T3 Code on Linux: let agents push through gh, reach threads from your phone with T3 Connect, and keep Network access off when you don&apos;t need it.</description><pubDate>Wed, 02 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;AI-assisted post: written by Claude from the setup we worked through together.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I run T3 Code on my Linux desktop.
Agents work in threads.
I want to check on them from my phone.&lt;/p&gt;
&lt;p&gt;Getting there took a few settings I didn’t expect.
Some of them are security settings.
Here’s all of it, in the order I’d do it again.&lt;/p&gt;
&lt;h2&gt;Initial setup&lt;a href=&quot;#initial-setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Let agents push&lt;a href=&quot;#let-agents-push&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;My repos use https remotes.
Git had no credential helper.
So every &lt;code&gt;git push&lt;/code&gt; an agent ran failed with:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;fatal: could not read Username for &apos;https://github.com&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;T3’s own “create pull request” button pushes the same way.
It failed too.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;gh&lt;/code&gt; was already logged in.
One command makes git use it:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;gh &lt;/span&gt;&lt;span&gt;auth&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;setup-git&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;It prints nothing.
That’s success.
Check it:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;git &lt;/span&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--global&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--get-regexp&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;credential&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;git &lt;/span&gt;&lt;span&gt;push&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--dry-run&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;The catch:&lt;/strong&gt; the helper is saved as an absolute path to the &lt;code&gt;gh&lt;/code&gt; binary.
I install &lt;code&gt;gh&lt;/code&gt; with mise, so that path includes a version number.
When mise upgrades &lt;code&gt;gh&lt;/code&gt; and removes the old version, pushes break again.
Re-run &lt;code&gt;gh auth setup-git&lt;/code&gt; after upgrading &lt;code&gt;gh&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Connect your accounts once&lt;a href=&quot;#connect-your-accounts-once&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Agents can’t run OAuth flows mid-task.
Connectors like Gmail and Google Calendar just show “needs authentication.”
Authorize them once in your claude.ai connector settings.&lt;/p&gt;
&lt;p&gt;The same goes for the built-in browser.
Its default profile starts signed out.
Sign in to the dashboards you want agents to use (for me, Cloudflare) once, at the desk.&lt;/p&gt;
&lt;h2&gt;Phone&lt;a href=&quot;#phone&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The phone part is simple.
Share the environment once.
Then, from my phone, I spin up new threads in that environment.&lt;/p&gt;
&lt;p&gt;They run on my desktop, in my repos, with my tools.
The phone is just where I type.&lt;/p&gt;
&lt;p&gt;Sharing lives in your environment’s &lt;strong&gt;Sharing&lt;/strong&gt; settings.
These are mine, on a desktop named &lt;code&gt;btw&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/t3-sharing-settings.CCR3U11M_Z11pdoI.webp&quot; alt=&quot;T3 Code Sharing settings: Network access on, Tailscale HTTPS off, T3 Connect on with a connected tunnel (1 of 3 in use), Publish agent activity on&quot; loading=&quot;lazy&quot; width=&quot;991&quot; height=&quot;612&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;T3 Connect&lt;/strong&gt; is the one that does it.
Turn it on and the environment shows up on your other devices, ready for new threads.
It runs a tunnel (&lt;code&gt;cloudflared&lt;/code&gt;) that connects &lt;em&gt;out&lt;/em&gt; from your machine.
Your phone reaches T3 without you opening a port.
Mine says “Tunnel connected · 4 connections · QUIC,” and I’m using 1 of 3 tunnels.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Publish agent activity&lt;/strong&gt; sends agent activity to mobile notifications and Live Activities.
The setting says it works even without T3 Connect.
Turn it on if you want your phone to buzz when an agent finishes or needs you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Network access&lt;/strong&gt; makes T3 listen on your network, not just &lt;code&gt;127.0.0.1&lt;/code&gt;.
T3 shows the LAN address it’s reachable at.
T3 Connect doesn’t need it.
More on that below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tailscale HTTPS&lt;/strong&gt; puts T3 behind a Tailscale Serve HTTPS URL on your tailnet.
I left it off.
If you want it, Tailscale has to let your user configure Serve first:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;sudo &lt;/span&gt;&lt;span&gt;tailscale&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--operator=$USER&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Security&lt;a href=&quot;#security&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here’s the part that matters.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;T3 agents run commands as you.&lt;/strong&gt;
Mine run with permission prompts bypassed.
Anyone who can reach T3 can run anything my user can.
Your phone pairing is the lock.
Treat it like an SSH key.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Open as little as you can.&lt;/strong&gt;
T3 Connect dials out.
It doesn’t need Network access or an open port.
If your phone only uses T3 Connect, turn Network access off.&lt;/p&gt;
&lt;p&gt;I’d left it on.
T3 said it was “reachable” on my LAN.
It wasn’t: my firewall (ufw) drops incoming traffic by default and has no rule for port 3773.
That’s a safety net.
I’d rather not lean on it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hand secrets over through the secret card.&lt;/strong&gt;
When an agent needs a token, a PIN or your sudo password, T3 can show a private input card.
Use that.
Don’t paste secrets into chat.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Prefer phone-friendly logins.&lt;/strong&gt;
Device-code flows work great from a phone.
&lt;code&gt;gh auth refresh -s workflow&lt;/code&gt; gave me a code, and I typed it in on my phone.&lt;/p&gt;
&lt;p&gt;Localhost redirects don’t work.
&lt;code&gt;wrangler login&lt;/code&gt; sends you to &lt;code&gt;localhost:8976&lt;/code&gt;, which your phone can’t reach.
Do those at the desk, or use a scoped API token through the secret card.&lt;/p&gt;
&lt;h2&gt;Checklist&lt;a href=&quot;#checklist&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt; &lt;code&gt;gh auth setup-git&lt;/code&gt; (re-run after upgrading &lt;code&gt;gh&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt; Authorize connectors in claude.ai&lt;/li&gt;
&lt;li&gt; Sign the built-in browser in to the dashboards you use&lt;/li&gt;
&lt;li&gt; Sharing → &lt;strong&gt;T3 Connect&lt;/strong&gt; on&lt;/li&gt;
&lt;li&gt; Sharing → &lt;strong&gt;Publish agent activity&lt;/strong&gt; on, for phone notifications&lt;/li&gt;
&lt;li&gt; Sharing → &lt;strong&gt;Network access&lt;/strong&gt; off, unless something besides T3 Connect needs it&lt;/li&gt;
&lt;li&gt; Firewall default-deny for incoming traffic&lt;/li&gt;
&lt;li&gt; Secrets through the secret card, never chat&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>tools</category><category>ai</category></item><item><title>Hold Space for OmniWM with Kanata</title><link>https://chan.dev/hold-space-for-omniwm-with-kanata</link><guid isPermaLink="true">https://chan.dev/hold-space-for-omniwm-with-kanata</guid><description>Use kanata to turn a held space bar into an OmniWM layer on macOS, keep Dvorak, and survive fast typing. Plus what broke leaving Karabiner Elements.</description><pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;AI-assisted post: written by Pi from the setup we built together in one sitting.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I use &lt;a href=&quot;https://github.com/BarutSRB/OmniWM&quot; target=&quot;_blank&quot;&gt;OmniWM&lt;/a&gt; to tile windows on my Mac.&lt;/p&gt;
&lt;p&gt;Its default leader is Option.
Option is a terrible leader.&lt;/p&gt;
&lt;p&gt;Option+arrow jumps words.
Option+Shift+arrow selects words.
Option+letter types &lt;code&gt;¡™£¢∞&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Every window shortcut was squatting on something I use while typing.&lt;/p&gt;
&lt;p&gt;So I moved the whole thing under my thumb.
Hold space, press a number, switch workspaces.&lt;/p&gt;
&lt;h2&gt;The plan&lt;a href=&quot;#the-plan&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Two layers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;OmniWM listens on a combo nobody types.&lt;/strong&gt;
&lt;code&gt;Ctrl+Opt+Cmd+key&lt;/code&gt;, with &lt;code&gt;Shift&lt;/code&gt; for the “move” variant.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A remapper turns “space held” into that combo.&lt;/strong&gt;
&lt;code&gt;Space+2&lt;/code&gt; sends &lt;code&gt;Ctrl+Opt+Cmd+2&lt;/code&gt;. &lt;code&gt;Space+Shift+2&lt;/code&gt; sends &lt;code&gt;Ctrl+Opt+Cmd+Shift+2&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;OmniWM never needs to know space is involved.
And shift keeps meaning “move,” like it did before.&lt;/p&gt;
&lt;h2&gt;Why not Karabiner&lt;a href=&quot;#why-not-karabiner&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I already had &lt;a href=&quot;https://karabiner-elements.pqrs.org/&quot; target=&quot;_blank&quot;&gt;Karabiner Elements&lt;/a&gt; running my Dvorak layout.
It can do a space layer.
It can’t do it well.&lt;/p&gt;
&lt;p&gt;The problem is rolls.
Type &lt;code&gt;in 2024&lt;/code&gt; fast and your thumb is still on space when you hit &lt;code&gt;2&lt;/code&gt;.
Karabiner sees “space held + 2” and switches workspaces.
Or it loses the space.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/jtroo/kanata&quot; target=&quot;_blank&quot;&gt;kanata&lt;/a&gt; has primitives built for this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;tap-hold-release&lt;/code&gt; only commits to “hold” when another key is pressed &lt;em&gt;and released&lt;/em&gt; while space is down.
A roll releases space first, so it stays a space.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;require-prior-idle&lt;/code&gt; says “if I typed anything in the last N ms, this is a tap. Don’t even think about it.”&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That’s the whole reason I switched.&lt;/p&gt;
&lt;h2&gt;Moving Dvorak too&lt;a href=&quot;#moving-dvorak-too&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I forgot Karabiner was running my Dvorak mapping.&lt;/p&gt;
&lt;p&gt;That’s fine.
kanata does it the same way: the macOS input source stays “U.S.” and the base layer &lt;em&gt;is&lt;/em&gt; Dvorak.
&lt;code&gt;defsrc&lt;/code&gt; is physical (QWERTY) positions. &lt;code&gt;deflayer base&lt;/code&gt; is what they type.&lt;/p&gt;
&lt;p&gt;The scary part is the handoff.
If kanata isn’t running, I’m typing QWERTY.
So the switch script checks the config, starts kanata, and rolls back to Karabiner on its own if kanata doesn’t come up.&lt;/p&gt;
&lt;p&gt;It needed that rollback on the first run.&lt;/p&gt;
&lt;h2&gt;The config&lt;a href=&quot;#the-config&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;(defcfg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;process-unmapped-keys yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;(defsrc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;esc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;grv  1    2    3    4    5    6    7    8    9    0    -    =    bspc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;tab  q    w    e    r    t    y    u    i    o    p    [    ]    \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;caps a    s    d    f    g    h    j    k    l    &lt;/span&gt;&lt;span&gt;;    &apos;    ret&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lsft z    x    c    v    b    n    m    ,    .    /    rsft&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lctl lalt lmet           spc            rmet ralt&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;left down up   rght home end&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;(defalias&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;;; tap = space, hold = nav. Typed anything in the last 150ms? Always space.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;spcth (tap-hold-release 0 300 spc (layer-while-held nav) (require-prior-idle 150))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;;; tap space, then press-and-hold it = hold Cmd+Tab&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ctab (tap-hold-press 0 150 spc (multi lmet (macro tab)) (require-prior-idle 0))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;spc  (switch&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;((and (key-history spc 1) (key-timing 1 lt 250))) @ctab break&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;() @spcth break)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;;; Dvorak &quot;-&quot; key: tap = hyphen, hold = control&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;quo  (tap-hold-release 200 300 - lctl (require-prior-idle 150))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;w1 C-A-M-1  w2 C-A-M-2  w3 C-A-M-3  w4 C-A-M-4  w5 C-A-M-5&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;w6 C-A-M-6  w7 C-A-M-7  w8 C-A-M-8  w9 C-A-M-9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;wl C-A-M-left  wd C-A-M-down  wu C-A-M-up  wr C-A-M-rght&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;wtab C-A-M-tab  wret C-A-M-ret  wgrv C-A-M-grv&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;whom C-A-M-home  wend C-A-M-end&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;wt C-A-M-t  wdot C-A-M-.  wcom C-A-M-,  wmin C-A-M--  weq C-A-M-=&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;wf C-A-M-f  wb C-A-M-b  wr2 C-A-M-r  wl2 C-A-M-l  wo C-A-M-o&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;;; Dvorak&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;(deflayer base&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;esc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;grv  1    2    3    4    5    6    7    8    9    0    [    ]    bspc&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;tab  &apos;    ,    .    p    y    f    g    c    r    l    /    =    \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lctl a    o    e    u    i    d    h    t    n    s    @quo ret&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lsft &lt;/span&gt;&lt;span&gt;;    q    j    k    x    b    m    w    v    z    rsft&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lctl lalt lmet           @spc           rmet ralt&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;left down up   rght home end&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;;; Space held. Esc reloads this file.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;(deflayer nav&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;lrld&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;@wgrv @w1  @w2  @w3  @w4  @w5  @w6  @w7  @w8  @w9  _    _    _    _&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;@wtab _    @wcom @wdot _   _    @wf  _    _    @wr2 @wl2 _    @weq _&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;_    _    @wo  _    _    _    _    _    @wt  _    _    @wmin @wret&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;_    _    _    _    _    _    @wb  _    _    _    _    _&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;_    _    _              _              _    _&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;@wl  @wd  @wu  @wr  @whom @wend&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Letters in the nav layer are placed by the Dvorak letter they type.
OmniWM’s old &lt;code&gt;Option+T&lt;/code&gt; is now &lt;code&gt;Space+T&lt;/code&gt;, wherever T lives.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Space+Esc&lt;/code&gt; is &lt;code&gt;lrld&lt;/code&gt;: live reload.
kanata runs as root, so restarting it means &lt;code&gt;sudo&lt;/code&gt;.
Reloading from the keyboard doesn’t.&lt;/p&gt;
&lt;h2&gt;OmniWM&lt;a href=&quot;#omniwm&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;OmniWM’s settings are TOML.
I swapped every plain &lt;code&gt;Option&lt;/code&gt; binding in one pass:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;sed &lt;/span&gt;&lt;span&gt;-i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-E&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;s/^binding = &quot;Option\+Shift\+/binding = &quot;Control+Option+Command+Shift+/&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;s/^binding = &quot;Option\+/binding = &quot;Control+Option+Command+/&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;~/.config/omniwm/settings.toml&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;OmniWM watches that file.
No restart.&lt;/p&gt;
&lt;h2&gt;What bit me&lt;a href=&quot;#what-bit-me&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Homebrew’s kanata didn’t work.&lt;/strong&gt;
Karabiner Elements 16 ships VirtualHIDDevice 8.x.
kanata 1.12 (Homebrew) speaks the old protocol.
You need 1.13, which was a prerelease.
My install script downloads it directly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Keep Karabiner Elements installed.&lt;/strong&gt;
kanata talks to Karabiner’s virtual keyboard daemon.
Karabiner Elements runs that daemon.
I just told Karabiner to ignore every device, so it stops grabbing the keyboard.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;There are two permissions.&lt;/strong&gt;
Input Monitoring &lt;em&gt;and&lt;/em&gt; Accessibility, both for &lt;code&gt;/usr/local/bin/kanata&lt;/code&gt;.
I granted the first, missed the second, and kanata exited.
The auto-rollback put me back on Karabiner.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tap/hold on Command is slow.&lt;/strong&gt;
I had left Command tap to backspace and right Command tap to enter.
With &lt;code&gt;tap-hold-release&lt;/code&gt;, Command doesn’t engage until you &lt;em&gt;release&lt;/em&gt; the next key.
&lt;code&gt;Cmd+C&lt;/code&gt; fires on the C release.
&lt;code&gt;tap-hold-press&lt;/code&gt; fixes that, but brings back accidental &lt;code&gt;Cmd+letter&lt;/code&gt; when you roll off backspace.&lt;/p&gt;
&lt;p&gt;I deleted them.
They weren’t worth it.&lt;/p&gt;
&lt;h2&gt;What I dropped&lt;a href=&quot;#what-i-dropped&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Command tap-to-backspace/enter. Slow or misfiring. Gone.&lt;/li&gt;
&lt;li&gt;My Meh key and app launcher on left Control. Back to plain Control.&lt;/li&gt;
&lt;li&gt;Mouse button 6 → Enter. kanata can’t see that button on macOS.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The keyboard does less now.
What’s left I actually use.&lt;/p&gt;
&lt;h2&gt;Tuning&lt;a href=&quot;#tuning&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Two numbers decide how this feels:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;300&lt;/code&gt; — how long space must be held alone to become the layer.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;150&lt;/code&gt; — the “you were just typing” window.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If space misfires while typing, raise the second.
If the layer feels sluggish, lower the first.&lt;/p&gt;</content:encoded><category>tools</category><category>mac</category></item><item><title>Story intros</title><link>https://chan.dev/story-intros</link><guid isPermaLink="true">https://chan.dev/story-intros</guid><description>Phrases for opening a story or a hook.</description><pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;These are phrases I use to open a story. I add new ones as I find them.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;“I’m told”&lt;/li&gt;
&lt;li&gt;“It’s said”&lt;/li&gt;
&lt;li&gt;“Have you ever”&lt;/li&gt;
&lt;li&gt;“Have I told you”&lt;/li&gt;
&lt;li&gt;“What if I said”&lt;/li&gt;
&lt;li&gt;“Did you know”&lt;/li&gt;
&lt;li&gt;“Picture this”&lt;/li&gt;
&lt;li&gt;“Here’s the thing”&lt;/li&gt;
&lt;li&gt;“Funny story”&lt;/li&gt;
&lt;li&gt;“Legend has it”&lt;/li&gt;
&lt;li&gt;“You won’t believe this”&lt;/li&gt;
&lt;li&gt;“So there I was”&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>speaking</category><category>content</category></item><item><title>Shared Auth, Local Decisions</title><link>https://chan.dev/shared-auth-local-decisions</link><guid isPermaLink="true">https://chan.dev/shared-auth-local-decisions</guid><description>How I&apos;m sharing WorkOS authentication across chan.dev, SvelteKit apps, and an agent service with Cloudflare bindings—without giving every app its own auth implementation.</description><pubDate>Sun, 13 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;AI-written based on my architecture decisions and implementation audit. Technical references checked in September 2026.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I wanted to upload a video to YouTube.&lt;/p&gt;
&lt;p&gt;That became a new subdomain. Which became a conversation about authentication. Which became a conversation about what I meant by “shared.”&lt;/p&gt;
&lt;p&gt;Same account? Same WorkOS application? Same browser session? Same implementation?&lt;/p&gt;
&lt;p&gt;Yes. But those are different things.&lt;/p&gt;
&lt;p&gt;I already had an Astro site at &lt;code&gt;chan.dev&lt;/code&gt;, an agent-driven captioning service at &lt;code&gt;captioner.chan.dev&lt;/code&gt;, and plans for &lt;code&gt;social.chan.dev&lt;/code&gt;. I wanted to add services without adding another copy of login, callbacks, cookies, and token refresh every time.&lt;/p&gt;
&lt;p&gt;Here’s where we landed:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Auth owns identity mechanics. Each service owns its decisions.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;One WorkOS application—to start&lt;a href=&quot;#one-workos-applicationto-start&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Our WorkOS hierarchy is:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chantastic                  Team&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;└── chan.dev                Project&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;├── Staging             Local development&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;└── Production          Public services&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;├── Web             Browser and Captioner application&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;└── Devices         Device application&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;WorkOS &lt;a href=&quot;https://workos.com/docs/authkit/projects&quot; target=&quot;_blank&quot;&gt;Projects&lt;/a&gt; group environments. &lt;a href=&quot;https://workos.com/docs/authkit/environments&quot; target=&quot;_blank&quot;&gt;Environments&lt;/a&gt; separate identity data and configuration. &lt;a href=&quot;https://workos.com/docs/authkit/applications&quot; target=&quot;_blank&quot;&gt;Applications&lt;/a&gt; let clients within an environment share users and organizations while maintaining their own client IDs and application configuration.&lt;/p&gt;
&lt;p&gt;These aren’t the same boundaries as a repository, framework, or hostname.&lt;/p&gt;
&lt;p&gt;I initially thought about Applications as “web,” “agents,” and maybe “ESP32.” We started with one Production application, named &lt;code&gt;Web&lt;/code&gt;, for the browser services and Captioner. The name doesn’t prohibit an agent-facing service.&lt;/p&gt;
&lt;p&gt;Since then, Devices has given us a reason to split: it uses a separate application for device bearer sessions, while sharing the same Production identity environment. Auth validates those sessions through a private &lt;code&gt;DevicesIdentity&lt;/code&gt; entrypoint.&lt;/p&gt;
&lt;p&gt;We can add another Application when a client needs its own authentication configuration or session policy. Doing that later preserves the environment’s identity records, but still requires a deliberate transition for client-specific configuration and credentials.&lt;/p&gt;
&lt;p&gt;Our deployment rule is simple: anything on a public domain uses Production. Local development uses explicitly configured Staging credentials. That’s our policy, not a WorkOS requirement that every publicly reachable preview must be Production.&lt;/p&gt;
&lt;h2&gt;A domain is an address. A Worker is a component.&lt;a href=&quot;#a-domain-is-an-address-a-worker-is-a-component&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;auth.chan.dev&lt;/code&gt; is the public front door to our identity service. It isn’t the name of every underlying capability.&lt;/p&gt;
&lt;p&gt;The implementation has two Auth-owned Workers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;chan-identity-web&lt;/code&gt;: the SvelteKit site, browser authentication, and private browser- and device-identity entrypoints.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chan-identity&lt;/code&gt;: private credential validation and workspace provisioning. No public domain or &lt;code&gt;workers.dev&lt;/code&gt; endpoint.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chan stays Astro. Auth and Social use SvelteKit. Captioner keeps its agent-facing API.&lt;/p&gt;
&lt;p&gt;Auth, Social, and Devices now share a private monorepo. They still deploy as independent Workers. Sharing a repository hasn’t merged their runtime permissions.&lt;/p&gt;
&lt;pre&gt;flowchart TD
    Chan[&quot;chan.dev · Astro&quot;] --&amp;gt;|&quot;BrowserIdentity binding&quot;| Auth[&quot;auth.chan.dev · SvelteKit&quot;]
    Social[&quot;social.chan.dev · SvelteKit&quot;] --&amp;gt;|&quot;BrowserIdentity binding&quot;| Auth
    Captioner[&quot;captioner.chan.dev · Agent API&quot;] --&amp;gt;|&quot;CaptionerIdentity binding&quot;| Identity[&quot;chan-identity · Private Worker&quot;]
    Auth --&amp;gt;|&quot;WorkspaceProvisioning binding&quot;| Identity
    Devices[&quot;devices.chan.dev · Device API&quot;] --&amp;gt;|&quot;DevicesIdentity binding&quot;| Auth
    Auth --&amp;gt;|&quot;Browser authentication · Web&quot;| WorkOS[&quot;WorkOS · Production&quot;]
    Auth --&amp;gt;|&quot;Device bearer validation · Devices&quot;| WorkOS
    Identity --&amp;gt;|&quot;Credentials and memberships&quot;| WorkOS
&lt;/pre&gt;
&lt;p&gt;The arrows between Workers are &lt;a href=&quot;https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/&quot; target=&quot;_blank&quot;&gt;Cloudflare service bindings&lt;/a&gt;, not browser requests to public identity endpoints.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;https://developers.cloudflare.com/workers/configuration/routing/custom-domains/&quot; target=&quot;_blank&quot;&gt;Custom Domain&lt;/a&gt; gives people a public address. A binding gives another Worker an explicit connection to a service. Those can evolve independently.&lt;/p&gt;
&lt;p&gt;For example, this is the relevant excerpt from Social’s configuration:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;services&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;binding&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;AUTH&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;service&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;chan-identity-web&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;entrypoint&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;BrowserIdentity&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We use a named &lt;a href=&quot;https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/&quot; target=&quot;_blank&quot;&gt;WorkerEntrypoint&lt;/a&gt; with a small &lt;code&gt;fetch(Request)&lt;/code&gt; contract. Cloudflare’s &lt;a href=&quot;https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/http/&quot; target=&quot;_blank&quot;&gt;HTTP binding interface&lt;/a&gt; lets that contract use standard requests and responses.&lt;/p&gt;
&lt;p&gt;Social doesn’t need a WorkOS API key or the password that seals browser sessions. It needs this binding.&lt;/p&gt;
&lt;h2&gt;Same application does not mean same session&lt;a href=&quot;#same-application-does-not-mean-same-session&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Pointing two apps at the same WorkOS application doesn’t make one app’s cookie appear on the other.&lt;/p&gt;
&lt;p&gt;We explicitly share a sealed browser-session cookie:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Name:     __Secure-chan-web-session&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Domain:   chan.dev&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Path:     /&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Secure:   true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;HttpOnly: true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;SameSite: Lax&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The &lt;code&gt;Domain&lt;/code&gt; attribute makes the cookie eligible for requests to the parent domain and its subdomains. &lt;code&gt;HttpOnly&lt;/code&gt; prevents page JavaScript from reading it. &lt;code&gt;Secure&lt;/code&gt; restricts its transmission to HTTPS. Those attributes have different jobs. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie&quot; target=&quot;_blank&quot;&gt;Cookie reference&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only Auth holds the sealing password and runs the browser SDK. Chan and Social forward the selected cookie over their binding; they don’t decrypt it.&lt;/p&gt;
&lt;p&gt;That gives us two paths.&lt;/p&gt;
&lt;p&gt;When someone needs to sign in:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The service sends them to Auth with a fixed service destination.&lt;/li&gt;
&lt;li&gt;Auth starts the WorkOS flow and creates the SDK’s PKCE/state data.&lt;/li&gt;
&lt;li&gt;WorkOS returns to &lt;code&gt;https://auth.chan.dev/auth/callback&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Auth completes authentication, sets the shared cookie, and returns them to the service.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;When someone already has a usable shared session:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Their browser sends the cookie to Chan or Social.&lt;/li&gt;
&lt;li&gt;That Worker asks Auth to validate the session.&lt;/li&gt;
&lt;li&gt;Auth returns a small user profile and any replacement session cookie.&lt;/li&gt;
&lt;li&gt;The service applies its own access policy and returns the response.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;No second login ceremony. Still a validation step.&lt;/p&gt;
&lt;p&gt;WorkOS’s &lt;a href=&quot;https://github.com/workos/authkit-sveltekit&quot; target=&quot;_blank&quot;&gt;SvelteKit SDK&lt;/a&gt; owns the OAuth and session implementation. Our code composes it at Auth and projects a smaller contract to the other applications.&lt;/p&gt;
&lt;h2&gt;Share identity, not tokens&lt;a href=&quot;#share-identity-not-tokens&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The browser binding returns a limited profile: user ID, email, verification status, and names. It can also return the session’s organization ID when one is present.&lt;/p&gt;
&lt;p&gt;It does not return access tokens or refresh tokens in JSON.&lt;/p&gt;
&lt;p&gt;Chan uses that identity for its dashboard. Social requires a verified email. A future publishing feature can require a specific permission or connected channel.&lt;/p&gt;
&lt;p&gt;Those are different decisions, made by different services.&lt;/p&gt;

























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Auth owns&lt;/th&gt;&lt;th&gt;The service owns&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Authenticate the browser session&lt;/td&gt;&lt;td&gt;Decide which routes require authentication&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Refresh and clear session credentials&lt;/td&gt;&lt;td&gt;Decide which authenticated users may enter&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Validate an agent credential and its identity context&lt;/td&gt;&lt;td&gt;Check the service’s grants and scopes&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Reconcile a personal workspace&lt;/td&gt;&lt;td&gt;Enforce ownership of files, jobs, and connections&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The consumers still have framework glue. Astro middleware and SvelteKit hooks aren’t interchangeable. They both need to validate the binding response and pass cookies back to the browser.&lt;/p&gt;
&lt;p&gt;What they no longer have is their own OAuth exchange, token refresh, or session cryptography.&lt;/p&gt;
&lt;p&gt;That distinction lets me keep the framework I want at each edge.&lt;/p&gt;
&lt;h2&gt;Shared cookies are a shared trust decision&lt;a href=&quot;#shared-cookies-are-a-shared-trust-decision&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;There is a cost to the convenience.&lt;/p&gt;
&lt;p&gt;Every matching subdomain can receive the bearer cookie—even a service that doesn’t use the identity binding. A compromised sibling server could replay the encrypted cookie without knowing how to decrypt it.&lt;/p&gt;
&lt;p&gt;Centralizing the sealing password reduces secret distribution. It doesn’t make sibling hosts isolated from each other.&lt;/p&gt;
&lt;p&gt;I’m choosing this for a collection of first-party services I control. Untrusted customer sites would need a different domain and session boundary.&lt;/p&gt;
&lt;p&gt;There is also a browser distinction worth keeping: sibling subdomains can be same-site while still being different origins. &lt;code&gt;SameSite=Lax&lt;/code&gt; is not permission to accept every sibling’s form submission. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie&quot; target=&quot;_blank&quot;&gt;Cookie behavior&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Our sign-out buttons submit a same-origin POST. The edge checks the original Origin, then delegates logout privately. Auth clears the shared cookie and directs the browser through WorkOS session logout. We kept the framework’s &lt;a href=&quot;https://svelte.dev/docs/kit/configuration#csrf&quot; target=&quot;_blank&quot;&gt;CSRF protections&lt;/a&gt; enabled.&lt;/p&gt;
&lt;p&gt;That signs out the shared browser session in that profile. It doesn’t revoke an agent’s API key or disconnect YouTube. Those are separate actions. &lt;a href=&quot;https://workos.com/docs/authkit/sessions&quot; target=&quot;_blank&quot;&gt;WorkOS sessions&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Agents share identity, not browser cookies&lt;a href=&quot;#agents-share-identity-not-browser-cookies&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Captioner is the useful test here. Its primary interface is an agent flow.&lt;/p&gt;
&lt;p&gt;The agent uses a bearer credential. Captioner delegates credential mechanics to the private &lt;code&gt;CaptionerIdentity&lt;/code&gt; entrypoint, then checks its own stored grant, organization context, and requested scope.&lt;/p&gt;
&lt;p&gt;A credential being valid in WorkOS is not enough to grant access to Captioner.&lt;/p&gt;
&lt;p&gt;We kept the existing user-claimed email/code flow during extraction. Native WorkOS &lt;a href=&quot;https://workos.com/docs/authkit/agent-registration&quot; target=&quot;_blank&quot;&gt;Agent Registration&lt;/a&gt; is a future option; it is not enabled in this deployment.&lt;/p&gt;
&lt;p&gt;This also answers my earlier “web versus agents” question. A service can offer both interfaces and normalize them into the identity information it needs for authorization. It doesn’t need to pretend an API key is a browser session.&lt;/p&gt;
&lt;p&gt;Nor does it need a new WorkOS Application just because a request came from an agent.&lt;/p&gt;
&lt;h2&gt;Personal workspaces: readable names, stable identity&lt;a href=&quot;#personal-workspaces-readable-names-stable-identity&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Captioner exposed another shared need: a place for a person’s organization-scoped credentials and membership.&lt;/p&gt;
&lt;p&gt;Our answer is a personal workspace represented by a WorkOS organization. A &lt;a href=&quot;https://workos.com/docs/authkit/users-organizations&quot; target=&quot;_blank&quot;&gt;WorkOS organization&lt;/a&gt; is an application identity construct—not the WorkOS Project that contains our environments.&lt;/p&gt;
&lt;p&gt;The original generated names were derived from escaped email addresses. Useful for uniqueness. Terrible to look at.&lt;/p&gt;
&lt;p&gt;We’ve separated the machine identifier from the display name:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;External ID: personal:&amp;lt;WorkOS user ID&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Name:        Chan&apos;s personal workspace&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;That’s an illustrative new-record shape. Existing organization IDs, external IDs, and custom names are preserved. Recognized generated names can be replaced with something readable without recreating the organization or breaking its keys.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://workos.com/docs/authkit/metadata&quot; target=&quot;_blank&quot;&gt;External IDs&lt;/a&gt; provide the stable lookup identity. A display name doesn’t have to carry that responsibility.&lt;/p&gt;
&lt;p&gt;WorkOS now supports &lt;a href=&quot;https://workos.com/docs/authkit/api-keys&quot; target=&quot;_blank&quot;&gt;user-owned API keys&lt;/a&gt;. They still require an organization and active membership, so they don’t eliminate the personal workspace. They may improve credential ownership when we deliberately adopt them; our existing Captioner keys haven’t been automatically converted. &lt;a href=&quot;https://workos.com/docs/reference/authkit/api-keys/create-for-user&quot; target=&quot;_blank&quot;&gt;Create a user API key&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Invert the dependency before extracting the package&lt;a href=&quot;#invert-the-dependency-before-extracting-the-package&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I wanted the provisioning module to be usable outside this repository later.&lt;/p&gt;
&lt;p&gt;So the provisioning core doesn’t import WorkOS, Cloudflare, SvelteKit, or environment variables. It receives a directory interface that can find users, find or create workspaces, and inspect or create memberships.&lt;/p&gt;
&lt;p&gt;The composition looks like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// workos is the configured server SDK; userId is a trusted identity.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let directory = workosDirectory(workos)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let provisioner = createProvisioner(directory)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Preview the required changes. No writes.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let result = await provisioner.ensurePersonalWorkspace(userId, true)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The same core runs behind the private Worker entrypoint and the administrative repair script. Tests supply an in-memory directory.&lt;/p&gt;
&lt;p&gt;The core knows the provisioning policy. The adapter knows how to talk to WorkOS. The Worker knows how to expose a bounded private capability.&lt;/p&gt;
&lt;p&gt;This is the part I wanted to extract cleanly—not every framework’s request lifecycle.&lt;/p&gt;
&lt;p&gt;It follows the same preference I wrote about in &lt;a href=&quot;https://chan.dev/abstract-more-better&quot; target=&quot;_blank&quot;&gt;Abstract more, better&lt;/a&gt;: keep the individual problems separable so their compositions can change.&lt;/p&gt;
&lt;h2&gt;Idempotent doesn’t mean “undo the administrator”&lt;a href=&quot;#idempotent-doesnt-mean-undo-the-administrator&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Provisioning is reconciliation: inspect what’s there, identify permitted repairs, and converge on the expected state.&lt;/p&gt;
&lt;p&gt;It runs on Auth’s authenticated landing page and explicitly allowlisted continuation routes. There, reconciliation is best-effort: a provisioning failure doesn’t block successful browser sign-in. Captioner’s claim flow can invoke the same core. Ordinary browser-session lookups don’t provision a workspace on every request.&lt;/p&gt;
&lt;p&gt;This is first-use repair, not a guarantee that every account is provisioned at creation. We haven’t added an account-created event consumer.&lt;/p&gt;
&lt;p&gt;The membership details matter. WorkOS’s &lt;a href=&quot;https://workos.com/docs/reference/authkit/organization-membership/list&quot; target=&quot;_blank&quot;&gt;membership list&lt;/a&gt; defaults to active memberships. We explicitly include inactive and pending records when deciding whether a record already exists.&lt;/p&gt;
&lt;p&gt;Otherwise, “ensure this exists” can confuse “inactive” with “missing.”&lt;/p&gt;
&lt;p&gt;Inactive or ambiguous records require review. Intentional deletion still needs an explicit policy: a deleted membership can look exactly like one that was never created. Repeated repair should not silently reverse offboarding.&lt;/p&gt;
&lt;p&gt;If we add lifecycle synchronization, it can call this same core. WorkOS’s &lt;a href=&quot;https://workos.com/docs/events/data-syncing&quot; target=&quot;_blank&quot;&gt;Events API guidance&lt;/a&gt; provides a basis for ordered, replayable processing. We still have to define which events authorize which repairs.&lt;/p&gt;
&lt;p&gt;One more distinction: creating a personal workspace doesn’t automatically select it in an existing browser session. Future organization-scoped features must choose that context deliberately.&lt;/p&gt;
&lt;h2&gt;Centralize the boring failure cases, too&lt;a href=&quot;#centralize-the-boring-failure-cases-too&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The happy path is only part of what we extracted.&lt;/p&gt;
&lt;p&gt;Our browser adapters bound response size and wait time, forward only approved cookies, reject unexpected redirects, and return an unavailable response if identity cannot be established. Private, identity-dependent responses aren’t cacheable; public content doesn’t become dependent on Auth just because the dashboard uses it.&lt;/p&gt;
&lt;p&gt;Refresh behavior deserved its own tests. A temporary provider failure is different from a terminal &lt;code&gt;invalid_grant&lt;/code&gt;. WorkOS documents that distinction in &lt;a href=&quot;https://workos.com/docs/authkit/session-resilience&quot; target=&quot;_blank&quot;&gt;Session resilience&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Our runtime tests also caught failure-handling issues in the SvelteKit SDK version we deployed, &lt;code&gt;0.3.0&lt;/code&gt;. A narrow, guarded compatibility correction addresses them until a verified upstream release does. The official SDK still handles authentication and cryptography.&lt;/p&gt;
&lt;p&gt;The architecture benefit is that we address that behavior at Auth. We don’t patch three different session implementations.&lt;/p&gt;
&lt;h2&gt;What this architecture leaves at the edges&lt;a href=&quot;#what-this-architecture-leaves-at-the-edges&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Social is still an authenticated stub. Uploading, editing metadata, connecting a channel, and publishing come next.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://workos.com/docs/pipes&quot; target=&quot;_blank&quot;&gt;WorkOS Pipes&lt;/a&gt; can manage provider connections and refreshed credentials. Signing into my service still doesn’t authorize it to publish to someone’s YouTube channel.&lt;/p&gt;
&lt;p&gt;Social will own that workflow and its grants. We’ll explicitly choose user versus user-and-organization connection scope. &lt;a href=&quot;https://workos.com/docs/pipes/relay&quot; target=&quot;_blank&quot;&gt;Pipes Relay&lt;/a&gt; has transport limits, so it isn’t something to assume can carry an entire video upload.&lt;/p&gt;
&lt;p&gt;Likewise, shared authentication doesn’t complete resource authorization. Each service still needs explicit ownership rules for its resources, including a migration policy for data created before those rules existed.&lt;/p&gt;
&lt;p&gt;Other remaining work includes offboarding, recovery when credential issuance is interrupted, and deciding when sensitive operations need &lt;a href=&quot;https://workos.com/docs/authkit/reauthentication&quot; target=&quot;_blank&quot;&gt;fresh authentication&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Those are boundaries to implement, not capabilities we get from adding a subdomain.&lt;/p&gt;
&lt;h2&gt;Build at the edges. Extract what repeats.&lt;a href=&quot;#build-at-the-edges-extract-what-repeats&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I want new services to teach me what the shared service needs to become.&lt;/p&gt;
&lt;p&gt;Build the feature where it’s needed. Find the repeated identity requirement. Give it a narrow interface. Move that capability into Auth.&lt;/p&gt;
&lt;p&gt;Leave the service’s decisions with the service.&lt;/p&gt;
&lt;p&gt;Today, that means one Production identity environment, one browser-auth implementation, private identity capabilities, and independently evolving applications.&lt;/p&gt;
&lt;p&gt;The public contracts are available in &lt;a href=&quot;https://chan.dev/auth.md&quot; target=&quot;_blank&quot;&gt;Chan’s auth.md&lt;/a&gt;, &lt;a href=&quot;https://auth.chan.dev/auth.md&quot; target=&quot;_blank&quot;&gt;Auth’s auth.md&lt;/a&gt;, &lt;a href=&quot;https://social.chan.dev/auth.md&quot; target=&quot;_blank&quot;&gt;Social’s auth.md&lt;/a&gt;, and &lt;a href=&quot;https://captioner.chan.dev/auth.md&quot; target=&quot;_blank&quot;&gt;Captioner’s auth.md&lt;/a&gt;. The supporting platform documentation is linked throughout and collected below.&lt;/p&gt;</content:encoded><category>auth</category><category>workos</category><category>cloudflare</category><category>architecture</category></item><item><title>Test USB-C Cable Power on macOS</title><link>https://chan.dev/test-usb-c-cable-power-on-macos</link><guid isPermaLink="true">https://chan.dev/test-usb-c-cable-power-on-macos</guid><description>Test USB-C cable power negotiation on macOS with system_profiler, inspect voltage and current with ioreg, then verify sustained draw with FFmpeg.</description><pubDate>Sat, 15 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;This post was written by AI after helping me test a pile of USB-C cables.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;USB-C cables all look the same.
They absolutely do not work the same.&lt;/p&gt;
&lt;p&gt;I had a pile of mystery cables, a 140 W charger with a power draw display, and a MacBook Pro that can consume about 91 W.&lt;/p&gt;
&lt;p&gt;Of the seven cables I tested, five negotiated 60 W.&lt;br /&gt;
Two negotiated 100 W and pulled 90 W from the charger under load.&lt;/p&gt;
&lt;p&gt;Here’s how I tested them.&lt;/p&gt;
&lt;h2&gt;Check power negotiation&lt;a href=&quot;#check-power-negotiation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Connect the charger directly to your Mac with the cable you want to test.
Wait a few seconds, then run:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;system_profiler &lt;/span&gt;&lt;span&gt;SPPowerDataType&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;grep &lt;/span&gt;&lt;span&gt;-A&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;7&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;AC Charger Information:&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;You’ll get something like:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;AC Charger Information:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Connected: Yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ID: 0x0000&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Wattage (W): 100&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Family: 0xe000400a&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Charging: No&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;Wattage (W)&lt;/code&gt; is the important line.&lt;/p&gt;
&lt;p&gt;If you only want the number:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;system_profiler &lt;/span&gt;&lt;span&gt;SPPowerDataType&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;awk &lt;/span&gt;&lt;span&gt;&apos;/Wattage \(W\):/ { print $3 &quot; W&quot;; exit }&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;That prints:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;100 W&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This is the negotiated ceiling macOS reports for the connection.
It is not live power consumption.&lt;/p&gt;
&lt;h2&gt;Inspect voltage and current&lt;a href=&quot;#inspect-voltage-and-current&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For the messier details:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ioreg &lt;/span&gt;&lt;span&gt;-r&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-c&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;AppleSmartBattery&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-w0&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;grep &lt;/span&gt;&lt;span&gt;-m1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;&quot;AdapterDetails&quot;&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;A 100 W cable in my test reported:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&quot;AdapterVoltage&quot;=20000,&quot;Watts&quot;=100,&quot;Current&quot;=5000&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The voltage and current values are millivolts and milliamps.
So that’s 20 V × 5 A — 100 W.&lt;/p&gt;
&lt;p&gt;A 60 W cable reported:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&quot;AdapterVoltage&quot;=20000,&quot;Watts&quot;=60,&quot;Current&quot;=3000&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;20 V × 3 A — 60 W.&lt;/p&gt;
&lt;p&gt;That 3 A limit usually means the cable or another part of the connection does not support 5 A power delivery.
A properly identified 5 A cable is required for more than 60 W at 20 V.&lt;/p&gt;
&lt;h2&gt;Test sustained power draw&lt;a href=&quot;#test-sustained-power-draw&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Negotiation tells you what the connection allows.
It does not prove the cable can sustain it.&lt;/p&gt;
&lt;p&gt;My charger has a wattage display, so I used FFmpeg to keep the Mac’s CPU busy and watched the number on the charger.
An external USB-C power meter works too.&lt;/p&gt;
&lt;p&gt;Install FFmpeg if you don’t have it:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;brew &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ffmpeg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Then run this bounded, two-minute load:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pids=()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cleanup() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;trap &lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;EXIT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;INT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;TERM&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;kill &lt;/span&gt;&lt;span&gt;&quot;${pids[@]}&quot;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;wait &lt;/span&gt;&lt;span&gt;&quot;${pids[@]}&quot;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;trap &lt;/span&gt;&lt;span&gt;cleanup&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;EXIT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;INT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;TERM&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;for n in &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;2&lt;/span&gt;&lt;span&gt;; do&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ffmpeg &lt;/span&gt;&lt;span&gt;-hide_banner&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-loglevel&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-f&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;lavfi&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-i&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;testsrc2=size=3840x2160:rate=60&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-vf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;noise=alls=35:allf=t+u&apos;&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-c:v&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;libx265&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-preset&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;medium&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;-f&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;null&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt; \&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; 2&amp;gt;&amp;amp;1 &amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;pids+=($!)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;done&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;echo &lt;/span&gt;&lt;span&gt;&apos;Load started. Watch the charger display.&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;sleep &lt;/span&gt;&lt;span&gt;120&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The two software encodes used roughly 12–13 of my Mac’s 14 CPU cores.
My known-good cables brought the charger display to 90 W.&lt;/p&gt;
&lt;p&gt;Press &lt;kbd&gt;Control&lt;/kbd&gt;+&lt;kbd&gt;C&lt;/kbd&gt; to stop early.
The cleanup function kills both FFmpeg processes either way.&lt;/p&gt;
&lt;p&gt;Keep the Mac ventilated.
macOS manages its own thermal limits, but don’t make that job harder.&lt;/p&gt;
&lt;h2&gt;What this test does not prove&lt;a href=&quot;#what-this-test-does-not-prove&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is a useful sorting test.
It is not cable certification.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;system_profiler&lt;/code&gt; reports the negotiated ceiling, not live draw.&lt;/li&gt;
&lt;li&gt;The result covers the entire charger → cable → Mac path. A dock, hub, charger, port, or cable can set the limit.&lt;/li&gt;
&lt;li&gt;A 100 W result proves this setup negotiated 100 W. It does not prove the cable supports 140 W.&lt;/li&gt;
&lt;li&gt;Your Mac cannot test beyond its own input limit. Mine can consume about 91 W, even though the charger can provide 140 W.&lt;/li&gt;
&lt;li&gt;A 140 W USB PD EPR connection uses a higher-voltage profile. You need a compatible charger, cable, and load to verify it.&lt;/li&gt;
&lt;li&gt;Negotiation does not prove sustained delivery. That’s why I added the load test and watched the charger display.&lt;/li&gt;
&lt;li&gt;Battery level, charging optimization, temperature, display brightness, and workload all affect live consumption.&lt;/li&gt;
&lt;li&gt;This says nothing about data speed. A cable can charge at 100 W and still transfer data at USB 2.0 speeds.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ioreg&lt;/code&gt; is an undocumented macOS interface. Its output can change. Prefer &lt;code&gt;system_profiler&lt;/code&gt; for the durable check.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For a real 140 W certification test, use a USB-C PD meter and an EPR-compatible programmable load.&lt;/p&gt;
&lt;p&gt;For sorting the cable drawer with a Mac?&lt;/p&gt;
&lt;p&gt;60 W or 100 W is enough to make some decisions.&lt;/p&gt;</content:encoded><category>mac</category><category>cli</category><category>gear</category></item><item><title>The ESP32 Wasn&apos;t Slow. My Renderer Was.</title><link>https://chan.dev/the-esp32-wasnt-slow-my-renderer-was</link><guid isPermaLink="true">https://chan.dev/the-esp32-wasnt-slow-my-renderer-was</guid><description>What a 466×466 AMOLED taught me about smooth ESP32 animation: dirty rectangles, aligned display transfers, non-blocking logs, and honest measurements.</description><pubDate>Fri, 14 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;AI-assisted post: written by Codex from a hardware session we worked through together.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I blamed the ESP32.&lt;/p&gt;
&lt;p&gt;It was easier than blaming my renderer.&lt;/p&gt;
&lt;p&gt;I’d flashed a tiny kinetic level onto a
&lt;a href=&quot;https://docs.waveshare.com/ESP32-S3-Touch-AMOLED-1.75&quot; target=&quot;_blank&quot;&gt;Waveshare ESP32-S3-Touch-AMOLED-1.75-B&lt;/a&gt;.
Tilt the board and a glowing orb rolls toward the new center of gravity.&lt;/p&gt;
&lt;p&gt;It was fun.&lt;/p&gt;
&lt;p&gt;Then it got slow.&lt;/p&gt;
&lt;p&gt;Not “this could use a little polish” slow.
More like “is this microcontroller quietly giving up?” slow.&lt;/p&gt;
&lt;p&gt;The board has a dual-core ESP32-S3, 8 MB of PSRAM, and a 466×466 AMOLED.
The display uses a CO5300 controller over QSPI.
A QMI8658 provides the accelerometer and gyroscope data.&lt;/p&gt;
&lt;p&gt;That sounded like enough computer for one moving circle.&lt;/p&gt;
&lt;p&gt;It was.&lt;/p&gt;
&lt;h2&gt;First, make going back boring&lt;a href=&quot;#first-make-going-back-boring&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Before replacing the factory demo, I read all 16 MB of flash into a backup.&lt;/p&gt;
&lt;p&gt;That changed the emotional temperature of the experiment.&lt;/p&gt;
&lt;p&gt;The sample software wasn’t sacred anymore.
It was just another image I could restore at offset &lt;code&gt;0x0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then I installed the Arduino toolchain through Homebrew, recorded it in my
dotfiles, pulled Waveshare’s examples, and flashed a first custom app.&lt;/p&gt;
&lt;p&gt;One hardware quirk kept showing up: after some flashes, the screen stayed dark
until I unplugged USB, waited, and plugged it back in. A software reset didn’t
always restore the display power path through the AXP2101.&lt;/p&gt;
&lt;p&gt;Useful lesson: a black screen after flashing does not prove the program failed.&lt;/p&gt;
&lt;h2&gt;The pretty version was the slow version&lt;a href=&quot;#the-pretty-version-was-the-slow-version&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The first app used LVGL.&lt;/p&gt;
&lt;p&gt;LVGL is the UI framework Waveshare uses in its own Arduino examples. It’s a
great fit for buttons, labels, layouts, touch targets, and application screens.&lt;/p&gt;
&lt;p&gt;My animation was a less friendly workload.&lt;/p&gt;
&lt;p&gt;I had multiple moving objects, blur-like decoration, and frequently invalidated
regions. Every visual flourish expanded the amount of display memory that had
to be rebuilt and sent over QSPI.&lt;/p&gt;
&lt;p&gt;Moving the work to another task made the code more concurrent.
It did not make the work smaller.&lt;/p&gt;
&lt;p&gt;That distinction mattered:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Async can change when work happens. It cannot make unnecessary work free.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So we stopped decorating and built the smallest renderer that could answer one
question:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How smoothly can this device move one orb?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/rendering-pipeline.rc_rifjF_Z2fRMLv.svg&quot; alt=&quot;Two rendering pipelines. The first sends many invalidated UI regions through LVGL to multiple display transfers. The second samples motion, updates one position, composes one dirty rectangle, and makes one display transfer.&quot; loading=&quot;lazy&quot; width=&quot;1200&quot; height=&quot;675&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Build a performance floor&lt;a href=&quot;#build-a-performance-floor&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The baseline removed LVGL and kept only the parts required for motion:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;one pre-rendered 48×48 RGB565 sprite&lt;/li&gt;
&lt;li&gt;one IMU task pinned to core 0&lt;/li&gt;
&lt;li&gt;one render loop on the other core&lt;/li&gt;
&lt;li&gt;a 60 Hz frame clock&lt;/li&gt;
&lt;li&gt;a small buffer covering the orb’s old and new positions&lt;/li&gt;
&lt;li&gt;performance telemetry every two seconds&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The accelerometer supplied absolute tilt.
The gyroscope added short-term prediction.
A small response filter kept sensor noise from turning into visible jitter.&lt;/p&gt;
&lt;p&gt;The y-axis was backward at first.
That wasn’t an IMU problem. It was a coordinate-system problem: screen Y grows
downward, while the physical axis we wanted grew in the opposite direction.
One minus sign made gravity feel like gravity again.&lt;/p&gt;
&lt;p&gt;The renderer settled here:&lt;/p&gt;

































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Measure&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Frame rate&lt;/td&gt;&lt;td&gt;60.0 FPS&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;IMU sampling&lt;/td&gt;&lt;td&gt;~112 Hz&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Average moving draw&lt;/td&gt;&lt;td&gt;0.93–0.95 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Worst observed draw&lt;/td&gt;&lt;td&gt;~1.15 ms&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Display writes while stationary&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Free heap&lt;/td&gt;&lt;td&gt;stable at ~323.7 KB&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The chip wasn’t gasping.&lt;/p&gt;
&lt;p&gt;At 60 FPS, each frame gets 16.67 ms.
The moving draw used about 0.94 ms of it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/frame-budget.BNTFHGtp_Z1ona50.svg&quot; alt=&quot;A 16.67 millisecond frame budget with 0.94 milliseconds used for the moving draw and 15.73 milliseconds left for other work or idle time.&quot; loading=&quot;lazy&quot; width=&quot;1200&quot; height=&quot;520&quot; /&gt;&lt;/p&gt;
&lt;p&gt;That is not permission to spend every remaining millisecond.
It is proof that the core animation is cheap enough to build around.&lt;/p&gt;
&lt;h2&gt;Render less, not faster&lt;a href=&quot;#render-less-not-faster&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A full 466×466 RGB565 frame is 217,156 pixels, or 434,312 bytes.
At 60 FPS, blindly redrawing the whole display would ask the pipeline to move
about 26 MB every second before protocol overhead.&lt;/p&gt;
&lt;p&gt;Our orb occupies 48×48 pixels.
With motion capped at 10 pixels per frame, its old and new bounds fit inside a
roughly 60×60 dirty region.&lt;/p&gt;
&lt;p&gt;That is the important optimization.&lt;/p&gt;
&lt;p&gt;Not faster math.
Not cleverer tasks.
Not a different framework.&lt;/p&gt;
&lt;p&gt;Fewer pixels.&lt;/p&gt;
&lt;p&gt;The sprite itself is generated once at startup. Every moving frame clears one
small scratch buffer, copies the sprite into its new offset, and sends that
buffer to the display.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;for (uint32_t index = 0; index &amp;lt; dirtyPixels; ++index) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyBuffer[index] = RGB565_BLACK;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;for (int16_t row = 0; row &amp;lt; kSpriteSize; ++row) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;memcpy(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;amp;dirtyBuffer[(row + spriteOffsetY) * dirtyWidth + spriteOffsetX],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;amp;sprite[row * kSpriteSize],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;kSpriteSize * sizeof(uint16_t)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;gfx-&amp;gt;draw16bitRGBBitmap(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyLeft,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyTop,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyBuffer,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyWidth,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dirtyHeight&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;When the rounded position doesn’t change, the renderer sends nothing.&lt;/p&gt;
&lt;p&gt;Stationary pixels are free pixels.&lt;/p&gt;
&lt;h2&gt;One complete frame is better than two partial truths&lt;a href=&quot;#one-complete-frame-is-better-than-two-partial-truths&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The first direct renderer erased the old orb and drew the new orb in separate
display transfers.&lt;/p&gt;
&lt;p&gt;It was fast.
It also produced black scanning lines.&lt;/p&gt;
&lt;p&gt;For a brief moment, the display contained a perfectly valid intermediate
state: old orb gone, new orb not yet present.
The panel scanned that state onto the screen.&lt;/p&gt;
&lt;p&gt;The fix was to compose the union of both positions in memory and transfer it
once.&lt;/p&gt;
&lt;p&gt;The display now moves from one complete truth to the next.
There is no visible blank state between them.&lt;/p&gt;
&lt;h2&gt;Driver constraints show up as visual ghosts&lt;a href=&quot;#driver-constraints-show-up-as-visual-ghosts&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The single-transfer version removed the black lines.&lt;/p&gt;
&lt;p&gt;Then the orb started leaving a trail.&lt;/p&gt;
&lt;p&gt;This looked like a bad erase or stale memory. It was neither.&lt;/p&gt;
&lt;p&gt;The CO5300’s address windows need to begin on an even coordinate and end on an
odd coordinate. Our code used exclusive right and bottom bounds, so all four
boundaries needed to be even.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const int16_t dirtyLeft = rawLeft &amp;amp; ~1;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const int16_t dirtyTop = rawTop &amp;amp; ~1;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const int16_t dirtyRight = (rawRight + 1) &amp;amp; ~1;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const int16_t dirtyBottom = (rawBottom + 1) &amp;amp; ~1;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Without that alignment, the transfer and the region we thought we’d replaced
disagreed by a pixel.&lt;/p&gt;
&lt;p&gt;Those pixels accumulated into ghosts.&lt;/p&gt;
&lt;p&gt;This is the embedded version of a leaky abstraction.
The display controller’s rules became part of the rendering algorithm whether
I wanted them there or not.&lt;/p&gt;
&lt;h2&gt;The memory leak was a serial cable&lt;a href=&quot;#the-memory-leak-was-a-serial-cable&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The strangest bug looked exactly like a leak.&lt;/p&gt;
&lt;p&gt;The animation started fast and degraded quickly.
Heap telemetry stayed flat.&lt;/p&gt;
&lt;p&gt;The slowdown came from diagnostic logging over native USB CDC. When no serial
monitor drained the host-side buffer, &lt;code&gt;Serial.printf()&lt;/code&gt; eventually blocked the
render loop.&lt;/p&gt;
&lt;p&gt;The measurement code was changing the thing it measured.&lt;/p&gt;
&lt;p&gt;The fix was to make telemetry optional:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if (Serial.availableForWrite() &amp;gt;= 128) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Serial.printf(&lt;/span&gt;&lt;span&gt;&quot;perf | fps=%.1f ...\n&quot;&lt;/span&gt;&lt;span&gt;, fps);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;After that, the animation stayed at 60 FPS whether or not a monitor was open.&lt;/p&gt;
&lt;p&gt;Another useful distinction:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A program that slows over time is not necessarily consuming memory over time.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Queues fill.
Buffers fill.
Logs block.
Latency compounds.&lt;/p&gt;
&lt;p&gt;Measure the resource before naming the bug.&lt;/p&gt;
&lt;h2&gt;What fits now&lt;a href=&quot;#what-fits-now&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The baseline intentionally has no interface.
That’s the point.&lt;/p&gt;
&lt;p&gt;It tells me what the motion costs before I add the product back.&lt;/p&gt;
&lt;p&gt;The remaining budget can buy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a static center target&lt;/li&gt;
&lt;li&gt;labels that update only when their values change&lt;/li&gt;
&lt;li&gt;touch input sampled independently from rendering&lt;/li&gt;
&lt;li&gt;a small success pulse when the board is level&lt;/li&gt;
&lt;li&gt;restrained particles with explicit pixel budgets&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I would still use LVGL for a screen made mostly of interface.
For a screen dominated by continuous physical motion, I would keep the hot path
direct and let a UI framework own only the parts that benefit from it.&lt;/p&gt;
&lt;p&gt;The best architecture may be both.&lt;/p&gt;
&lt;h2&gt;The lesson I want to keep&lt;a href=&quot;#the-lesson-i-want-to-keep&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The ESP32-S3 can animate this display beautifully.&lt;/p&gt;
&lt;p&gt;But smoothness is not a property I get from a framework, a second core, or an
optimistic frame-rate constant.&lt;/p&gt;
&lt;p&gt;Smoothness is a budget:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;how many pixels change&lt;/li&gt;
&lt;li&gt;how many transfers carry them&lt;/li&gt;
&lt;li&gt;whether a transfer represents a complete frame&lt;/li&gt;
&lt;li&gt;whether the controller accepts its boundaries&lt;/li&gt;
&lt;li&gt;whether instrumentation can block the critical path&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When small hardware feels slow, I want to resist upgrading the hardware first.&lt;/p&gt;
&lt;p&gt;Make the workload visible.
Build the smallest version that can be measured.
Then spend the remaining budget on delight.&lt;/p&gt;</content:encoded><category>code</category><category>play</category><category>tools</category></item><item><title>Authenticate an ESP32 with WorkOS AuthKit&apos;s Device Flow</title><link>https://chan.dev/esp32-authkit-device-flow</link><guid isPermaLink="true">https://chan.dev/esp32-authkit-device-flow</guid><description>Authenticate an ESP32 with WorkOS AuthKit’s OAuth device flow using the correct endpoints, polling behavior, token refresh, TLS, and secure token storage.</description><pubDate>Wed, 12 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;🚧 This started as an AI-generated implementation plan from Google. The protocol choice was right. Several details were not.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Google got the architecture right and the endpoint pair wrong.&lt;/p&gt;
&lt;p&gt;That isn’t a cosmetic mistake. Mixing WorkOS AuthKit and WorkOS Connect endpoints leaves you with a flow that cannot complete.&lt;/p&gt;
&lt;p&gt;Here’s the corrected plan.&lt;/p&gt;
&lt;h2&gt;What needed correction&lt;a href=&quot;#what-needed-correction&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;

















































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;The original plan said…&lt;/th&gt;&lt;th&gt;The correction&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Start at &lt;code&gt;https://api.workos.com/authorize/device&lt;/code&gt;.&lt;/td&gt;&lt;td&gt;First-party AuthKit uses &lt;code&gt;https://api.workos.com/user_management/authorize/device&lt;/code&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Poll &lt;code&gt;https://api.workos.com/oauth2/token&lt;/code&gt;.&lt;/td&gt;&lt;td&gt;First-party AuthKit polls &lt;code&gt;https://api.workos.com/user_management/authenticate&lt;/code&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Configure the client as a Public Application and request &lt;code&gt;openid profile email&lt;/code&gt;.&lt;/td&gt;&lt;td&gt;That language belongs to WorkOS Connect. The documented first-party AuthKit request only sends its &lt;code&gt;client_id&lt;/code&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The complete verification URI fills in the device code.&lt;/td&gt;&lt;td&gt;It carries the short &lt;code&gt;user_code&lt;/code&gt;. The long &lt;code&gt;device_code&lt;/code&gt; stays private on the ESP32.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Scanning the QR code removes the code step.&lt;/td&gt;&lt;td&gt;It removes typing. The user should still compare and confirm the code shown in the browser and on the ESP32.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;The user grants consent.&lt;/td&gt;&lt;td&gt;First-party AuthKit asks the user to confirm the device. Explicit OAuth consent applies to third-party Connect applications.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Keep polling until pending becomes success.&lt;/td&gt;&lt;td&gt;Also handle &lt;code&gt;slow_down&lt;/code&gt;, &lt;code&gt;access_denied&lt;/code&gt;, &lt;code&gt;expired_token&lt;/code&gt;, malformed requests, and network failures.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Store the tokens and reuse the access token forever.&lt;/td&gt;&lt;td&gt;Access tokens expire. Refresh tokens may rotate and must replace the previous value atomically.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Send the access token with every outbound request.&lt;/td&gt;&lt;td&gt;Send it only to a resource server that accepts this token. A WorkOS access token is not a universal API credential.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Flash Encryption makes token storage secure.&lt;/td&gt;&lt;td&gt;Use encrypted NVS, Flash Encryption in Release mode, and Secure Boot. This reduces risk; it does not make a captured device invulnerable.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;Pick one WorkOS flow&lt;a href=&quot;#pick-one-workos-flow&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;WorkOS exposes two device-flow endpoint pairs.&lt;/p&gt;
&lt;p&gt;Do not mix them.&lt;/p&gt;




















&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Use case&lt;/th&gt;&lt;th&gt;Device authorization&lt;/th&gt;&lt;th&gt;Token polling&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;An ESP32 signing into &lt;strong&gt;your own AuthKit application&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;https://api.workos.com/user_management/authorize/device&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;https://api.workos.com/user_management/authenticate&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;An ESP32 acting as a &lt;strong&gt;WorkOS Connect OAuth client&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;https://&amp;lt;authkit_domain&amp;gt;/oauth2/device_authorization&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;https://&amp;lt;authkit_domain&amp;gt;/oauth2/token&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The rest of this plan uses first-party AuthKit.&lt;/p&gt;
&lt;h2&gt;The corrected flow&lt;a href=&quot;#the-corrected-flow&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;pre&gt;sequenceDiagram
    participant ESP32
    participant WorkOS
    participant Browser

    ESP32-&amp;gt;&amp;gt;WorkOS: POST /user_management/authorize/device
    WorkOS--&amp;gt;&amp;gt;ESP32: device_code, user_code, URIs, expiry, interval
    ESP32-&amp;gt;&amp;gt;ESP32: Render QR, user_code, and fallback URI
    Browser-&amp;gt;&amp;gt;WorkOS: Open verification_uri_complete
    WorkOS--&amp;gt;&amp;gt;Browser: Sign in and confirm user_code

    loop No more often than interval allows
        ESP32-&amp;gt;&amp;gt;WorkOS: POST /user_management/authenticate
        WorkOS--&amp;gt;&amp;gt;ESP32: pending, slow_down, terminal error, or tokens
    end
&lt;/pre&gt;
&lt;p&gt;The phone talks to WorkOS.&lt;/p&gt;
&lt;p&gt;It does not talk directly to the ESP32. Polling is how the ESP32 learns that authentication finished.&lt;/p&gt;
&lt;h2&gt;Before authentication&lt;a href=&quot;#before-authentication&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The ESP32 needs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the AuthKit application’s &lt;code&gt;client_id&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;a QR encoder and enough display resolution for the returned URL&lt;/li&gt;
&lt;li&gt;a bounded JSON parser&lt;/li&gt;
&lt;li&gt;a trusted CA bundle for &lt;code&gt;api.workos.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;a correct clock, usually synchronized with SNTP before TLS begins&lt;/li&gt;
&lt;li&gt;encrypted NVS configured for token storage&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A client ID is public configuration.&lt;/p&gt;
&lt;p&gt;A WorkOS API key or client secret is not. Never ship either in firmware.&lt;/p&gt;
&lt;p&gt;And don’t call &lt;code&gt;WiFiClientSecure::setInsecure()&lt;/code&gt;. HTTPS without certificate verification is costume security.&lt;/p&gt;
&lt;h2&gt;1. Request device authorization&lt;a href=&quot;#1-request-device-authorization&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Send a form-encoded HTTPS request:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;POST /user_management/authorize/device HTTP/1.1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Host: &lt;/span&gt;&lt;span&gt;api.workos.com&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Content-Type: &lt;/span&gt;&lt;span&gt;application/x-www-form-urlencoded&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;client_id=client_123456789&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The documented AuthKit request does not include OIDC scopes.&lt;/p&gt;
&lt;p&gt;A successful response looks like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;device_code&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;CVE2wOfIFK4vhmiDBntpX9s8KT2f0qngpWYL0LGy9HxYgBRXUKIUkZB9BgIFho5h&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;user_code&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;BCDF-GHJK&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;verification_uri&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;https://example.authkit.app/device&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;verification_uri_complete&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;https://example.authkit.app/device?user_code=BCDF-GHJK&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;expires_in&quot;&lt;/span&gt;&lt;span&gt;: 300,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;interval&quot;&lt;/span&gt;&lt;span&gt;: 5&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Keep the entire response in RAM only as long as the flow needs it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;device_code&lt;/code&gt; is a credential. Do not display it, write it to serial logs, or put it in a QR code.&lt;/p&gt;
&lt;h2&gt;2. Render the instructions&lt;a href=&quot;#2-render-the-instructions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Show three things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A QR code containing &lt;code&gt;verification_uri_complete&lt;/code&gt; exactly as WorkOS returned it.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;user_code&lt;/code&gt; in large, readable text.&lt;/li&gt;
&lt;li&gt;The plain &lt;code&gt;verification_uri&lt;/code&gt; as a fallback when practical.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The complete URI contains the &lt;strong&gt;user code&lt;/strong&gt;, not the device code.&lt;/p&gt;
&lt;p&gt;Scanning the QR code saves typing. It should not skip comparison. WorkOS shows the code in the browser so the user can confirm that the phone and ESP32 are participating in the same flow.&lt;/p&gt;
&lt;p&gt;Choose a QR library that fits the ESP32 framework you’re actually using—Arduino or ESP-IDF—and test the physical screen. A theoretically valid QR code is useless when the modules are too small for a phone camera.&lt;/p&gt;
&lt;h2&gt;3. Let AuthKit authenticate the user&lt;a href=&quot;#3-let-authkit-authenticate-the-user&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The phone opens the hosted AuthKit UI.&lt;/p&gt;
&lt;p&gt;AuthKit applies the authentication methods and organization policies configured for the application. That may include SSO, social login, passkeys, MFA, or email and password.&lt;/p&gt;
&lt;p&gt;After signing in, the user confirms the code.&lt;/p&gt;
&lt;p&gt;This is not necessarily an OAuth consent screen. For first-party AuthKit, it is device confirmation.&lt;/p&gt;
&lt;h2&gt;4. Poll without hammering WorkOS&lt;a href=&quot;#4-poll-without-hammering-workos&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Poll the AuthKit authentication endpoint with the temporary &lt;code&gt;device_code&lt;/code&gt;:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;POST /user_management/authenticate HTTP/1.1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Host: &lt;/span&gt;&lt;span&gt;api.workos.com&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Content-Type: &lt;/span&gt;&lt;span&gt;application/x-www-form-urlencoded&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code&amp;amp;device_code=DEVICE_CODE&amp;amp;client_id=client_123456789&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Use &lt;code&gt;interval&lt;/code&gt; as the &lt;strong&gt;minimum&lt;/strong&gt; delay between requests. If WorkOS omits it, RFC 8628 says to use five seconds.&lt;/p&gt;
&lt;p&gt;Treat the polling loop as a small state machine:&lt;/p&gt;





































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Result&lt;/th&gt;&lt;th&gt;Action&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;authorization_pending&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Wait for the current interval, then poll again.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;slow_down&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Add at least five seconds to the interval, then continue.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;access_denied&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Stop and tell the user the request was denied.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;expired_token&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Stop. Clear the screen and start a new flow only when the user asks.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Other OAuth error&lt;/td&gt;&lt;td&gt;Stop. Log a sanitized error, not credentials.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Timeout or network failure&lt;/td&gt;&lt;td&gt;Back off exponentially. Never retry faster than the current interval.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Success&lt;/td&gt;&lt;td&gt;Stop polling and process the token response.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Stop when &lt;code&gt;expires_in&lt;/code&gt; elapses even if the network never returns a clean &lt;code&gt;expired_token&lt;/code&gt; response.&lt;/p&gt;
&lt;p&gt;“Non-blocking” and “sleep” are not the same design. Schedule polls with a timer or put the flow in its own FreeRTOS task. Do not freeze the display loop, starve the watchdog, or make the login screen look dead.&lt;/p&gt;
&lt;h2&gt;5. Use and refresh the tokens&lt;a href=&quot;#5-use-and-refresh-the-tokens&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A successful first-party AuthKit response includes the user, an access token, and a refresh token. It may also include an organization ID and authentication metadata.&lt;/p&gt;
&lt;p&gt;Now the ESP32 can show the user’s actual name from the response—not a hard-coded &lt;code&gt;Welcome, User!&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The access token is a short-lived JWT. Send it as a bearer token only to your API or another resource server designed to accept it:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Authorization: &lt;/span&gt;&lt;span&gt;Bearer ACCESS_TOKEN&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;That server must validate the signature and relevant claims, including expiration, issuer, and application context. The ESP32 should not treat “I have a JWT-shaped string” as proof of anything.&lt;/p&gt;
&lt;p&gt;When the access token expires, exchange the refresh token for a new token pair using the public-client form of the AuthKit authentication endpoint:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;POST /user_management/authenticate HTTP/1.1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Host: &lt;/span&gt;&lt;span&gt;api.workos.com&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Content-Type: &lt;/span&gt;&lt;span&gt;application/x-www-form-urlencoded&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;grant_type=refresh_token&amp;amp;client_id=client_123456789&amp;amp;refresh_token=REFRESH_TOKEN&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Do not add a client secret to make this work.&lt;/p&gt;
&lt;p&gt;WorkOS may rotate the refresh token. Persist the replacement before discarding the previous value. If refresh fails because the session expired or was revoked, erase the local tokens and restart device authorization.&lt;/p&gt;
&lt;h2&gt;Store less, protect what remains&lt;a href=&quot;#store-less-protect-what-remains&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Keep the access token in RAM when possible. Persist the refresh token only when the product needs to survive a reboot without another login.&lt;/p&gt;
&lt;p&gt;For production ESP32 devices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;enable Flash Encryption in &lt;strong&gt;Release&lt;/strong&gt; mode&lt;/li&gt;
&lt;li&gt;enable Secure Boot&lt;/li&gt;
&lt;li&gt;store the refresh token in encrypted NVS, not a plaintext file or unencrypted partition&lt;/li&gt;
&lt;li&gt;provision unique encryption material per device&lt;/li&gt;
&lt;li&gt;remove token values from serial logs, crash dumps, and telemetry&lt;/li&gt;
&lt;li&gt;erase local tokens during sign-out or factory reset&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These controls protect against casual flash extraction and unauthorized firmware.&lt;/p&gt;
&lt;p&gt;They do not fully protect a running, physically captured device. If that threat matters, add hardware-backed key protection or keep the long-lived credential behind a backend token broker.&lt;/p&gt;
&lt;h2&gt;If this is actually a Connect client&lt;a href=&quot;#if-this-is-actually-a-connect-client&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Then the original plan was closer—but still used the wrong host and authorization path.&lt;/p&gt;
&lt;p&gt;Configure a WorkOS Connect OAuth application as &lt;strong&gt;Public&lt;/strong&gt;, then use:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;POST https://&amp;lt;authkit_domain&amp;gt;/oauth2/device_authorization&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;POST https://&amp;lt;authkit_domain&amp;gt;/oauth2/token&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The authorization request may include space-separated scopes such as:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;openid profile email offline_access&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;offline_access&lt;/code&gt; requests a refresh token. Third-party Connect applications show consent. First-party Connect applications do not.&lt;/p&gt;
&lt;p&gt;Connect returns an OAuth token response that can include &lt;code&gt;access_token&lt;/code&gt;, &lt;code&gt;id_token&lt;/code&gt;, &lt;code&gt;refresh_token&lt;/code&gt;, &lt;code&gt;expires_in&lt;/code&gt;, and &lt;code&gt;token_type&lt;/code&gt;. Do not assume it has the same shape as the first-party AuthKit response.&lt;/p&gt;
&lt;p&gt;Same protocol.&lt;/p&gt;
&lt;p&gt;Different product surface. Different endpoints.&lt;/p&gt;</content:encoded><category>workos</category><category>auth</category><category>tutorial</category></item><item><title>Launch Ghostty into Herdr at Mac Login</title><link>https://chan.dev/launch-ghostty-into-herdr-at-mac-login</link><guid isPermaLink="true">https://chan.dev/launch-ghostty-into-herdr-at-mac-login</guid><description>Launch Ghostty directly into Herdr at macOS login using a durable LaunchAgent, GNU Stow, and a repeatable reload command stored in your dotfiles repo.</description><pubDate>Wed, 12 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;em&gt;AI-assisted post: written by Pi from the setup we applied to my dotfiles.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I want my Mac to start where I work.&lt;/p&gt;
&lt;p&gt;Right now, that’s &lt;a href=&quot;https://herdr.dev/&quot; target=&quot;_blank&quot;&gt;Herdr&lt;/a&gt; running inside &lt;a href=&quot;https://ghostty.org/&quot; target=&quot;_blank&quot;&gt;Ghostty&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Adding Ghostty to Login Items gets me halfway there. Setting Herdr as Ghostty’s global &lt;code&gt;command&lt;/code&gt; goes too far — every new terminal would open Herdr.&lt;/p&gt;
&lt;p&gt;A user LaunchAgent hits the seam.
It opens one Ghostty instance into Herdr when I log in.&lt;/p&gt;
&lt;p&gt;“When I log in” is the precise version of “when my Mac starts.” User LaunchAgents don’t run before login. That’s exactly what I want for a GUI app.&lt;/p&gt;
&lt;h2&gt;Keep the LaunchAgent in dotfiles&lt;a href=&quot;#keep-the-launchagent-in-dotfiles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;My &lt;a href=&quot;https://github.com/chantastic/dotfiles&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;dotfiles&lt;/code&gt;&lt;/a&gt; repo owns system bootstrap and shell wiring. So the LaunchAgent source lives here:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;~/dotfiles/launchd/Library/LaunchAgents/dev.herdr.ghostty.plist&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;That path mirrors where &lt;a href=&quot;https://www.gnu.org/software/stow/&quot; target=&quot;_blank&quot;&gt;GNU Stow&lt;/a&gt; will link it in my home directory.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;?xml version=&lt;/span&gt;&lt;span&gt;&quot;1.0&quot;&lt;/span&gt;&lt;span&gt; encoding=&lt;/span&gt;&lt;span&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;plist version=&lt;/span&gt;&lt;span&gt;&quot;1.0&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;dict&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;dev.herdr.ghostty&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;array&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;/usr/bin/open&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;-na&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;Ghostty.app&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;--args&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;-e&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;/bin/zsh&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;-lc&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;exec herdr&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/array&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;key&amp;gt;LimitLoadToSessionType&amp;lt;/key&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;string&amp;gt;Aqua&amp;lt;/string&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;true/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/dict&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/plist&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The command hiding in that XML is:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;open &lt;/span&gt;&lt;span&gt;-na&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Ghostty.app&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--args&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-e&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;/bin/zsh&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-lc&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;exec herdr&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;open -na&lt;/code&gt; starts a new Ghostty instance. &lt;code&gt;--args&lt;/code&gt; sends everything after it to Ghostty. Ghostty’s &lt;code&gt;-e&lt;/code&gt; runs a command instead of the default shell.&lt;/p&gt;
&lt;p&gt;I run Herdr through a login shell so zsh loads my Homebrew environment. That avoids baking &lt;code&gt;/opt/homebrew&lt;/code&gt; into the LaunchAgent.&lt;/p&gt;
&lt;h2&gt;Link it with Stow&lt;a href=&quot;#link-it-with-stow&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;From the dotfiles repo:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;cd &lt;/span&gt;&lt;span&gt;~/dotfiles&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;stow &lt;/span&gt;&lt;span&gt;launchd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This creates:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;~/Library/LaunchAgents/dev.herdr.ghostty.plist&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;-&amp;gt; ~/dotfiles/launchd/Library/LaunchAgents/dev.herdr.ghostty.plist&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The repo owns the file.
macOS gets it where it expects it.&lt;/p&gt;
&lt;h2&gt;Make reloads repeatable&lt;a href=&quot;#make-reloads-repeatable&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;macOS will discover the agent on my next login. But I don’t want to log out every time I edit the plist.&lt;/p&gt;
&lt;p&gt;I keep the reload incantation in dotfiles too:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;#!/bin/bash&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;set &lt;/span&gt;&lt;span&gt;-euo&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pipefail&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;label=&lt;/span&gt;&lt;span&gt;&quot;dev.herdr.ghostty&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;plist=&lt;/span&gt;&lt;span&gt;&quot;${HOME}/Library/LaunchAgents/${label}.plist&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;domain=&lt;/span&gt;&lt;span&gt;&quot;gui/$(/usr/bin/id -u)&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if [[ ! -f &lt;/span&gt;&lt;span&gt;&quot;${plist}&quot;&lt;/span&gt;&lt;span&gt; ]]; then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;echo &lt;/span&gt;&lt;span&gt;&quot;Missing ${plist}. Run &apos;stow launchd&apos; from ~/dotfiles first.&quot;&lt;/span&gt;&lt;span&gt; &amp;gt;&amp;amp;2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;exit &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/usr/bin/plutil &lt;/span&gt;&lt;span&gt;-lint&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;${plist}&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/bin/launchctl &lt;/span&gt;&lt;span&gt;bootout&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;${domain}/${label}&quot;&lt;/span&gt;&lt;span&gt; 2&amp;gt;&lt;/span&gt;&lt;span&gt;/dev/null&lt;/span&gt;&lt;span&gt; || true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/bin/launchctl &lt;/span&gt;&lt;span&gt;bootstrap&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;${domain}&quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;${plist}&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Make it executable and run it:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;chmod &lt;/span&gt;&lt;span&gt;+x&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;~/dotfiles/bash/bash/configure-launchd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;configure-launchd&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;It validates the plist, unloads the previous definition, and bootstraps the new one. Because the job uses &lt;code&gt;RunAtLoad&lt;/code&gt;, Ghostty opens into Herdr immediately.&lt;/p&gt;
&lt;p&gt;Inspect the loaded agent with:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;launchctl &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;gui/$(id -u)/dev.herdr.ghostty&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;The complete system&lt;a href=&quot;#the-complete-system&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The durable setup has four parts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Ghostty and Herdr live in my &lt;code&gt;Brewfile&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The LaunchAgent definition lives in dotfiles.&lt;/li&gt;
&lt;li&gt;Stow links it into &lt;code&gt;~/Library/LaunchAgents&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;configure-launchd&lt;/code&gt; applies changes without a logout.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now the ritual isn’t trapped in a settings panel or my memory.&lt;/p&gt;
&lt;p&gt;It’s source code.&lt;/p&gt;</content:encoded><category>tools</category><category>mac</category><category>cli</category></item><item><title>pi</title><link>https://chan.dev/pi</link><guid isPermaLink="true">https://chan.dev/pi</guid><description>Pi is the NeoVim of coding agents — no built-in sub agents, no plan mode, but fully extensible with TypeScript. First impressions and comparison with Claude Code.</description><pubDate>Tue, 24 Mar 2026 00:00:00 GMT</pubDate><content:encoded>&lt;div&gt;

&lt;/div&gt;
&lt;p&gt;I have a pattern.&lt;/p&gt;
&lt;p&gt;Watches, power tools, keyboard layouts, microphones, PC builds — when I find a new thing, it eats me.&lt;br /&gt;
I know this about myself.&lt;br /&gt;
So when &lt;a href=&quot;https://pi.dev&quot; target=&quot;_blank&quot;&gt;Pi&lt;/a&gt; showed up on my radar a month ago, I didn’t try it.&lt;/p&gt;
&lt;p&gt;I knew exactly what would happen.&lt;br /&gt;
I’d get into it, it would be good, and then I’d have to deal with the implications.&lt;/p&gt;
&lt;h2&gt;the pattern&lt;a href=&quot;#the-pattern&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Every few years, the layer I’m working on starts to feel unstable.&lt;/p&gt;
&lt;p&gt;Favorite text editors stop getting updates. TextMate, Sublime Text 2 — both dead.&lt;br /&gt;
So in 2009, I learned &lt;a href=&quot;https://chan.dev/vim&quot; target=&quot;_blank&quot;&gt;Vim&lt;/a&gt;. And Dvorak. At the same time.&lt;br /&gt;
While my newborn was in the hospital with pediatric cancer.&lt;/p&gt;
&lt;p&gt;Grasping for control, probably.&lt;br /&gt;
But the logic was sound: invest in the transferrable thing. The thing a layer below. The thing that doesn’t depend on someone else’s business model.&lt;/p&gt;
&lt;p&gt;I did the same with React. Everyone was building libraries and augmentations. I pressed into &lt;a href=&quot;https://chan.dev/react-basics&quot; target=&quot;_blank&quot;&gt;fundamentals&lt;/a&gt;. And as those libraries lost favor, hunkering down on React panned out.&lt;/p&gt;
&lt;p&gt;Financially, I’m the same way. Dave Ramsey Baby Steps or GTFO.&lt;/p&gt;
&lt;p&gt;For me, freedom is being capable.&lt;/p&gt;
&lt;h2&gt;the fear&lt;a href=&quot;#the-fear&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I’ve built a lot on Claude Code. &lt;a href=&quot;https://chan.dev/2026&quot; target=&quot;_blank&quot;&gt;Skills&lt;/a&gt;, &lt;a href=&quot;https://chan.dev/rules-for-content&quot; target=&quot;_blank&quot;&gt;production pipelines&lt;/a&gt;, workflows I use daily.&lt;/p&gt;
&lt;p&gt;And Anthropic is tightening the harness. They block &lt;a href=&quot;https://github.com/nicepkg/opencode&quot; target=&quot;_blank&quot;&gt;OpenCode&lt;/a&gt;. They block OpenClaw. Claude Code is their sticky product and they don’t want you getting that sticky feeling with another agent.&lt;/p&gt;
&lt;p&gt;If they change pricing, API access, or their stance on custom harnesses — and there are signs all three could shift — I’d have to rebuild everything.&lt;/p&gt;
&lt;p&gt;That’s the layer feeling unstable again.&lt;/p&gt;
&lt;h2&gt;pi is the neovim of coding agents&lt;a href=&quot;#pi-is-the-neovim-of-coding-agents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If Claude Code is VS Code, Pi is NeoVim.&lt;/p&gt;
&lt;p&gt;That analogy either excites you or warns you off.&lt;/p&gt;
&lt;p&gt;Pi doesn’t have a chatty onboarding flow. It has documentation and expects you to read it. The first thing I did was ask Pi what it can do. It read its own README and summarized it.&lt;br /&gt;
RTFM, bro.&lt;/p&gt;
&lt;p&gt;The core pitch is one line: &lt;em&gt;“Pi follows a philosophy of aggressive extensibility with minimal core.”&lt;/em&gt;&lt;br /&gt;
No built-in sub agents.&lt;br /&gt;
No plan mode.&lt;br /&gt;
No permission popups.&lt;br /&gt;
But you can build any of those as TypeScript extensions.&lt;/p&gt;
&lt;p&gt;You start with nothing. You build up exactly what you need.&lt;br /&gt;
Nothing you don’t.&lt;/p&gt;
&lt;h2&gt;what I actually found&lt;a href=&quot;#what-i-actually-found&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I gave myself twenty minutes on camera. Here’s what stood out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Multi-model switching.&lt;/strong&gt; I logged in with both Anthropic and OpenAI accounts. Thirty seconds each. Now I can swap between Claude and GPT mid-session with &lt;code&gt;Ctrl+P&lt;/code&gt;. My skills, extensions, config — all of it works regardless of model. That’s the hedge.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Your skills already work everywhere.&lt;/strong&gt; There’s an open standard called &lt;a href=&quot;https://agentskills.io&quot; target=&quot;_blank&quot;&gt;Agent Skills&lt;/a&gt; — originally developed by Anthropic, now adopted across tools. A directory with a &lt;code&gt;SKILL.md&lt;/code&gt; file, YAML frontmatter, and everything else is freeform. My Claude Code skills already followed this format. I asked Pi what I’d lose going cross-agent and the answer was: “Honestly, nothing.”&lt;/p&gt;
&lt;p&gt;There’s a universal path (&lt;code&gt;~/.agents/skills/&lt;/code&gt;) that both Pi and Claude Code check. Put your skills there and they work in both. I didn’t have to commit to anything.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Extensions are TypeScript.&lt;/strong&gt; Access to tools, commands, keyboard shortcuts, events, the full TUI. I installed a community questionnaire extension by dropping a &lt;code&gt;.ts&lt;/code&gt; file into &lt;code&gt;~/.pi/agent/extensions/&lt;/code&gt; and restarting. It worked.&lt;/p&gt;
&lt;p&gt;And yes — you can run Doom in Pi. I’m not saying this is a selling point.&lt;br /&gt;
I’m not &lt;em&gt;not&lt;/em&gt; saying it either.&lt;/p&gt;
&lt;h2&gt;what I’m doing about it&lt;a href=&quot;#what-im-doing-about-it&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I moved my skills directory to the universal path so both tools see them.&lt;br /&gt;
I configured Pi with my preferred models as a fallback.&lt;br /&gt;
And I started building extensions for the things I keep wishing Claude Code did differently.&lt;/p&gt;
&lt;p&gt;Building against the least common denominator forces my skills to be portable. And if I ever need the full power of Claude Code’s agent teams, I can upgrade into that path selectively. But the fundamentals travel with me.&lt;/p&gt;
&lt;p&gt;Hard mode requires you to understand the technology.&lt;br /&gt;
That’s always been the unlock.&lt;/p&gt;
&lt;p&gt;The twenty minutes are up.&lt;br /&gt;
The consuming has begun.&lt;/p&gt;
&lt;p&gt;🧰 chan&lt;/p&gt;
&lt;p&gt;Using Pi? Building agent skills?&lt;br /&gt;
Hit me up — I’d love to see what you’re doing with it.&lt;/p&gt;</content:encoded><category>ai</category><category>tools</category><category>vim</category></item><item><title>2026</title><link>https://chan.dev/2026</link><guid isPermaLink="true">https://chan.dev/2026</guid><description>Weekly log for 2026. Links, projects, stream notes, and what&apos;s happening.</description><pubDate>Thu, 01 Jan 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;47&lt;a href=&quot;#47&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Nov 16-22&lt;/p&gt;
&lt;h3&gt;Cooking&lt;a href=&quot;#cooking&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Before you cut and bake a winter squash, roast it whole for 20 minutes at 400°F. Then it slices in half easily and the seeds scoop out in one go.&lt;/li&gt;
&lt;li&gt;From &lt;a href=&quot;https://x.com/HandyGingerGal/status/2122706096112480320&quot; target=&quot;_blank&quot;&gt;@HandyGingerGal&lt;/a&gt;. The video is originally from TikTok @madelainerascan.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Life&lt;a href=&quot;#life&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Every happy life needs something to do, someone to love, something to look forward to, and something to give back. Looking forward to something builds optimism and hope. Giving back keeps selfishness from quietly making us miserable.&lt;/li&gt;
&lt;li&gt;Dan Buettner (with Rainn Wilson) on &lt;a href=&quot;https://www.facebook.com/reel/2117549318871288/&quot; target=&quot;_blank&quot;&gt;The Dan Buettner Podcast&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;46&lt;a href=&quot;#46&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Nov 9-15&lt;/p&gt;
&lt;h3&gt;WorkOS&lt;a href=&quot;#workos&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;WorkOS channel should be about collabs right now.&lt;/li&gt;
&lt;li&gt;We can bulk up events demos with some BTS, like SNL or a comedy show.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;45&lt;a href=&quot;#45&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Nov 2-8&lt;/p&gt;
&lt;h3&gt;Learning&lt;a href=&quot;#learning&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Turn button (aka turn clip, picture-frame turn button, panel retainer clip): a small plastic swivel on a screw that rotates to hold a back panel or glass in its frame.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Making&lt;a href=&quot;#making&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Printed a &lt;a href=&quot;https://www.printables.com/model/376332-picture-frame-turn-button-backing-clip&quot; target=&quot;_blank&quot;&gt;Picture Frame Turn Button (Backing Clip)&lt;/a&gt; for a cabinet repair. It worked.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;44&lt;a href=&quot;#44&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Oct 26-Nov 1&lt;/p&gt;
&lt;h3&gt;Learning&lt;a href=&quot;#learning-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I learned about tone mapping: squeezing HDR video (mastered for 1,000–4,000 nits, PQ curve, BT.2020 color) into SDR’s ~100 nits (BT.709). Shadows and midtones stay put, highlights get rolled off on a curve (Hable, from Uncharted 2), so headlights and skies keep their detail instead of clipping to white. My 1080p Apple TV HD can’t do HDR, so I pre-rendered 1080p SDR versions of my 4K HDR files with ffmpeg (&lt;code&gt;zscale&lt;/code&gt; + &lt;code&gt;tonemap=hable&lt;/code&gt;) instead of making Jellyfin transcode on every play.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;38&lt;a href=&quot;#38&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Sep 14-20&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://help.runwayml.com/hc/en-us/articles/47313504791059-Camera-Terms-Prompts-Examples&quot; target=&quot;_blank&quot;&gt;Camera angles and movements by Runway&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;You have nothing to prove and no one to impress. You’re a child of the king. — Larry Osborne&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;37&lt;a href=&quot;#37&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Sep 7-13&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Spaced_repetition&quot; target=&quot;_blank&quot;&gt;Spaced repetition (Wikipedia)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://flashcards.chan.dev/&quot; target=&quot;_blank&quot;&gt;flashcards.chan.dev&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;35&lt;a href=&quot;#35&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Aug 24-30&lt;/p&gt;
&lt;h3&gt;Learning&lt;a href=&quot;#learning-2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt; &lt;a href=&quot;https://languagemodelbuilder.com/&quot; target=&quot;_blank&quot;&gt;Learn how to build an AI model from scratch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I learned that isometric games are typically skewed to 30°, and the Stripe logo is skewed to 12°.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Reading&lt;a href=&quot;#reading&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://schlarp.com/posts/everything-i-own-owned/&quot; target=&quot;_blank&quot;&gt;Everything I own, owned (schlarp.com)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;34&lt;a href=&quot;#34&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Aug 17-23&lt;/p&gt;
&lt;h3&gt;Morning Routine&lt;a href=&quot;#morning-routine&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;From &lt;a href=&quot;https://youtu.be/hnKv4PejShM?t=836&quot; target=&quot;_blank&quot;&gt;Ben Azadi’s seven-step routine&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; No phone for the first 30 minutes.&lt;/li&gt;
&lt;li&gt; Drink a big glass of water with a pinch of salt, mineral mix, or unflavored electrolytes before caffeine.&lt;/li&gt;
&lt;li&gt; Get 10-30 minutes of outdoor light within 30 minutes of waking. No sunglasses, even when overcast.&lt;/li&gt;
&lt;li&gt; Walk for 10-15 minutes. Combine this with outdoor light when possible.&lt;/li&gt;
&lt;li&gt; Wait 90 minutes before having caffeine.&lt;/li&gt;
&lt;li&gt; Build the first meal around protein. Aim for at least 30g.&lt;/li&gt;
&lt;li&gt; Calm the nervous system before work with slow nasal breaths or a minute of quiet.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Device Mockups&lt;a href=&quot;#device-mockups&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ultramock.io/&quot; target=&quot;_blank&quot;&gt;Ultramock&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://matte.app/&quot; target=&quot;_blank&quot;&gt;Matte&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jitter.video/templates/devices/&quot; target=&quot;_blank&quot;&gt;Jitter device templates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/iOSProgramming/comments/1r4yv1c/how_do_people_make_those_floating_iphone_mockup/&quot; target=&quot;_blank&quot;&gt;How do people make those floating iPhone mockups?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://shots.so/&quot; target=&quot;_blank&quot;&gt;Shots&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;31&lt;a href=&quot;#31&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jul 27-Aug 2&lt;/p&gt;
&lt;h3&gt;Writing&lt;a href=&quot;#writing&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Jul 29 — &lt;a href=&quot;https://x.com/0xpia/status/2082473727602671690&quot; target=&quot;_blank&quot;&gt;How to remove AI writing tells (X)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;No antithesis. No corrective negation. No paragraph pinning. No parataxis. No summary beats. No rhetorical crutches. No negative parallelisms. No negative anaphoras. No contrasting pairs. No rule of three. No em dashes. No throat-clearing openers. No landing sentences. No setup/payoff constructions. No parallel sentence structures within a paragraph. Vary sentence length unpredictably. No stacked noun phrases. No filler intensifiers (genuinely, really, truly, actually). No corporate-register verbs (leverage, underscore, reflect). No nominalization. No hedging qualifiers. Write for the spoken voice. No performed enthusiasm.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;29&lt;a href=&quot;#29&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jul 13-19&lt;/p&gt;
&lt;h3&gt;Business&lt;a href=&quot;#business&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/wickedguro/status/2076703406446858426&quot; target=&quot;_blank&quot;&gt;Postiz MRR journey&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;AI / Media&lt;a href=&quot;#ai--media&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://agent-media.ai/&quot; target=&quot;_blank&quot;&gt;Agent Media&lt;/a&gt; - UGC generation.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;28&lt;a href=&quot;#28&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jul 6-12&lt;/p&gt;
&lt;h3&gt;Music / Culture&lt;a href=&quot;#music--culture&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Handpan music by Malte Marten is sick: &lt;a href=&quot;https://youtu.be/HRCfnvxpYP8?si=p7NMPq1yVl9iUy6t&quot; target=&quot;_blank&quot;&gt;YouTube&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://youtu.be/HuEUg8AW_5k?si=w_zrF7rHQ2i00Cqf&quot; target=&quot;_blank&quot;&gt;The Curiosity Shop, Brene Brown, Adam Grant, and Simon Sinek&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Notes&lt;a href=&quot;#notes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Ethnographer: a social scientist, often a cultural anthropologist, who studies a specific group of people or culture by deeply immersing themselves in their everyday lives. They use qualitative methods like participant observation, interviews, and field notes to understand a community’s behaviors, beliefs, and practices on its own terms.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Tools&lt;a href=&quot;#tools&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://knockoff.shopping&quot; target=&quot;_blank&quot;&gt;Amazon, without the knockoffs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://microsoft.github.io/flint-chart/#/&quot; target=&quot;_blank&quot;&gt;Flint&lt;/a&gt; - a visualization library for AI.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://prose.md/learn&quot; target=&quot;_blank&quot;&gt;OpenProse&lt;/a&gt; - AI Markdown contracts.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Auth&lt;a href=&quot;#auth&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://better-auth.com/blog/better-auth-joins-vercel&quot; target=&quot;_blank&quot;&gt;better-auth joins Vercel&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;27&lt;a href=&quot;#27&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jun 29-Jul 5&lt;/p&gt;
&lt;h3&gt;Video Editing&lt;a href=&quot;#video-editing&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=lY7zCOMnuFs&quot; target=&quot;_blank&quot;&gt;Applying frame shapes in FCPX&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Editors&lt;a href=&quot;#editors&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/doomemacs&quot; target=&quot;_blank&quot;&gt;Doom Emacs&lt;/a&gt; - wanting to go back to Emacs. This seems like a good start.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;26&lt;a href=&quot;#26&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jun 22-28&lt;/p&gt;
&lt;h3&gt;Video Editing&lt;a href=&quot;#video-editing-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;FCPX easing tools from Brent Barrie:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.axymotion.com/&quot; target=&quot;_blank&quot;&gt;EasyEase&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://mtmograph.com/products/motion&quot; target=&quot;_blank&quot;&gt;MotionStudie&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@BenMarriott&quot; target=&quot;_blank&quot;&gt;Ben Marriott&lt;/a&gt;: After Effects motion design tutorials.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://derivative.ca/&quot; target=&quot;_blank&quot;&gt;TouchDesigner&lt;/a&gt; tutorials.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Media Server&lt;a href=&quot;#media-server&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://share.google/aimode/OvvKps5DoxQzvXZOY&quot; target=&quot;_blank&quot;&gt;Can I use Google Drive as a Jellyfin source&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Tools&lt;a href=&quot;#tools-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://twittershots.com/#pricing&quot; target=&quot;_blank&quot;&gt;Tweetshot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;24&lt;a href=&quot;#24&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jun 8-14&lt;/p&gt;
&lt;h3&gt;Games&lt;a href=&quot;#games&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Destiny 2 prep: &lt;a href=&quot;https://www.forbes.com/sites/paultassi/2026/06/04/what-to-play-and-how-to-prepare-for-destiny-2s-huge-june-9-patch/&quot; target=&quot;_blank&quot;&gt;What To Play And How To Prepare For Destiny 2’s Huge June 9 Patch (Forbes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Simple Apps&lt;a href=&quot;#simple-apps&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;More simple apps being monetized: &lt;a href=&quot;https://effect.app&quot; target=&quot;_blank&quot;&gt;Effect&lt;/a&gt; and Joel Hooks’ &lt;a href=&quot;https://shitrat-brain-proposal.wzrrd.sh&quot; target=&quot;_blank&quot;&gt;wzrrd.sh experiment&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;23&lt;a href=&quot;#23&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jun 1-7&lt;/p&gt;
&lt;h3&gt;Personal System&lt;a href=&quot;#personal-system&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Added &lt;a href=&quot;https://captioner.chan.dev/&quot; target=&quot;_blank&quot;&gt;Captioner&lt;/a&gt;, &lt;a href=&quot;https://qr.chan.dev/&quot; target=&quot;_blank&quot;&gt;QR&lt;/a&gt;, and &lt;a href=&quot;https://yaudit.chan.dev/&quot; target=&quot;_blank&quot;&gt;YouTube Audit&lt;/a&gt; as new personal-system tools.&lt;/li&gt;
&lt;li&gt;Mapped middle-click to Wispr Flow with Karabiner.&lt;/li&gt;
&lt;li&gt;Idea: build an MCP inspector that connects to a server and shows available tools and descriptions.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;AI / Agents&lt;a href=&quot;#ai--agents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Grok STT was not as strong as advertised in Captioner testing. Best results came from Whisper plus an Anthropic auditor; Sonnet models seemed to be the sweet spot, though xAI API credits are available via the &lt;a href=&quot;https://console.x.ai/&quot; target=&quot;_blank&quot;&gt;xAI Console&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://poke.com/&quot; target=&quot;_blank&quot;&gt;Poke&lt;/a&gt; — new AI tool to explore.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://isitagentready.com/&quot; target=&quot;_blank&quot;&gt;Is It Agent Ready?&lt;/a&gt; — combine with &lt;code&gt;/goals&lt;/code&gt;; strong fit.&lt;/li&gt;
&lt;li&gt;Clearly AI-built sites that seem to be connecting in AEO research for my tools: &lt;a href=&quot;https://scribeforge.tech&quot; target=&quot;_blank&quot;&gt;ScribeForge&lt;/a&gt; and &lt;a href=&quot;https://framewise.art&quot; target=&quot;_blank&quot;&gt;Framewise&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;WorkOS&lt;a href=&quot;#workos-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://workos.latticehq.com/reviews/b56eff53-c29c-4ca3-8119-c6a3fc446f44/participant/reviewee-packet&quot; target=&quot;_blank&quot;&gt;WorkOS year-end review&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Video Ideas&lt;a href=&quot;#video-ideas&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;What is a basic AI concept — agent, harness, etc.&lt;/li&gt;
&lt;li&gt;Flue Agents exploration.&lt;/li&gt;
&lt;li&gt;Building on Cloudflare.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;22&lt;a href=&quot;#22&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;System&lt;a href=&quot;#system&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Added &lt;code&gt;captioner.chan.dev&lt;/code&gt; to the cloud system inventory: a personal captioning workflow app built with Flue workflows.&lt;/li&gt;
&lt;li&gt;Updated shutdown ritual practice to keep tracking notable changes to the personal system: tools, services, domains, workflows, automations, and conventions.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Agents / Workflows&lt;a href=&quot;#agents--workflows&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Built first Flue workflow at &lt;code&gt;captioner.chan.dev&lt;/code&gt; using GPT 5.5 xhigh and the &lt;a href=&quot;https://flueframework.com/docs/guide/workflows/&quot; target=&quot;_blank&quot;&gt;Flue Workflows guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/addyosmani/status/2059844244907696186&quot; target=&quot;_blank&quot;&gt;The Orchestration Tax — Addy Osmani&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://swagger.io/docs/specification/v3_0/about/&quot; target=&quot;_blank&quot;&gt;Swagger OpenAPI reference&lt;/a&gt; — for consistent agent responses.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Auth / APIs&lt;a href=&quot;#auth--apis&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.postman.com/what-is-a-bearer-token/&quot; target=&quot;_blank&quot;&gt;What is a bearer token? (Postman)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Aesthetic / Culture&lt;a href=&quot;#aesthetic--culture&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.virtualelena.co/p/toward-a-working-definition-of-paperclip&quot; target=&quot;_blank&quot;&gt;Toward a Working Definition of Paperclip-Punk&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/WarnerTeddy/status/2060018688645115964&quot; target=&quot;_blank&quot;&gt;Apartment birds&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;20&lt;a href=&quot;#20&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Shutdown&lt;a href=&quot;#shutdown&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Ran &lt;code&gt;update-deps&lt;/code&gt;; upgraded SQLite from 3.53.0 to 3.53.1 and refreshed global Node tools.&lt;/li&gt;
&lt;li&gt;Ran &lt;code&gt;sync-repos&lt;/code&gt;; all synced except &lt;code&gt;.agents&lt;/code&gt;, which had local shutdown ritual changes.&lt;/li&gt;
&lt;li&gt;Updated shutdown ritual to run maintenance, review local repos, and ask before committing or pushing.&lt;/li&gt;
&lt;li&gt;Committed and pushed &lt;code&gt;.agents&lt;/code&gt;: &lt;code&gt;b28d067 Update shutdown ritual maintenance flow&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;19&lt;a href=&quot;#19&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=CEvIs9y1uog&quot; target=&quot;_blank&quot;&gt;Build Skills Instead&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Write “Where to put agent skills”&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/louisedesadeleer/clipify&quot; target=&quot;_blank&quot;&gt;Clipify&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=l0Vqm0ZIySc&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=l0Vqm0ZIySc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Stuff about Claude
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.anthropic.com/constitution&quot; target=&quot;_blank&quot;&gt;https://www.anthropic.com/constitution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.darioamodei.com/essay/machines-of-loving-grace#basic-assumptions-and-framework&quot; target=&quot;_blank&quot;&gt;https://www.darioamodei.com/essay/machines-of-loving-grace#basic-assumptions-and-framework&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;18&lt;a href=&quot;#18&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Agent Workflow systems that support video
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.mux.com&quot; target=&quot;_blank&quot;&gt;MUX&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://trigger.dev/docs/guides/examples/ffmpeg-video-processing&quot; target=&quot;_blank&quot;&gt;Trigger.dev&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.inngest.com/blog/banger-video-rendering-pipeline&quot; target=&quot;_blank&quot;&gt;Inngest&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://flueframework.com&quot; target=&quot;_blank&quot;&gt;Flue: The Agent Harness Framework&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/FredKSchott/status/2050274923852210397&quot; target=&quot;_blank&quot;&gt;Flue annoncement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;17&lt;a href=&quot;#17&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h2&gt;16&lt;a href=&quot;#16&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Open Tabs&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;15&lt;a href=&quot;#15&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Apr 6-12&lt;/p&gt;
&lt;h3&gt;Video Tools to Try&lt;a href=&quot;#video-tools-to-try&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Apr 7 — &lt;a href=&quot;https://x.com/runwayml/status/2041154625013711081&quot; target=&quot;_blank&quot;&gt;Runway (X)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Apr 10 — &lt;a href=&quot;https://x.com/bephrem/status/2042701095626248225&quot; target=&quot;_blank&quot;&gt;The Startup Content Studio (X)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Infrastructure&lt;a href=&quot;#infrastructure&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Apr 7 — &lt;a href=&quot;https://www.allthingsdistributed.com/2026/04/s3-files-and-the-changing-face-of-s3.html&quot; target=&quot;_blank&quot;&gt;S3 Files and the Changing Face of S3 (All Things Distributed)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Video ideas:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build a skill skill&lt;/li&gt;
&lt;li&gt;Unversal Skill directory&lt;/li&gt;
&lt;li&gt;Distribution-shifting vs direction (on building skills)&lt;/li&gt;
&lt;li&gt;5 Coding Agents, one prompt&lt;/li&gt;
&lt;li&gt;Building a Text Agent (Blue Bubbles)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;NCC Message notes&lt;a href=&quot;#ncc-message-notes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Mess -&amp;gt; Message -&amp;gt; Messanger
— Chris Brown&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Embrace interruption&lt;/li&gt;
&lt;li&gt;Obey instructions&lt;/li&gt;
&lt;li&gt;Don’t stop intercessions&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Make the swap (Indiana Jones):
Jesus for whatever my idol is.&lt;/p&gt;
&lt;h2&gt;14&lt;a href=&quot;#14&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Video ideas:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to Say Goodbye. On dealing with death of loved ones.&lt;/li&gt;
&lt;li&gt;How to write an AI Skill&lt;/li&gt;
&lt;li&gt;DevTools MCP&lt;/li&gt;
&lt;li&gt;Better than AI. (Gmail scripts)&lt;/li&gt;
&lt;li&gt;Firecrawl.dev&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;13&lt;a href=&quot;#13&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Pi First Look&lt;a href=&quot;#pi-first-look&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Published &lt;a href=&quot;https://chan.dev/pi&quot; target=&quot;_blank&quot;&gt;pi&lt;/a&gt; — first look video and essay&lt;/li&gt;
&lt;li&gt;Published seed posts: &lt;a href=&quot;https://chan.dev/sticky&quot; target=&quot;_blank&quot;&gt;sticky&lt;/a&gt;, &lt;a href=&quot;https://chan.dev/irrelevance&quot; target=&quot;_blank&quot;&gt;irrelevance&lt;/a&gt;, &lt;a href=&quot;https://chan.dev/it-eats-me&quot; target=&quot;_blank&quot;&gt;it eats me&lt;/a&gt;, &lt;a href=&quot;https://chan.dev/dvorak-and-vim-and-cancer&quot; target=&quot;_blank&quot;&gt;dvorak and vim and cancer&lt;/a&gt;, &lt;a href=&quot;https://chan.dev/a-layer-below&quot; target=&quot;_blank&quot;&gt;a layer below&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ran full video pipeline (cut → polish → zoom → publish) on Pi first look recording&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://pi.dev&quot; target=&quot;_blank&quot;&gt;Pi&lt;/a&gt; / &lt;a href=&quot;https://github.com/mariozechner/pi-coding-agent&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://agentskills.io&quot; target=&quot;_blank&quot;&gt;Agent Skills Standard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Exported Pi session as &lt;code&gt;.jsonl&lt;/code&gt; — testing session portability&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Chan + Nisi Livestream on Pi&lt;a href=&quot;#chan--nisi-livestream-on-pi&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Livestream with Nick Nisi exploring Pi — model switching, extensions, plugins, Case tool, vendor lock-in discussion&lt;/li&gt;
&lt;li&gt;Full pipeline processed (cut → polish → zoom)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;WorkOS 2026 Spring Launch Week&lt;a href=&quot;#workos-2026-spring-launch-week&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Wrote and recorded launch week recap script (five features in five days)&lt;/li&gt;
&lt;li&gt;Recorded/edited Pipes MCP video (Day 4)&lt;/li&gt;
&lt;li&gt;Features: Multiple Apps, AuthKit Analytics, Agent Experience, Pipes MCP, Widget Skills&lt;/li&gt;
&lt;li&gt;Downloaded WorkOS Employee LinkedIn Banner&lt;/li&gt;
&lt;li&gt;WorkOS Launch Week recap script&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;VPN Setup&lt;a href=&quot;#vpn-setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Downloaded OpenVPN configs&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Agentic Fever&lt;a href=&quot;#agentic-fever&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://youtu.be/lTWA7dpk4-8?si=2tPsfvQRCFA7s-Uo&quot; target=&quot;_blank&quot;&gt;Agentic Fever (YouTube)&lt;/a&gt; — watch and maybe respond to&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Universal Skills / Agent Interop&lt;a href=&quot;#universal-skills--agent-interop&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://vibecodingconsultant.com/blog/openskills-universal-skills-open-ecosystem/&quot; target=&quot;_blank&quot;&gt;OpenSkills: Universal Skills Open Ecosystem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kubiyabot/skill&quot; target=&quot;_blank&quot;&gt;kubiyabot/skill (GitHub)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://share.google/aimode/NlnYJNBTrpN0sd49v&quot; target=&quot;_blank&quot;&gt;Google AI Mode on skills&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;agents.md&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;AI Agents&lt;a href=&quot;#ai-agents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/posthog/status/2036847339466301918&quot; target=&quot;_blank&quot;&gt;What we wish we knew about building AI agents (PostHog)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://share.google/aimode/GBFZVufOIrSCbPsjg&quot; target=&quot;_blank&quot;&gt;Base prompts to remember you’re talking to AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing&quot; target=&quot;_blank&quot;&gt;Signs of AI writing on Wikipedia&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Dev Life&lt;a href=&quot;#dev-life&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.threads.com/@sakeeb.rahman/post/DWTz59gEeC5&quot; target=&quot;_blank&quot;&gt;On being a polyglot in 2026 (Threads)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/humanwhocodes/crosspost&quot; target=&quot;_blank&quot;&gt;crosspost — post from terminal (GitHub)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Watch Stuff&lt;a href=&quot;#watch-stuff&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Pseudo world time: add a worldtime bezel to a normal watch, match timezone to hour hand. Manual but fun.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ebay.com/itm/318036265770&quot; target=&quot;_blank&quot;&gt;Seiko SKX007 (eBay)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Lie Detector Science Project (with Ruby)&lt;a href=&quot;#lie-detector-science-project-with-ruby&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://hackaday.com/2025/12/02/little-lie-detector-is-probably-no-worse-than-the-big-ones/&quot; target=&quot;_blank&quot;&gt;Little Lie Detector Is Probably No Worse Than The Big Ones (Hackaday)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Carryover from Week 12&lt;a href=&quot;#carryover-from-week-12&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt; #thumbpulling&lt;/li&gt;
&lt;li&gt; Moar chanisi&lt;/li&gt;
&lt;li&gt; Migrate old projects off of Frame, to Lawn&lt;/li&gt;
&lt;li&gt; Watch Akira (1988)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;12&lt;a href=&quot;#12&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Browser Use&lt;a href=&quot;#browser-use&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://browser-use.com/posts/web-agent-authentication&quot; target=&quot;_blank&quot;&gt;Web Agent Authentication&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/browser-use/browser-use&quot; target=&quot;_blank&quot;&gt;browser-use/browser-use (GitHub)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Links&lt;a href=&quot;#links&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://youtube.com/shorts/DiiPufA3YqM?si=3uKGQHRw4p5FqGAo&quot; target=&quot;_blank&quot;&gt;Driving faster doesn’t get you there faster&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/GoogleAIStudio/status/2034655113961455651?s=20&quot; target=&quot;_blank&quot;&gt;AI Studio updates&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Watch Deals&lt;a href=&quot;#watch-deals&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.creationwatches.com/products/seiko-mens-watches-208/seiko-5-automatic-snxs79-snxs79k1-snxs79k-mens-watch-8901.html?currency=USD&amp;amp;usrcntry=US&amp;amp;srsltid=AfmBOorm-awjFdj5nkOh0nOCrn0zHzasU9DBUeW9kCbJP5b5kXNab4VY9A8&quot; target=&quot;_blank&quot;&gt;Seiko 5 Automatic SNXS79&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.creationwatches.com/products/aqualand-divers-143/seiko-automatic-divers-200m-jubilee-bracelet-skx009k2-mens-watch-712.html&quot; target=&quot;_blank&quot;&gt;Seiko SKX009 Automatic Diver (Jubilee bracelet)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.creationwatches.com/products/seiko-mens-watches-208/seiko-automatic-divers-skx009-skx009k1-skx009k-mens-watch-1454.html&quot; target=&quot;_blank&quot;&gt;Seiko SKX009 Automatic Diver&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bloomingdales.com/shop/product/seiko-5-sports-watch-39.4mm?ID=4192833&amp;amp;CategoryID=3376&amp;amp;swatchColor=Black/Green&quot; target=&quot;_blank&quot;&gt;Seiko 5 Sports 39.4mm (Black/Green)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bloomingdales.com/shop/product/seiko-5-sports-watch-39.4mm?ID=4188765&amp;amp;CategoryID=3376&quot; target=&quot;_blank&quot;&gt;Seiko 5 Sports 39.4mm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bloomingdales.com/shop/product/seiko-watch-prospex-speedtimer-5-chronograph-41mm?ID=5371662&amp;amp;CategoryID=3376&quot; target=&quot;_blank&quot;&gt;Seiko Prospex Speedtimer Solar Chronograph 41mm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.bloomingdales.com/shop/product/citizen-eco-drive-classic-suratto-watch-38mm?ID=5246344&amp;amp;CategoryID=3376&quot; target=&quot;_blank&quot;&gt;Citizen Eco-Drive Classic Suratto 38mm&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;11&lt;a href=&quot;#11&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Harness Engineering&lt;a href=&quot;#harness-engineering&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://openai.com/index/harness-engineering/&quot; target=&quot;_blank&quot;&gt;Harness Engineering&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents&quot; target=&quot;_blank&quot;&gt;Effective harnesses for long-running agents&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;One-sentence summaries&lt;a href=&quot;#one-sentence-summaries&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;OpenAI frames harness engineering as building the environment around agents, with docs, tools, evals, and review loops that let teams ship reliably.&lt;/li&gt;
&lt;li&gt;Anthropic argues long-running agents work best when harnesses favor clear state, guardrails, and measurable checkpoints over orchestration complexity.&lt;/li&gt;
&lt;li&gt;This stream shows a practical harness pattern where an orchestrator delegates implement, verify, review, and close stages, then learns from retros.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Highlights&lt;a href=&quot;#highlights&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Fixing the harness is often more valuable than fixing one failed run.&lt;/li&gt;
&lt;li&gt;Agents need machine-checkable evidence like tests, logs, and recordings, not just good prompts.&lt;/li&gt;
&lt;li&gt;Persisted run state like &lt;code&gt;task.json&lt;/code&gt; makes long workflows resumable and less fragile.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Hooks&lt;a href=&quot;#hooks&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;If the agent cannot prove success, it has not earned merge.&lt;/li&gt;
&lt;li&gt;Your next leverage point may be better rails, not better prompts.&lt;/li&gt;
&lt;li&gt;Every failure can become training data for a stronger harness.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Stream with Nick Nisi&lt;a href=&quot;#stream-with-nick-nisi&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;“It’s going on the fridge. But it’s not going on the wall. (Somebody else’s father won’t accept it)” — &lt;a href=&quot;https://youtu.be/3Ploi723hg4?t=981&quot; target=&quot;_blank&quot;&gt;Cooridor Crew&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Stream assumptions vs. the articles&lt;a href=&quot;#stream-assumptions-vs-the-articles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;CORRECT&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &quot;The harness is what you build on top of generic tools for your&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;specific project.&quot; Both articles confirm this. OpenAI: &quot;the full&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;environment of scaffolding, constraints, and feedback loops.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Anthropic calls the Agent SDK a &quot;general-purpose agent harness,&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;so both layers exist — Chan and Nick were each right about a&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;different one.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &quot;I will steer, I will never execute.&quot; Dead on. OpenAI says&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;engineers &quot;shift from writing code to designing environments,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;specifying intent, and providing structured feedback.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &quot;Fix the harness, not the individual problem.&quot; Almost verbatim&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;from OpenAI: &quot;When the agent struggles, we treat it as a signal:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;identify what is missing — tools, guardrails, documentation —&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;and feed it back into the repository.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- The retrospective/learning loop maps to OpenAI&apos;s third pillar:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;entropy management — periodic agents scanning for drift,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;inconsistencies, and pattern deviations.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- State persistence via task.json matches Anthropic&apos;s&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;claude-progress.txt and feature_list.json — external memory so&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;agents can resume across sessions.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- Cryptographic hash hooks to prevent agent cheating maps to&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;OpenAI&apos;s architectural constraints enforced mechanically, not&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;through suggestion.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &quot;The harness is the actual product.&quot; OpenAI says exactly this.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;INCOMPLETE&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- Architectural constraints as a full pillar. OpenAI enforces&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dependency flow rules (Types → Config → Repo → Service →&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Runtime → UI) with custom linters, structural tests, and CI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;blocks. CASE focuses on orchestration and retros but doesn&apos;t&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;describe this kind of structural enforcement.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- Documentation as infrastructure. Both articles treat repo docs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;(AGENTS.md, structured docs/) as foundational infrastructure,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;not afterthought. The stream touches philosophy.md and skill.md&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;but doesn&apos;t frame documentation investment as a core pillar.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- Entropy management at scale. The retro agent is a solo-dev&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;version; OpenAI describes background agents continuously&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;scanning for doc inconsistencies, architectural drift, and&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;dependency issues — proactive, not just reactive per-run.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;MISGUIDED&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &quot;Is harness engineering basically building your own agents?&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Both articles frame it as environment design — repo structure,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;CI, docs, constraints, feedback loops. The multi-agent pipeline&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;(orchestrator → implementer → verifier → reviewer → closer →&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;retrospective) is more &quot;agent engineering&quot; in OpenAI&apos;s taxonomy.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;The harness is the reins, saddle, fence, and road — not the&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;rider giving commands.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- The level of orchestration complexity. Anthropic uses just two&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;agents (initializer + coding agent) with different prompts.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;OpenAI doesn&apos;t emphasize multi-agent orchestration at all — they&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;focus on making the environment so well-constrained that a&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;single agent can succeed. If you need elaborate orchestration,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;it may signal the harness needs more investment.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- The terminology confusion. OpenAI drew a clean taxonomy: prompt&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;engineering (what to ask), context engineering (what to show),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;harness engineering (how the environment is designed), agent&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;engineering (agent internals). The terms have converged more&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;than the stream suggested.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;TL;DR&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Core instincts were right: the harness is the product, steer don&apos;t&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;execute, fix the system not the symptom, build learning loops.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Incomplete on architectural constraints and docs-as-infrastructure.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Slightly misguided in conflating agent orchestration with the&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;harness itself — the articles define the harness as the environment,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;not the agent pipeline running inside it.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;More links&lt;a href=&quot;#more-links&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://heroicgameslauncher.com/&quot; target=&quot;_blank&quot;&gt;Heroic Games Launcher&lt;/a&gt; — for running other platform games on SteamOS.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/xpasky/status/2032252486145253865&quot; target=&quot;_blank&quot;&gt;Chrome 146 Browser MCP example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://x.com/xpasky/status/2032516171996557701?s=20&quot; target=&quot;_blank&quot;&gt;Chrome 146 Browser MCP enabling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chrome://inspect/#remote-debugging&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session&quot; target=&quot;_blank&quot;&gt;Chrome DevTools MCP: debug your browser session&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.google/products-and-platforms/products/chrome/chrome-productivity-improvements/&quot; target=&quot;_blank&quot;&gt;Chrome Split View&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://thegp.notion.site/harness-engineering-in-an-agent-first-world&quot; target=&quot;_blank&quot;&gt;Harness engineering in an agent-first world&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Remembered that I like &lt;a href=&quot;https://iina.io/&quot; target=&quot;_blank&quot;&gt;IINA&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://timex.com/products/q-timex-continental-chronograph-40mm-stainless-steel-bracelet-watch-tw2y55900&quot; target=&quot;_blank&quot;&gt;Q Timex Continental Chronograph (blue)&lt;/a&gt; is beautiful.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Link opening routers on Mac&lt;a href=&quot;#link-opening-routers-on-mac&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://loshadki.app/openin4/&quot; target=&quot;_blank&quot;&gt;OpenIn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://choosy.app/&quot; target=&quot;_blank&quot;&gt;Choosy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://webcatalog.io/en/switchbar&quot; target=&quot;_blank&quot;&gt;Switchbar&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;For Next Week&lt;a href=&quot;#for-next-week&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;#thumbpulling&lt;/li&gt;
&lt;li&gt;Moar chanisi&lt;/li&gt;
&lt;li&gt;Migrate old projects off of Frame, to Lawn&lt;/li&gt;
&lt;li&gt;Watch Akira (1988)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;10&lt;a href=&quot;#10&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Databrix roadshow intro&lt;a href=&quot;#databrix-roadshow-intro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Let’s talk about passwords&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;What was your first? Blurt it out nobody cares&lt;/li&gt;
&lt;li&gt;(play up options)&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Now acct protection requires a meaningful ammount of infrastructure. MFA, Emails, Passwords, JWT-checking.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Reading&lt;a href=&quot;#reading-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ghuntley.com/agent/&quot; target=&quot;_blank&quot;&gt;how to build a coding agent: free workshop&lt;/a&gt; — Hands-on breakdown of coding-agent fundamentals and the core tool loop.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://cline.bot/blog/what-makes-a-coding-agent&quot; target=&quot;_blank&quot;&gt;What Makes a Coding Agent?&lt;/a&gt; — Defines agents as model + tools + instructions with recursive execution.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blog.cloudflare.com/code-mode/&quot; target=&quot;_blank&quot;&gt;Code Mode: the better way to use MCP&lt;/a&gt; — Argues LLMs perform better writing TypeScript API calls than raw tool calls.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;For Next Week&lt;a href=&quot;#for-next-week-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;What is Harness Engineering?&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;9&lt;a href=&quot;#9&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h2&gt;8&lt;a href=&quot;#8&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Writing&lt;a href=&quot;#writing-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing&quot; target=&quot;_blank&quot;&gt;Wikipedia: Signs of AI writing&lt;/a&gt; — Nick Nisi says he curls it (since LLMs are blocked) to ground his writing skills.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Alternative window managers&lt;a href=&quot;#alternative-window-managers&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/BarutSRB/OmniWM&quot; target=&quot;_blank&quot;&gt;OmniWM&lt;/a&gt; — soft-fork of Aerospace with Hyprland dwindle layout and Niri tabs&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/hillyu/dwmac&quot; target=&quot;_blank&quot;&gt;dwmac&lt;/a&gt; — hard fork of Aerospace&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Molly Graham — frameworks for rapid career growth&lt;a href=&quot;#molly-graham--frameworks-for-rapid-career-growth&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/twzLDx9iers&quot; target=&quot;_blank&quot;&gt;https://youtu.be/twzLDx9iers&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;J-Curve vs. Stairs&lt;/strong&gt; — jump into roles you’re unqualified for. You fall for 6-9 months, then climb far beyond where steady promotions would take you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fear as signal&lt;/strong&gt; — financial fear is concrete (calculate your burn rate). Capability fear (“am I good enough?”) is a green light for growth. Run toward it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Give away your Legos&lt;/strong&gt; — as a company scales, hand off what you’ve mastered to new hires. Holding on stalls your career.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two-week rule&lt;/strong&gt; — most emotional reactions to change settle in two weeks. Only act on feelings that persist beyond that.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bob the Monster&lt;/strong&gt; — externalize irrational reactions by personifying them. Acknowledge Bob, don’t follow his advice.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Waterline model&lt;/strong&gt; — diagnose team problems in layers: structural, dynamics, interpersonal, intrapersonal. 80% of problems are structural or dynamics. Fix those first.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Three rules for goals&lt;/strong&gt; — no more than three goals; one must win when they conflict; a new intern should understand them on day one. Each goal gets one owner (not the CEO).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Strategy means painful choices&lt;/strong&gt; — if setting goals doesn’t hurt, you’re not prioritizing hard enough.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Founder effect&lt;/strong&gt; — ~80% of culture reflects the founder’s personality. Reinforce it rather than inventing new values. Culture lives in hiring/firing decisions, not posters.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Invest in high performers&lt;/strong&gt; — highest ROI comes from developing your best people, not rescuing struggling ones.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hiring is 50/50; firing is a skill&lt;/strong&gt; — even great managers are right about half the time. Fire quickly and directly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Never promise what you can’t control&lt;/strong&gt; — don’t guarantee titles or promotions during hiring. They become letter bombs when reality changes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;~50% annual growth is optimal&lt;/strong&gt; — beyond 100% headcount growth causes severe org pain. Under-resourcing forces focus.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Escalation isn’t failure&lt;/strong&gt; — when equals disagree, escalating to a decision-maker is productive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;LinkedIn Crush test&lt;/strong&gt; — if you’re more excited about announcing the title than doing the work, that’s misalignment.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be a professional learner&lt;/strong&gt; — learning speed &amp;gt; existing expertise. Asking obvious questions brings clarity everyone else is afraid to seek.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;7&lt;a href=&quot;#7&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h2&gt;6&lt;a href=&quot;#6&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;WorkOS NYC office opening and time with Zack.&lt;/p&gt;
&lt;h2&gt;5&lt;a href=&quot;#5&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Kids made dinner!&lt;/p&gt;
&lt;h2&gt;4&lt;a href=&quot;#4&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Restarted Wellbutrin/Bupropion&lt;/li&gt;
&lt;li&gt;Improved personal accounting by starting *Recurring expenses acct”&lt;/li&gt;
&lt;li&gt;Streamed on CC + Remotion&lt;/li&gt;
&lt;li&gt;Medication helping me lock into full task&lt;/li&gt;
&lt;li&gt;Enjoyed new ghostbusters after long week of screens&lt;/li&gt;
&lt;li&gt;I didn’t buy or obsees over watches&lt;/li&gt;
&lt;li&gt;Served at church with Rock and discussed favorite verses.
&lt;ul&gt;
&lt;li&gt;Shared sadness over not being invited.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;#video on “asking the right questions of AI”/interview&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Ideas&lt;a href=&quot;#ideas&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;No retained sweets in the house&lt;/li&gt;
&lt;li&gt;#video on materialization function&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Learnings from Cloned Consultant (Claude Code)&lt;a href=&quot;#learnings-from-cloned-consultant-claude-code&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;“Interview me about this…”&lt;/li&gt;
&lt;li&gt;Podcast transcripts are great for research&lt;/li&gt;
&lt;li&gt;Summarize to markdown/html&lt;/li&gt;
&lt;li&gt;Be specific about ouput (“5 star chef”, “Senior dev”)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Things I need from Raycast&lt;a href=&quot;#things-i-need-from-raycast&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Clipboard history, bound&lt;/li&gt;
&lt;li&gt;Snippets, bound
&lt;ul&gt;
&lt;li&gt;email&lt;/li&gt;
&lt;li&gt;expense reports&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;3&lt;a href=&quot;#3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;“Great chokes out God” (in our lives) — Chris Brown
“The worries of this world ad decietfulness of wealth” - Mark 4:19&lt;/p&gt;
&lt;p&gt;“I pray to god that they (congegrants) understand that &lt;em&gt;they&lt;/em&gt; teach 90% of the message.” - William Barkley&lt;/p&gt;
&lt;h3&gt;WorkOS vision for year&lt;a href=&quot;#workos-vision-for-year&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;“WorkOS TV”, constant conference&lt;/li&gt;
&lt;li&gt;“Build fast” mantra/theme&lt;/li&gt;
&lt;li&gt;Merch drops&lt;/li&gt;
&lt;li&gt;Don’t do evergreen. Focus on what’s fresh.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Hourly materialization&lt;a href=&quot;#hourly-materialization&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Materialize a descriptor&lt;/li&gt;
&lt;li&gt;collect descriptors based on date&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Improvements&lt;a href=&quot;#improvements&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Add &lt;em&gt;Recurring expenses&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;2&lt;a href=&quot;#2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Video ideas&lt;a href=&quot;#video-ideas-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Build an AI Saas on WorkOS&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WorkOS CLI&lt;/li&gt;
&lt;li&gt;An Org primer and auto assignment&lt;/li&gt;
&lt;li&gt;Vault for Keys (Anthropic), shared across org&lt;/li&gt;
&lt;li&gt;Stripe and Entitlements&lt;/li&gt;
&lt;li&gt;Widgets for user management (and others)&lt;/li&gt;
&lt;li&gt;RBAC (FGA?)&lt;/li&gt;
&lt;li&gt;Feature flags&lt;/li&gt;
&lt;li&gt;Pipes (Slack integration?)&lt;/li&gt;
&lt;li&gt;Connect&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;1&lt;a href=&quot;#1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=ymeqhF12FgY&quot; target=&quot;_blank&quot;&gt;2026 Pig Zodiac&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Instant Pot Recipes&lt;a href=&quot;#instant-pot-recipes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://pinchofyum.com/we-tried-10-of-the-internets-best-instant-pot-recipes&quot; target=&quot;_blank&quot;&gt;https://pinchofyum.com/we-tried-10-of-the-internets-best-instant-pot-recipes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.slowcookerfromscratch.com/instant-pot-one-pot-meals-for-back-to/&quot; target=&quot;_blank&quot;&gt;https://www.slowcookerfromscratch.com/instant-pot-one-pot-meals-for-back-to/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://triedtestedandtrue.com/instant-pot-chicken-teriyaki-bowl/&quot; target=&quot;_blank&quot;&gt;https://triedtestedandtrue.com/instant-pot-chicken-teriyaki-bowl/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/instantpot/comments/ijzqaw/one_pot_meals/&quot; target=&quot;_blank&quot;&gt;https://www.reddit.com/r/instantpot/comments/ijzqaw/one_pot_meals/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>log</category><category>life</category></item><item><title>Readline</title><link>https://chan.dev/readline</link><guid isPermaLink="true">https://chan.dev/readline</guid><description>Readline keyboard shortcuts for terminal and text editing. Ctrl-a, Ctrl-e, Ctrl-k, Ctrl-w, and Meta key navigation reference.</description><pubDate>Thu, 17 Apr 2025 00:00:00 GMT</pubDate><content:encoded>




















































































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;shortcut&lt;/th&gt;&lt;th&gt;outcome&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-a&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move to the beginning of the line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-b&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move backward one character&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-d&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;delete the character forward&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-e&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move to the end of the line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-f&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move forward one character&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-o&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;create new line below cursor&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-p&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move up one line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;Meta-f&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move forward one word&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;Meta-p&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move back one word&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-n&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move down one line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-h&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;delete the character before the cursor&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-k&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;cut from the cursor to the end of the line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-l&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;clearn the screen&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-o&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;open a new line below the current line&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-t&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;swap the character before the cursor with the character under the cursor&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-v&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;move to last character in file&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-w&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;delete the word before the cursor&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-y&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;yank (paste)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;kbd&gt;ctrl-k&lt;/kbd&gt;&lt;/td&gt;&lt;td&gt;delete from the cursor to the end of the line&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;em&gt;On a Mac, &lt;kbd&gt;Meta&lt;/kbd&gt; is &lt;kbd&gt;ctrl + opt&lt;/kbd&gt;.&lt;/em&gt;&lt;/p&gt;</content:encoded><category>cli</category><category>reference</category></item><item><title>How to Start a Python Project</title><link>https://chan.dev/start-a-python-project</link><guid isPermaLink="true">https://chan.dev/start-a-python-project</guid><description>A step-by-step guide on how to create a Python virtual environment using the venv module</description><pubDate>Tue, 03 Sep 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;These steps will help you set up and manage a Python environment on macOS, using Homebrew.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Watch how I used Cursor to learn about python environments:&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;h2&gt;TLDR&lt;a href=&quot;#tldr&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Install Python3 with Homebrew&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;brew &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;python3&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Create a virtual environment&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python3 &lt;/span&gt;&lt;span&gt;-m&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;venv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my-venv&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Activate a virtual environment&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;source &lt;/span&gt;&lt;span&gt;my-venv/bin/activate&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Install packages packages&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;package-name&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Generate a requirements.txt file&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip &lt;/span&gt;&lt;span&gt;freeze&lt;/span&gt;&lt;span&gt; &amp;gt; &lt;/span&gt;&lt;span&gt;requirements.txt&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# Deactivate an active virtual environment&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;deactivate&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Install Python3&lt;a href=&quot;#install-python3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If not installed, use your system package manager to install Python3.&lt;/p&gt;
&lt;p&gt;Instructions here use &lt;a href=&quot;https://brew.sh/&quot; target=&quot;_blank&quot;&gt;Homebrew&lt;/a&gt; for macOS.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;brew &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;python3&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Create a Virtual Environment with &lt;code&gt;venv&lt;/code&gt;&lt;a href=&quot;#create-a-virtual-environment-with-venv&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python3 &lt;/span&gt;&lt;span&gt;-m&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;venv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;my-venv&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Use any directory name you like.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Activate a Virtual Environment with &lt;code&gt;source&lt;/code&gt;&lt;a href=&quot;#activate-a-virtual-environment-with-source&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;source &lt;/span&gt;&lt;span&gt;my-venv/bin/activate&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Install Packages with &lt;code&gt;pip&lt;/code&gt;&lt;a href=&quot;#install-packages-with-pip&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;package-name&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Example: &lt;code&gt;pip install awscli&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Generate a &lt;code&gt;requirements.txt&lt;/code&gt; file with &lt;code&gt;pip freeze&lt;/code&gt;&lt;a href=&quot;#generate-a-requirementstxt-file-with-pip-freeze&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pip &lt;/span&gt;&lt;span&gt;freeze&lt;/span&gt;&lt;span&gt; &amp;gt; &lt;/span&gt;&lt;span&gt;requirements.txt&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The resulting file will look like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;awscli==1.34.10&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;botocore==1.35.10&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;colorama==0.4.6&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;docutils==0.16&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;jmespath==1.0.1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pyasn1==0.6.0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;python-dateutil==2.9.0.post0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;PyYAML==6.0.2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;rsa==4.7.2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;s3transfer==0.10.2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;six==1.16.0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;urllib3==2.2.2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Deactivate the Virtual Environment&lt;a href=&quot;#deactivate-the-virtual-environment&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;deactivate&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Some prefer &lt;code&gt;virtualenv&lt;/code&gt; over &lt;code&gt;venv&lt;/code&gt;&lt;a href=&quot;#some-prefer-virtualenv-over-venv&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;While Python3 comes with &lt;code&gt;venv&lt;/code&gt; by default, some use &lt;a href=&quot;https://virtualenv.pypa.io/en/latest/&quot; target=&quot;_blank&quot;&gt;virtualenv&lt;/a&gt; for “additional features” — though I can’t speak directly to the differences.&lt;/p&gt;
&lt;h2&gt;Additional reading on virtual environments in Homebrew&lt;a href=&quot;#additional-reading-on-virtual-environments-in-homebrew&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://nicolaiarocci.com/when-homebrew-breaks-your-python-virtual-environment/&quot; target=&quot;_blank&quot;&gt;https://nicolaiarocci.com/when-homebrew-breaks-your-python-virtual-environment/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/25701133/how-to-tell-homebrew-to-install-inside-virtualenv&quot; target=&quot;_blank&quot;&gt;https://stackoverflow.com/questions/25701133/how-to-tell-homebrew-to-install-inside-virtualenv&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://formulae.brew.sh/formula/virtualenv&quot; target=&quot;_blank&quot;&gt;https://formulae.brew.sh/formula/virtualenv&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/orgs/Homebrew/discussions/4419&quot; target=&quot;_blank&quot;&gt;https://github.com/orgs/Homebrew/discussions/4419&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://discuss.python.org/t/on-macos-14-pip-install-throws-error-externally-managed-environment/50352&quot; target=&quot;_blank&quot;&gt;https://discuss.python.org/t/on-macos-14-pip-install-throws-error-externally-managed-environment/50352&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3?permalink_comment_id=2809269&quot; target=&quot;_blank&quot;&gt;https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3?permalink_comment_id=2809269&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://courses.cs.washington.edu/courses/cse446/18wi/sections/section1/virtualenv_handout.pdf&quot; target=&quot;_blank&quot;&gt;https://courses.cs.washington.edu/courses/cse446/18wi/sections/section1/virtualenv_handout.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/learnpython/comments/xf1pv6/brew_python_and_libraries_installation_blues/&quot; target=&quot;_blank&quot;&gt;https://www.reddit.com/r/learnpython/comments/xf1pv6/brew_python_and_libraries_installation_blues/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</content:encoded><category>python</category></item><item><title>AuthKit Preview Deploys: Step-by-Step Guide</title><link>https://chan.dev/authkit-preview-deploys</link><guid isPermaLink="true">https://chan.dev/authkit-preview-deploys</guid><description>Configure AuthKit redirect URIs for Vercel, Netlify, and Cloudflare preview deployments. Step-by-step guide with wildcard patterns.</description><pubDate>Thu, 22 Aug 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I love preview deploys for quick collaboration.&lt;/p&gt;
&lt;p&gt;But integrating preview deploys with services that require a deploy-specific redirect URI requires extra effort.&lt;/p&gt;
&lt;p&gt;This guide integrates AuthKit and &lt;a href=&quot;https://pages.cloudflare.com/&quot; target=&quot;_blank&quot;&gt;Cloudflare Pages&lt;/a&gt; preview deploys.&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;h2&gt;Add your preview deploy URL to WorkOS, using a wildcard&lt;a href=&quot;#add-your-preview-deploy-url-to-workos-using-a-wildcard&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;WorkOS only allows redirect to known URIs.&lt;/p&gt;
&lt;p&gt;In the WorkOS dashboard, navigate to the &lt;strong&gt;Redirects&lt;/strong&gt; page to add a new redirect URI.&lt;/p&gt;
&lt;p&gt;For this field, use your preview deploy URL — replacing the build id with an asterisk &lt;code&gt;*&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;https://*.my-CF-site.pages.dev/*&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now WorkOS accepts any preview deploy URL as a redirect URI.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-preview-deploys.DFefiZC4_1gM1IW.webp&quot; alt=&quot;WorkOS Redirects page. Adding a new Redirect URI for a Cloudflaer Pages subdomain, using an asterisk wildcard in place of build id.&quot; loading=&quot;lazy&quot; width=&quot;1920&quot; height=&quot;1080&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Use Cloudflare’s &lt;code&gt;CF_PAGES_URL&lt;/code&gt; environment variable&lt;a href=&quot;#use-cloudflares-cf_pages_url-environment-variable&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Cloudflare Pages injects a &lt;code&gt;CF_PAGES_URL&lt;/code&gt; environment variable into Cloudflare functions.&lt;/p&gt;
&lt;p&gt;Use this value to construct a redirect URI for preview deploys.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function getRedirectUri() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (import.meta.env.WORKOS_REDIRECT_URI) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return import.meta.env.WORKOS_REDIRECT_URI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (import.meta.env.CF_PAGES_URL) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;import.meta.env.CF_PAGES_URL&lt;/span&gt;&lt;span&gt;}/auth/callback`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;throw new Error(&lt;/span&gt;&lt;span&gt;&apos;WORKOS_REDIRECT_URI or CF_PAGES_URL not set&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Note: that I leave &lt;code&gt;WORKOS_REDIRECT_URI&lt;/code&gt; undefined in for preview deploys. This makes it easy to check against.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Learn more…&lt;a href=&quot;#learn-more&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of my series on &lt;a href=&quot;https://youtube.com/playlist?list=PLB4m9iWZsJzh0uSwmw0f5aOqQByvi25_5&amp;amp;feature=shared&quot; target=&quot;_blank&quot;&gt;AuthKit in Any JS Framework (playlist)&lt;/a&gt;.&lt;br /&gt;
We cover fullstack authentication with AuthKit, the Astro web framework, and Cloudflare Pages.&lt;br /&gt;
Check out the series here:&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;p&gt;Prefer step-by-step X threads?&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Secure AuthKit for every preview deploy.&lt;br /&gt;&lt;br /&gt;Whether previewing a `staging` branch, or every commit, integration is easy with AuthKit Redirect Wildcards&lt;br /&gt;&lt;br /&gt;Here&apos;s how… &lt;a href=&quot;https://t.co/xAIjS4KC2c&quot;&gt;pic.twitter.com/xAIjS4KC2c&lt;/a&gt;&lt;/p&gt;— AuthKit (@authkit) &lt;a href=&quot;https://twitter.com/authkit/status/1827000806249226478?ref_src=twsrc%5Etfw&quot;&gt;August 23, 2024&lt;/a&gt;&lt;/blockquote&gt; </content:encoded><category>workos</category><category>auth</category><category>web</category></item><item><title>Add video to GitHub README</title><link>https://chan.dev/add-video-to-github-readme</link><guid isPermaLink="true">https://chan.dev/add-video-to-github-readme</guid><description>YouTube embeds don&apos;t work in GitHub READMEs. Use a linked thumbnail image instead. Here&apos;s the markdown snippet.</description><pubDate>Mon, 22 Jul 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;YouTube videos can’t be embedded in GitHub READMEs.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;a href=&quot;#tldr&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#basic-markdown-implementation-no-styles&quot;&gt;Basic markdown implementation (no styles)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#make-image-contents-a-link&quot;&gt;Make image contents a link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#provide-a-meaningful-alt-text&quot;&gt;Provide a meaningful alt text&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#rely-on-default-styling&quot;&gt;Rely on default styling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#take-styling-into-your-own-hands&quot;&gt;Take styling into your own hands&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#if-you-dont-have-a-thumbnail-get-the-one-from-youtube&quot;&gt;If you don’t have a thumbnail, get the one from YouTube&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#more-than-you-care-to-know-on-youtube-thumbnail-url-schemas&quot;&gt;More than you care to know on YouTube thumbnail url schemas&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#improve-visual-hints&quot;&gt;Improve visual hints&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Basic markdown implementation (no styles)&lt;a href=&quot;#basic-markdown-implementation-no-styles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Start by uploading a thumbnail image.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note you make this change via the GitHub UI, they’ll host uploaded images without requiring they be added to the repository).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You should have an image like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;![&lt;/span&gt;&lt;span&gt;Uploaded image&lt;/span&gt;&lt;span&gt;](https://github.com/user-attachments/assets/{some-slug})&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Make image contents a link&lt;a href=&quot;#make-image-contents-a-link&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Wrap the image markdown in a link to YouTube video.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;![Uploaded image](https://github.com/user-attachments/assets/{some-slug})&lt;/span&gt;&lt;span&gt;](https://youtu.be/u3KukBymauk?feature=shared)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Provide a meaningful alt text&lt;a href=&quot;#provide-a-meaningful-alt-text&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I prefer to use the video title with the prefix: &lt;code&gt;YouTube tutorial: &lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;![YouTube tutorial: Do the thing the right way, from the beginning](https://github.com/user-attachments/assets/97ad27be-d9e7-446a-b7ed-3a220ed8f3aa)&lt;/span&gt;&lt;span&gt;](https://youtu.be/u3KukBymauk?feature=shared)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Rely on default styling&lt;a href=&quot;#rely-on-default-styling&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you upload a large enough image, GitHub’s default styling will make the image responsive to the container.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;.markdown-body img {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;max-width: 100%;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;box-sizing: content-box;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;background-color: var(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--bgColor-default,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;var(--color-canvas-default)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Take styling into your own hands&lt;a href=&quot;#take-styling-into-your-own-hands&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To take styling into your own hands, you’ll need to do all this with HTML instead of markdown.&lt;/p&gt;
&lt;p&gt;You can use the markup that GitHub uses.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;a href=&lt;/span&gt;&lt;span&gt;&quot;YOUR_VIDEO_URL&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;YOUR_THAUMBNAIL_IMAGE_URL&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;YOUR_ALT_TEXT&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;style=&lt;/span&gt;&lt;span&gt;&quot;max-width: 100%;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;I’ve added a &lt;code&gt;width&lt;/code&gt; rule to make sure the image is always scaled to full-width.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;a href=&lt;/span&gt;&lt;span&gt;&quot;YOUR_VIDEO_URL&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;YOUR_THAUMBNAIL_IMAGE_URL&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;YOUR_ALT_TEXT&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;style=&lt;/span&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;span&gt;width: 100%; &lt;/span&gt;&lt;span&gt;max-width: 100%;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;*Note: Most attributes get sanitized away. So there’s not a whole lot else you can do.&lt;/p&gt;
&lt;h2&gt;If you don’t have a thumbnail, get the one from YouTube&lt;a href=&quot;#if-you-dont-have-a-thumbnail-get-the-one-from-youtube&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.get-youtube-thumbnail.com/&quot; target=&quot;_blank&quot;&gt;This site will get the YouTube hosted thumbnails for your video&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: This URL differs slightly from those used on YouTube. The subdomain is &lt;code&gt;i3&lt;/code&gt; instead of &lt;code&gt;i&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;More than you care to know on YouTube thumbnail url schemas&lt;a href=&quot;#more-than-you-care-to-know-on-youtube-thumbnail-url-schemas&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;YouTube offers a number of thumbnail quality alternatives.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/34763547/youtube-maxresdefault-thumbnails&quot; target=&quot;_blank&quot;&gt;Great stack overflow on the topic of YouTube thumbnail URLs&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;https://i.ytimg.com/vi_webp/&amp;lt;VIDEO_ID&amp;gt;/maxresdefault.webp&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;https://i.ytimg.com/vi/&amp;lt;VIDEO_ID&amp;gt;/maxresdefault.jpg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;https://i.ytimg.com/vi/&amp;lt;VIDEO_ID&amp;gt;/hqdefault.jpg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Note: &lt;code&gt;maxresdefault&lt;/code&gt; variants aren’t guaranteed to be available. But they should be if you’re uploading your own thumbnail — which you should be.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Improve visual hints&lt;a href=&quot;#improve-visual-hints&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For this use case, I’m exporting a variant of my thumbnail with a “play button” overlay.&lt;/p&gt;</content:encoded><category>git</category><category>web</category></item><item><title>Save image from clipboard (on Mac)</title><link>https://chan.dev/save-image-from-clipboard</link><guid isPermaLink="true">https://chan.dev/save-image-from-clipboard</guid><description>Save a clipboard image to a file on Mac using Preview.app. Open Preview, press Cmd+N, save. No extra tools needed.</description><pubDate>Mon, 22 Jul 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;To save the image in your clipboard on a Mac, use &lt;code&gt;Preview.app&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;With an image in your clipboard:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open &lt;code&gt;Preview.app&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Type: &lt;kbd&gt;⌘+N&lt;/kbd&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A new window will open with your copied image.
Save that that to disk.&lt;/p&gt;</content:encoded><category>mac</category><category>reference</category></item><item><title>AuthKit Roles and Permissions</title><link>https://chan.dev/authkit-roles-and-permissions</link><guid isPermaLink="true">https://chan.dev/authkit-roles-and-permissions</guid><description>AuthKit now has permissions, completing the RBAC feature set. How to create permissions in WorkOS, add them to roles, and check them in your Next.js app.</description><pubDate>Fri, 12 Jul 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;AuthKit now has permissions — completing the RBAC feature set.&lt;/p&gt;
&lt;p&gt;This is everything you need to know to start implementing authorization in your applications.&lt;/p&gt;
&lt;h2&gt;Video tutorial&lt;a href=&quot;#video-tutorial&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;p&gt;Chapters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=14s&quot; target=&quot;_blank&quot;&gt;Set up the example app (Next.js)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=25s&quot; target=&quot;_blank&quot;&gt;Permissions exist on sessions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=49s&quot; target=&quot;_blank&quot;&gt;Create new permissions in WorkOS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=120s&quot; target=&quot;_blank&quot;&gt;Add permissions to roles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=154s&quot; target=&quot;_blank&quot;&gt;Understand session duration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=175s&quot; target=&quot;_blank&quot;&gt;Create and assign permissions to roles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=212s&quot; target=&quot;_blank&quot;&gt;Implement permission checks in your app&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FErRN9EsKTo&amp;amp;feature=shared&amp;amp;t=225s&quot; target=&quot;_blank&quot;&gt;Where to learn more…&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h2&gt;Setup&lt;a href=&quot;#setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For this lesson, we’re using the latest &lt;a href=&quot;https://github.com/workos-inc/next-authkit-example&quot; target=&quot;_blank&quot;&gt;next-authkit-example&lt;/a&gt; app.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-1.Bm3SMmcs_1Dqoml.webp&quot; alt=&quot;GitHub repo: WorkOs/next-authkit-example&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Sessions include &lt;code&gt;permissions&lt;/code&gt;&lt;a href=&quot;#sessions-include-permissions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Permissions are available on AuthKit session object.&lt;/p&gt;
&lt;p&gt;Opening the next-authkit-example, we see that &lt;code&gt;permissions&lt;/code&gt; is an array of strings.
And that the property is parallel to the &lt;code&gt;user&lt;/code&gt; and &lt;code&gt;role&lt;/code&gt; properties.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-4.D5q87-z4_Zwfw73.webp&quot; alt=&quot;src/app/account/page.tsx file. permissions are destructured from the user session.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Running the app, we can sign in to see a few session details but no permissions.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-2.c2uRyzQL_Z27bSLq.webp&quot; alt=&quot;next-authkit-exapmle app, logged in, showing session user and role details but no permissions.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;p&gt;This property is empty, when no permissions are assigned.
So, let’s add couple permissions in the WorkOS Dashboard.&lt;/p&gt;
&lt;h2&gt;Add permissions is the WorkOS Dashboard&lt;a href=&quot;#add-permissions-is-the-workos-dashboard&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-3.BfH_rQGN_1GhDDr.webp&quot; alt=&quot;WorkOS create permissions form. Example shows a post permission.&quot; loading=&quot;lazy&quot; width=&quot;1268&quot; height=&quot;850&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Navigate to the Roles tab (in the WorkOS Dashboard).&lt;/p&gt;
&lt;p&gt;Create a new permission with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Name&lt;/code&gt;: A colloquial name.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Slug&lt;/code&gt;: The value that will be stored on the session and used for authorization.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Description&lt;/code&gt;: An optional field for additional permission details and instructions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I’ll add two permissions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;posts:read&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;posts:all&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The firt for read-only and the second for full CRUD.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note that the slugs can’t be changed after creation.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-5.D1QqPPKV_1G0eil.webp&quot; alt=&quot;WorkOS edit permissions form, showing that permission slug is not editable.&quot; loading=&quot;lazy&quot; width=&quot;1252&quot; height=&quot;854&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Assign permissions to roles&lt;a href=&quot;#assign-permissions-to-roles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Permissions cannot be directly assigned to users.&lt;br /&gt;
They’re applied to users thru roles.&lt;/p&gt;
&lt;p&gt;By default, every user in AuthKit gets a &lt;code&gt;Member&lt;/code&gt; role.
Let’s update the &lt;code&gt;Member&lt;/code&gt; role to include compose the &lt;code&gt;posts:read&lt;/code&gt; permission.&lt;/p&gt;
&lt;p&gt;Back in our app, let’s sign out and back in again to see the updated permissions.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-7.Bm2A6ERd_1Lc40b.webp&quot; alt=&quot;Permissions shown in next-authkit-example app account page.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: We’re logging out to force a fresh session. The access token duration setting dictates the rate at which a session is refreshed. This is set in Authentication &amp;gt; Sessions).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-6.C7m0btlH_Z1b6v1W.webp&quot; alt=&quot;Permissions will refresh based on your Access token duration time (set in Authentication &amp;gt; Sessions).&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;Assign a new role to a user&lt;a href=&quot;#assign-a-new-role-to-a-user&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Back in our WorkOS dashboard, let’s create an Admin role, and assign the &lt;code&gt;posts:all&lt;/code&gt; permission to it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-8.B5stb6B-_15txAg.webp&quot; alt=&quot;Create Admin Role with posts permissions.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Then change our user’s role from &lt;code&gt;Member&lt;/code&gt; to &lt;code&gt;Admin&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-9.Cjo98lYt_Z2hdF7k.webp&quot; alt=&quot;Change user role from Member to Admin.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Log out and back in again to force a session refresh.&lt;br /&gt;
And see both the new role and permissions!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/authkit-roles-and-permissions-10.DcW_H6Do_Z2aQzQ3.webp&quot; alt=&quot;next-auth-example app, logged in, showing details with Admin role and posts permissions.&quot; loading=&quot;lazy&quot; width=&quot;2400&quot; height=&quot;1500&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;A couple things to note&lt;a href=&quot;#a-couple-things-to-note&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;You need to upgrade to the latest version of the WorkOS SDK for the update User type.&lt;/li&gt;
&lt;li&gt;Our doc on &lt;a href=&quot;https://workos.com/docs/user-management/roles-and-permissions&quot; target=&quot;_blank&quot;&gt;Roles and Permissions&lt;/a&gt; includes a number of best practices for your projects. Including suggestions for role assignment for SCIM integrations.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>workos</category><category>auth</category><category>react</category><category>web</category></item><item><title>Be chaotic. But be brief.</title><link>https://chan.dev/be-chaotic-but-be-brief</link><guid isPermaLink="true">https://chan.dev/be-chaotic-but-be-brief</guid><description>Be chaotic. But be brief.</description><pubDate>Tue, 20 Feb 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;/_astro/be-chaotic-but-be-brief.Ns_En5J6_1em3pG.webp&quot; alt=&quot;Be chaotic. But be brief.&quot; loading=&quot;lazy&quot; width=&quot;1200&quot; height=&quot;1200&quot; /&gt;&lt;/p&gt;
&lt;p&gt;“Be chaotic. But be brief.” white text, using Inter typeface, on back blackdrop.&lt;/p&gt;</content:encoded><category>found</category><category>note</category></item><item><title>wisdom</title><link>https://chan.dev/wisdom</link><guid isPermaLink="true">https://chan.dev/wisdom</guid><description>Our parents weren&apos;t set up to accumulate wisdom. Knowledge, sure. But their context windows were small.</description><pubDate>Wed, 10 Jan 2024 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;“Passing on wisdom” was a big topic this holiday break.&lt;br /&gt;
My Boomer in-laws and laws are feeling the weight of their clocks.&lt;br /&gt;
And I’m feeling annoyed — for two reasons.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;They had 23 years (I’m a late bloomer)&lt;/li&gt;
&lt;li&gt;I’m not sure they accumulated much (wisdom)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That second is more global.
So let’s push that one.&lt;/p&gt;
&lt;p&gt;Our parents weren’t set up to accumulate wisdom.
Knowledge, sure.
They had the largest, bound encyclopedias of all the generations.&lt;/p&gt;
&lt;p&gt;But they’re context windows were small.&lt;br /&gt;
Like really, really small.&lt;/p&gt;
&lt;p&gt;In our 90’s Christian circles, churches of fewer than 100 people would violently split their only communities over which translation of the same Holy Bible was “actually the word of God.” And, honestly, probably lesser infractions — like drums.&lt;/p&gt;
&lt;p&gt;Self-righteous and evasive,
they’re most rehearsed experience is the ability to globalize any fear, frustration, or fantasy, as fact.&lt;/p&gt;
&lt;p&gt;But wisdom the &lt;em&gt;broad&lt;/em&gt; application of knowledge and experience?&lt;br /&gt;
So how could such restricted experiences blossom into generational wisdom?&lt;/p&gt;
&lt;p&gt;Anyway…&lt;/p&gt;
&lt;p&gt;What’s to learn?&lt;br /&gt;
How do I do it different? Better.&lt;/p&gt;
&lt;p&gt;First, use the time I’ve got.&lt;br /&gt;
The wisdom I pass is the life we lived together.
All bets are off after that.&lt;/p&gt;
&lt;p&gt;Second, embrace reality.&lt;br /&gt;
The wisdom I gain isn’t better than its worst application.
The experience of our parents expired quickly because it wasn’t exposed to broad test cases.&lt;/p&gt;
&lt;p&gt;They evaded and dismissed reality.&lt;br /&gt;
And, doing so, &lt;em&gt;passed&lt;/em&gt; on wisdom.&lt;/p&gt;</content:encoded><category>rant</category><category>life</category><category>family</category><category>faith</category></item><item><title>Hand and Foot (Roth family rules)</title><link>https://chan.dev/hand-and-foot</link><guid isPermaLink="true">https://chan.dev/hand-and-foot</guid><description>House rules for Hand and Foot, a canasta variant. Setup, scoring, melds, wild cards, and strategy tips for going out.</description><pubDate>Fri, 29 Dec 2023 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://bicyclecards.com/how-to-play/hand-and-foot&quot; target=&quot;_blank&quot;&gt;Hand and Foot&lt;/a&gt; is a variation of &lt;a href=&quot;https://en.wikipedia.org/wiki/Canasta&quot; target=&quot;_blank&quot;&gt;Canasta&lt;/a&gt; that became popular in the United States in the 1950s. — Bicycle&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This document:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is based on the Roth family house rules for &lt;a href=&quot;https://bicyclecards.com/how-to-play/hand-and-foot&quot; target=&quot;_blank&quot;&gt;Hand and Foot&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Includes references and maps to traditional gameplay.&lt;/li&gt;
&lt;li&gt;Is written as a glossary of terminology and practices.&lt;/li&gt;
&lt;li&gt;Hoists figures (with scoring values) for easy access.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#-card-values&quot;&gt;🃏 Card Values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-achievement-values&quot;&gt;🆙 Achievement Values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-point-minimums&quot;&gt;🎟️ Point Minimums&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-goal&quot;&gt;🥅 Goal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-build-the-stock-game-deck&quot;&gt;🏗️ Build the Stock (Game Deck)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-the-deal-draw&quot;&gt;🎰 The Deal (draw)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-begin-the-game&quot;&gt;🏁 Begin the Game&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-turn&quot;&gt;↪️ Turn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#hand-and-foot&quot;&gt;✋🦶Hand and Foot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-draw&quot;&gt;🪣 Draw&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-take-discards&quot;&gt;🗑️ Take Discards&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-meld&quot;&gt;💿 Meld&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-books&quot;&gt;📚 Books&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-red-book&quot;&gt;📕 Red Book&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-black-book&quot;&gt;📓 Black Book&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-go-in&quot;&gt;👉 Go In&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#-go-out&quot;&gt;👈 Go Out&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-table-talk&quot;&gt;🗣️ Table talk&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%EF%B8%8F-general-strategy&quot;&gt;🗺️ General Strategy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;🃏 Card Values&lt;a href=&quot;#-card-values&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;













































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Card&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;50&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Joker&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Wild&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;20&lt;/code&gt;&lt;/td&gt;&lt;td&gt;2 “Deuces”&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Wild&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;20&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Ace&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;10&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;10, J, Q, K&lt;sup&gt;&lt;a href=&quot;#user-content-fn-*&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;5&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;4, 5, 6, 7, 8, 9&lt;sup&gt;&lt;a href=&quot;#user-content-fn-*&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;0&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Black 3&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;-500&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Red 3&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;h2&gt;🆙 Achievement Values&lt;a href=&quot;#-achievement-values&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;

























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;Achievement&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;500&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;#%F0%9F%93%95-red-book&quot;&gt;Red book&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;300&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;#%F0%9F%93%93-black-book&quot;&gt;Black book&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;100&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;&lt;a href=&quot;#%F0%9F%8E%B0-the-deal-draw&quot;&gt;Draw&lt;/a&gt; exactly 22 cards&lt;sup&gt;&lt;a href=&quot;#user-content-fn-%E2%80%A0&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;100&lt;/code&gt;&lt;/td&gt;&lt;td&gt;First to &lt;a href=&quot;#%F0%9F%91%88-go-out&quot;&gt;go out&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;h2&gt;🎟️ Point Minimums&lt;a href=&quot;#️-point-minimums&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;At the start of each round, teams determine the minimum points required to &lt;a href=&quot;#%F0%9F%91%89-go-in&quot;&gt;go in&lt;/a&gt;.&lt;/p&gt;
&lt;div&gt;

























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Score&lt;/th&gt;&lt;th&gt;Points required to go in&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;0&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;50&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;2500&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;90&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;5000&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;120&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;em&gt;&lt;code&gt;7500&lt;/code&gt;&lt;/em&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;&lt;code&gt;150&lt;/code&gt;&lt;sup&gt;&lt;a href=&quot;#user-content-fn-%E2%80%A1&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;h2&gt;🥅 Goal&lt;a href=&quot;#-goal&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Gain the most points as a team by the end game condition: &lt;code&gt;10,000&lt;/code&gt; points&lt;sup&gt;&lt;a href=&quot;#user-content-fn-%E2%80%A1&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;h2&gt;🏗️ Build the Stock (Game Deck)&lt;a href=&quot;#️-build-the-stock-game-deck&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Each player brings one deck of cards to construct a card stock (game deck).&lt;br /&gt;
&lt;strong&gt;Ensure that all decks include both Jokers (54 cards).&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;🎰 The Deal (draw)&lt;a href=&quot;#-the-deal-draw&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To start each round, players draw &lt;code&gt;22&lt;/code&gt; cards.
Drawing &lt;code&gt;22&lt;/code&gt; cards in a single cut is worth a &lt;code&gt;100&lt;/code&gt; points bonus.&lt;sup&gt;&lt;a href=&quot;#user-content-fn-*&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Cards are divided into two &lt;code&gt;11&lt;/code&gt; card decks: &lt;a href=&quot;#%E2%9C%8B%F0%9F%A6%B6hand-and-foot&quot;&gt;“hand” and “foot”&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;🏁 Begin the Game&lt;a href=&quot;#-begin-the-game&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Reveal the top card from &lt;a href=&quot;#%F0%9F%8F%97%EF%B8%8F-build-the-stock-game-deck&quot;&gt;the stock&lt;/a&gt; to start a discard pile. The first person (clockwise) of the dealer begins the first &lt;a href=&quot;#%E2%86%AA%EF%B8%8F-turn&quot;&gt;turn&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;↪️ Turn&lt;a href=&quot;#️-turn&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%AA%A3-draw&quot;&gt;Draw.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Create &lt;a href=&quot;#%F0%9F%92%BF-meld&quot;&gt;melds&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Discard.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;✋🦶Hand and Foot&lt;a href=&quot;#hand-and-foot&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;em&gt;hand&lt;/em&gt; is a player’s initial hand of 11 cards — played immediately.
The &lt;em&gt;foot&lt;/em&gt; is a player’s 11 reserve cards — played once the &lt;em&gt;hand&lt;/em&gt; is exhausted.&lt;/p&gt;
&lt;p&gt;Play all &lt;code&gt;11&lt;/code&gt; cards in your hand by creating melds with your team.&lt;/p&gt;
&lt;p&gt;If you can finish your hand without discarding the final card of your &lt;em&gt;hand&lt;/em&gt;, continue playing into your foot. &lt;em&gt;Announce “I’m going into my foot” to the table.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;🪣 Draw&lt;a href=&quot;#-draw&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Draw two cards from the &lt;a href=&quot;#%F0%9F%8F%97%EF%B8%8F-build-the-stock-game-deck&quot;&gt;stock pile&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;#%F0%9F%97%91%EF%B8%8F-take-discards&quot;&gt;Take the discards&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;🗑️ Take Discards&lt;a href=&quot;#️-take-discards&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If the top card of the discard pile is natural (4-A) &lt;em&gt;and&lt;/em&gt; matches at least one card in your hand, you may draw from the discard pile.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reveal your card that matches the top discard.&lt;/li&gt;
&lt;li&gt;Take the top seven cards.&lt;/li&gt;
&lt;li&gt;You must be able to make a new, clean meld with that top card.&lt;/li&gt;
&lt;li&gt;If unable to make a clean book, you receive a penalty.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Current house penalty:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your turn is skipped (including discard).&lt;/li&gt;
&lt;li&gt;Return all drawn cards to the discard pile (in the same order).&lt;/li&gt;
&lt;li&gt;Take a &lt;code&gt;100&lt;/code&gt; point penalty.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;💿 Meld&lt;a href=&quot;#-meld&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Three or more cards of the same value (suit does not matter).&lt;br /&gt;
Melds may include &lt;a href=&quot;#%F0%9F%83%8F-card-values&quot;&gt;wilds cards&lt;/a&gt;, to form &lt;a href=&quot;#%F0%9F%93%93-black-book&quot;&gt;Black books&lt;/a&gt;.&lt;br /&gt;
&lt;strong&gt;Melds must always contain more natural cards than wilds.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;📚 Books&lt;a href=&quot;#-books&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Books are melds of &lt;code&gt;7&lt;/code&gt; (or more) cards.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%93%95-red-book&quot;&gt;Red books&lt;/a&gt; include &lt;code&gt;7&lt;/code&gt; or more natural cards.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%93%93-black-book&quot;&gt;Black books&lt;/a&gt; include &lt;em&gt;exactly&lt;/em&gt; &lt;code&gt;7&lt;/code&gt; natural &lt;em&gt;and&lt;/em&gt; wild cards, with no more than &lt;code&gt;3&lt;/code&gt; wilds.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;📕 Red Book&lt;a href=&quot;#-red-book&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;AKA: “Clean book” or “Open book”.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;7&lt;/code&gt; or more natural cards.&lt;/li&gt;
&lt;li&gt;“Open” to melding.&lt;/li&gt;
&lt;li&gt;Set aside with a &lt;em&gt;red&lt;/em&gt; card on top.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;📓 Black Book&lt;a href=&quot;#-black-book&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;AKA: “Dirty book” or “Closed book”.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Exactly &lt;code&gt;7&lt;/code&gt; natural &lt;em&gt;and&lt;/em&gt; wild cards.&lt;/li&gt;
&lt;li&gt;At most &lt;code&gt;3&lt;/code&gt; wild cards.&lt;/li&gt;
&lt;li&gt;“Closed” to melding.&lt;/li&gt;
&lt;li&gt;Set aside with a &lt;em&gt;black&lt;/em&gt; card on top.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;👉 Go In&lt;a href=&quot;#-go-in&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A player “goes in” when they can create new melds or contribute to existing ones. The total point value of contributed cards must be above the team’s points minimum.&lt;/p&gt;
&lt;h2&gt;👈 Go Out&lt;a href=&quot;#-go-out&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A player “goes out” when they discard the final card of their foot — ending the round.&lt;/p&gt;
&lt;p&gt;A player may not go out until:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All teammates are in their foot.&lt;/li&gt;
&lt;li&gt;The team has developed &lt;a href=&quot;#%F0%9F%93%93-black-book&quot;&gt;4 Black Books&lt;/a&gt; and &lt;a href=&quot;#%F0%9F%93%95-red-book&quot;&gt;5 Red Books&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before going out, a player may ask: “Can I go out?” Teammates are allowed to respond only with “yes” or “no” — avoiding &lt;a href=&quot;#%F0%9F%97%A3%EF%B8%8F-table-talk&quot;&gt;table talk&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;🗣️ Table talk&lt;a href=&quot;#️-table-talk&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Table talk is “illegal.”&lt;/p&gt;
&lt;p&gt;Every house has a different understanding of what constitutes table talk.&lt;/p&gt;
&lt;p&gt;I find that strategic players enjoy playing strategic (educational) games. In these cases, &lt;a href=&quot;#%F0%9F%97%BA%EF%B8%8F-general-strategy&quot;&gt;general strategy&lt;/a&gt; is not considered table talk. Because strategic games aren’t won on general strategy.&lt;/p&gt;
&lt;p&gt;Here are a few invariable things considered table talk:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Correcting (or “helping”) a teammate place their move.
&lt;ul&gt;
&lt;li&gt;This includes asking suggestive questions like “Did you want me to place this on the dirty meld or create a new clean meld?”&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Asking teammates to decide between two options.&lt;/li&gt;
&lt;li&gt;Talking about a move in a way that reveals the composition of your hand: “I really want to pick that discard up…”&lt;/li&gt;
&lt;li&gt;Inquiries about the makeup of the discard pile.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;🗺️ General Strategy&lt;a href=&quot;#️-general-strategy&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here are some baseline strategies for being a good teammate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It’s generally advantageous to open options for teammates.&lt;/li&gt;
&lt;li&gt;Creating &lt;a href=&quot;#%F0%9F%93%95-red-book&quot;&gt;Red Books&lt;/a&gt; doesn’t cost your team because they can continue to play melds on them.&lt;/li&gt;
&lt;li&gt;Creating &lt;a href=&quot;#%F0%9F%93%93-black-book&quot;&gt;Black Books&lt;/a&gt; should be reserved for:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%91%89-go-in&quot;&gt;Going in&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%91%88-go-out&quot;&gt;Going out&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Increasing your score before your opponent &lt;a href=&quot;#%F0%9F%91%88-go-out&quot;&gt;goes out&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Avoid discarding cards that your opponent can play — especially when you know there are duplicates in the top 7. See &lt;a href=&quot;#%F0%9F%97%91%EF%B8%8F-take-discards&quot;&gt;Take Discards&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;When deciding whether to contribute to a dirty meld or create a new, clean meld, consider the following:
&lt;ul&gt;
&lt;li&gt;Is it early or late in the game?&lt;/li&gt;
&lt;li&gt;How near to completion is the dirty meld?&lt;/li&gt;
&lt;li&gt;What is the composition of the dirty meld? Can it be completed with wilds?&lt;/li&gt;
&lt;li&gt;Does the opponent also have melds for this card — making it unlikely to be closed?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#%F0%9F%97%91%EF%B8%8F-take-discards&quot;&gt;Taking the discards&lt;/a&gt; is best employed when creating new melds for card values you don’t already have.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;section&gt;&lt;h2&gt;Footnotes&lt;a href=&quot;#footnote-label&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Notes: Traditionally, &lt;code&gt;5&lt;/code&gt; and &lt;code&gt;10&lt;/code&gt; point values are &lt;code&gt;4-7&lt;/code&gt; and &lt;code&gt;8-K&lt;/code&gt;, respectively. &lt;a href=&quot;#user-content-fnref-*&quot;&gt;↩&lt;/a&gt; &lt;a href=&quot;#user-content-fnref-*-2&quot;&gt;↩&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt; &lt;a href=&quot;#user-content-fnref-*-3&quot;&gt;↩&lt;sup&gt;3&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Both &lt;a href=&quot;https://en.wikipedia.org/wiki/Canasta&quot; target=&quot;_blank&quot;&gt;Canasta&lt;/a&gt;/&lt;a href=&quot;https://bicyclecards.com/how-to-play/hand-and-foot&quot; target=&quot;_blank&quot;&gt;Hand and Foot&lt;/a&gt; have a traditional “deal.” This better distributes the cards and “de-clumps” them from previous melds and books. &lt;a href=&quot;#user-content-fnref-%E2%80%A0&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Canasta&quot; target=&quot;_blank&quot;&gt;Canasta&lt;/a&gt; is traditionally played to 5000 points. And &lt;a href=&quot;https://bicyclecards.com/how-to-play/hand-and-foot&quot; target=&quot;_blank&quot;&gt;Hand and Foot&lt;/a&gt; is traditionally in 4 rounds, with no point-based end condition. &lt;a href=&quot;#user-content-fnref-%E2%80%A1&quot;&gt;↩&lt;/a&gt; &lt;a href=&quot;#user-content-fnref-%E2%80%A1-2&quot;&gt;↩&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content:encoded><category>games</category><category>family</category></item><item><title>10 Things I Bought and Loved in 2023</title><link>https://chan.dev/10-things-i-bought-and-loved-in-2023</link><guid isPermaLink="true">https://chan.dev/10-things-i-bought-and-loved-in-2023</guid><description>Things I bought in 2023 that were worth every penny. Including $15 red whips that will change your life.</description><pubDate>Tue, 21 Nov 2023 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;Red whips&lt;a href=&quot;#red-whips&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;If you think can’t find $15 gifts that will change someone’s life, you wrong.&lt;/p&gt;
&lt;p&gt;These $1 are incredible.
I’ve purchased three sets now and I use them for everything:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Loose cable separation.&lt;/li&gt;
&lt;li&gt;Tying mics to stands.&lt;/li&gt;
&lt;li&gt;A fidget toy.&lt;/li&gt;
&lt;li&gt;A hair tie.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These things are so versitile.
They’re easily my favorite purchase this year.&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;https://www.bhphotovideo.com/c/product/1394395-REG/think_tank_photo_964_red_whips_bungie_cable.html%5D(Buy&quot; target=&quot;_blank&quot;&gt;https://www.bhphotovideo.com/c/product/1394395-REG/think_tank_photo_964_red_whips_bungie_cable.html](Buy&lt;/a&gt; on B&amp;amp;H)&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;https://amzn.to/46prGDI%5D(Amazon&quot; target=&quot;_blank&quot;&gt;https://amzn.to/46prGDI](Amazon&lt;/a&gt; generic version). I can’t vouche for how they compare.&lt;/p&gt;
&lt;h2&gt;DEWALT XTREME 12-Volt Screwdriver&lt;a href=&quot;#dewalt-xtreme-12-volt-screwdriver&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most people don’t need a massive drill.
I know because I have the massivest one and it rarely gets used.&lt;/p&gt;
&lt;p&gt;This 12v gets used weekly.&lt;/p&gt;
&lt;p&gt;We’ve used it to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Construct furniture.&lt;/li&gt;
&lt;li&gt;Drill pilot holes for pictures.&lt;/li&gt;
&lt;li&gt;Drive screws (duh)&lt;/li&gt;
&lt;li&gt;Light DIY&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It’s the perfect tool because it has a clutch (like a drill), allowing you to set the max tourque (pretecting your screws and furniture).
But it also has a hex collet, like an impact driver for easy loading.&lt;/p&gt;
&lt;p&gt;Love this thing to pieces.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.lowes.com/pd/DEWALT-XTREME-12-Volt-MaxBrushless-1-4-in-Cordless-Screwdriver-2-Batteries-Included-and-Charger-Included/1000981106&quot; target=&quot;_blank&quot;&gt;https://www.lowes.com/pd/DEWALT-XTREME-12-Volt-MaxBrushless-1-4-in-Cordless-Screwdriver-2-Batteries-Included-and-Charger-Included/1000981106&lt;/a&gt;
&lt;a href=&quot;https://amzn.to/3MQjkhx&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3MQjkhx&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Ameran light&lt;a href=&quot;#ameran-light&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.bhphotovideo.com/c/product/1753987-REG/amaran_apa0020a10_amaran_cob_60d_s.html&quot; target=&quot;_blank&quot;&gt;https://www.bhphotovideo.com/c/product/1753987-REG/amaran_apa0020a10_amaran_cob_60d_s.html&lt;/a&gt;
&lt;a href=&quot;https://amzn.to/4a0yQBx&quot; target=&quot;_blank&quot;&gt;https://amzn.to/4a0yQBx&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;sm58&lt;a href=&quot;#sm58&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/3SL92TE&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3SL92TE&lt;/a&gt;
&lt;a href=&quot;https://www.bhphotovideo.com/c/product/68463-REG/Shure_SM58_LC_SM58_LC_Cardioid_Dynamic.html&quot; target=&quot;_blank&quot;&gt;https://www.bhphotovideo.com/c/product/68463-REG/Shure_SM58_LC_SM58_LC_Cardioid_Dynamic.html&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Anker charger&lt;a href=&quot;#anker-charger&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/3R5V79n&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3R5V79n&lt;/a&gt;
&lt;a href=&quot;https://www.anker.com/products/a9137?variant=40941927366806&amp;amp;utm_source=google&amp;amp;utm_medium=pmax&amp;amp;utm_campaign=us_anker_charger_conversion_pmax_BFCM_purchase_ost&amp;amp;utm_content=BFCM&amp;amp;utm_term=%7B20756586370%7D_%7B%7D_%7B%7D&amp;amp;gad_source=1&amp;amp;gclid=CjwKCAiAx_GqBhBQEiwAlDNAZkPO7QAnIMAcnXsvXlnBfMH7qZixy4XR7t8WNMHvs2hFpIArpEA0dRoCbQgQAvD_BwE&quot; target=&quot;_blank&quot;&gt;https://www.anker.com/products/a9137?variant=40941927366806&amp;amp;utm_source=google&amp;amp;utm_medium=pmax&amp;amp;utm_campaign=us_anker_charger_conversion_pmax_BFCM_purchase_ost&amp;amp;utm_content=BFCM&amp;amp;utm_term=%7B20756586370%7D_%7B%7D_%7B%7D&amp;amp;gad_source=1&amp;amp;gclid=CjwKCAiAx_GqBhBQEiwAlDNAZkPO7QAnIMAcnXsvXlnBfMH7qZixy4XR7t8WNMHvs2hFpIArpEA0dRoCbQgQAvD_BwE&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Streamer X&lt;a href=&quot;#streamer-x&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.bhphotovideo.com/c/product/1762234-REG/rode_x_streamer_x.html&quot; target=&quot;_blank&quot;&gt;https://www.bhphotovideo.com/c/product/1762234-REG/rode_x_streamer_x.html&lt;/a&gt;
&lt;a href=&quot;https://amzn.to/3RaN4s3&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3RaN4s3&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;mkh 50&lt;a href=&quot;#mkh-50&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.bhphotovideo.com/c/product/79497-REG/Sennheiser_MKH50_P48_MKH_50_Microphone.html&quot; target=&quot;_blank&quot;&gt;https://www.bhphotovideo.com/c/product/79497-REG/Sennheiser_MKH50_P48_MKH_50_Microphone.html&lt;/a&gt;
&lt;a href=&quot;https://amzn.to/3sJ9p6s&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3sJ9p6s&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Mini AX sound bar&lt;a href=&quot;#mini-ax-sound-bar&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/3uqFCA5&quot; target=&quot;_blank&quot;&gt;https://amzn.to/3uqFCA5&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Conrad no shoes&lt;a href=&quot;#conrad-no-shoes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.comradsocks.com/collections/no-show-socks&quot; target=&quot;_blank&quot;&gt;https://www.comradsocks.com/collections/no-show-socks&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Therapy, neuropsychological eval&lt;a href=&quot;#therapy-neuropsychological-eval&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.sdbrainworks.com&quot; target=&quot;_blank&quot;&gt;https://www.sdbrainworks.com&lt;/a&gt;&lt;/p&gt;</content:encoded><category>gear</category><category>life</category></item><item><title>Nullish Coalescing and when you should use it</title><link>https://chan.dev/nullish</link><guid isPermaLink="true">https://chan.dev/nullish</guid><description>Nullish coalescing (??) and logical OR (||) differ when the left side is falsy but not null or undefined. Examples with numbers, strings, and booleans.</description><pubDate>Tue, 17 Oct 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The &lt;code&gt;??&lt;/code&gt; operator is identical to &lt;code&gt;||&lt;/code&gt; when the left side is &lt;code&gt;null&lt;/code&gt;, &lt;code&gt;undefined&lt;/code&gt;, or &lt;code&gt;truthy&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;They differ when the left side is &lt;code&gt;falsy&lt;/code&gt; but &lt;em&gt;not&lt;/em&gt; &lt;code&gt;null&lt;/code&gt; or &lt;code&gt;undefined&lt;/code&gt;.&lt;br /&gt;
In this case:
&lt;code&gt;??&lt;/code&gt; returns the left side.&lt;br /&gt;
&lt;code&gt;||&lt;/code&gt; will returns the right side.&lt;/p&gt;
&lt;p&gt;In practical terms, &lt;code&gt;??&lt;/code&gt; returns values with an operable type (&lt;code&gt;string&lt;/code&gt;, &lt;code&gt;number&lt;/code&gt;, &lt;code&gt;bigint&lt;/code&gt;, &lt;code&gt;boolean&lt;/code&gt;, etc.) even when their values are falsy.&lt;/p&gt;
&lt;h2&gt;&lt;code&gt;falsy&lt;/code&gt; contains &lt;code&gt;nullish&lt;/code&gt;&lt;a href=&quot;#falsy-contains-nullish&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;falsy&lt;/code&gt; is a superset of &lt;code&gt;nullish&lt;/code&gt;.&lt;br /&gt;
It’s a &lt;em&gt;square&lt;/em&gt;, &lt;em&gt;rectangle&lt;/em&gt;, &lt;em&gt;paralellagram&lt;/em&gt; situation.&lt;/p&gt;
&lt;h2&gt;Examples&lt;a href=&quot;#examples&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Number&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(42 || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// 42&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(42 ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// 42&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(0 || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(0 ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// 0&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;String&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(&lt;/span&gt;&lt;span&gt;&apos;juniper&apos;&lt;/span&gt;&lt;span&gt; || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;juniper&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(&lt;/span&gt;&lt;span&gt;&apos;juniper&apos;&lt;/span&gt;&lt;span&gt; ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;juniper&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(&lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt; || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(&lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt; ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Boolean&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(true || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(true ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(false || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(false ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Nullish&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(undefined || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(undefined ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(null || &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(null ?? &lt;/span&gt;&lt;span&gt;&apos;default&apos;&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;// &quot;default&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;</content:encoded><category>javascript</category><category>web</category></item><item><title>repose</title><link>https://chan.dev/repose</link><guid isPermaLink="true">https://chan.dev/repose</guid><description>I was unprepared for the elation of forced solitude. And its yield to dread as the world came back to normal.</description><pubDate>Mon, 02 Oct 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I was unprepared for the elation of forced solitude.
And it’s yield to dread as the world “came back to normal”.&lt;/p&gt;
&lt;p&gt;I miss a life in repose on a horizon of quiesence.&lt;/p&gt;</content:encoded><category>life</category><category>found</category><category>note</category></item><item><title>How to Theme Storybook</title><link>https://chan.dev/how-to-theme-storybook</link><guid isPermaLink="true">https://chan.dev/how-to-theme-storybook</guid><description>Add a custom logo, brand colors, and light or dark mode to Storybook using the create() theming API. Quick setup with code examples.</description><pubDate>Wed, 20 Sep 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Let’s make Storybook our own with a custom theme!&lt;/p&gt;
&lt;p&gt;It’s super easy, you just need a 7:3 aspect ratio logo, text editor, and a strong preference for light or dark mode.&lt;/p&gt;
&lt;p&gt;Let’s dive in.&lt;/p&gt;
&lt;h2&gt;Initial setup&lt;a href=&quot;#initial-setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This tutorial requires uncommon setup.
So, let’s get that out of the way.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the &lt;code&gt;.stoyrybook&lt;/code&gt; directory, create a new &lt;code&gt;manager&lt;/code&gt; module.
&lt;ul&gt;
&lt;li&gt;Import &lt;code&gt;addons&lt;/code&gt; from “@storybook/manager-api”&lt;/li&gt;
&lt;li&gt;And &lt;code&gt;themes&lt;/code&gt; from “@storybook/theming”&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {addons} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/manager-api&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {themes} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/theming&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Add a 350x150 image to the &lt;code&gt;/public&lt;/code&gt; directory. (Storybook 7 serves this directory by default.) I have a &lt;code&gt;350x150&lt;/code&gt; .png with a transparent backgroup.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/how-to-theme-storybook_chan-dev-logo.Bs3T8hqu_Z2enDRU.webp&quot; alt=&quot;7:3 aspect ration image of me making a Home Alone Cologne face behind the text chan.dev&quot; loading=&quot;lazy&quot; width=&quot;350&quot; height=&quot;150&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Now we’re ready to set up a themes.&lt;/p&gt;
&lt;h2&gt;Set persistant light or dark color scheme&lt;a href=&quot;#set-persistant-light-or-dark-color-scheme&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Create a new config object using &lt;code&gt;addons.setConfig&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Provide an object with a &lt;code&gt;theme&lt;/code&gt; property and use one of the preconfigured themes. &lt;code&gt;themes.normal&lt;/code&gt; is the default and respond’s to the user’s preferred color scheme.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {addons} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/manager-api&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {themes} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/theming&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;addons.setConfig({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: themes.normal,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;However, you can set an explicit theme with options &lt;code&gt;light&lt;/code&gt; or &lt;code&gt;dark&lt;/code&gt;.
Ensuring that Storybook looks the same indifferent to user’s system theme.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {addons} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/manager-api&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {themes} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/theming&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;addons.setConfig({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: themes.normal,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: themes.light, &lt;/span&gt;&lt;span&gt;// or themes.dark&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;section&gt;&lt;p&gt;Restart to see change.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Setting up a custom theme with &lt;code&gt;create&lt;/code&gt;&lt;a href=&quot;#setting-up-a-custom-theme-with-create&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Now we’re using a &lt;code&gt;light&lt;/code&gt; theme but our our configuration options are limited.
Refactor this config object to allow for a custom image and colors.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Import the &lt;code&gt;create&lt;/code&gt; method from &lt;code&gt;@storybook/theming&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Replace &lt;code&gt;theme.light&lt;/code&gt; with &lt;code&gt;create({ base: &quot;light&quot;})&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {addons} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/manager-api&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {theme} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/theming&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {create} from &lt;/span&gt;&lt;span&gt;&apos;@storybook/theming&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;addons.setConfig({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: theme.light,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: create({base: &lt;/span&gt;&lt;span&gt;&apos;light&apos;&lt;/span&gt;&lt;span&gt;}),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;These are functionally identical. But creating a theme opens more options. And the &lt;code&gt;base&lt;/code&gt; option to override and extend theme values without having to specify &lt;em&gt;every&lt;/em&gt; value.&lt;/p&gt;
&lt;section&gt;&lt;p&gt;Restart to see changes.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Add brand image to Storybook&lt;a href=&quot;#add-brand-image-to-storybook&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We all know that the most important part of any project is the logo!
Let’s add ours using our custom theme&lt;/p&gt;
&lt;p&gt;Add &lt;code&gt;brandTitle&lt;/code&gt;, &lt;code&gt;brandUrl&lt;/code&gt;, &lt;code&gt;brandImage&lt;/code&gt;, and optional &lt;code&gt;brandTarget&lt;/code&gt; properties to the theme object.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;addons.setConfig({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: create({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;base: &lt;/span&gt;&lt;span&gt;&quot;light&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;brandTitle: &lt;/span&gt;&lt;span&gt;&quot;My custom Storybook&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;brandUrl: &lt;/span&gt;&lt;span&gt;&quot;https://chan.dev&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;brandImage: &lt;/span&gt;&lt;span&gt;&quot;/chan-dev.png&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;// using publicly served /public directory&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;brandTarget: &lt;/span&gt;&lt;span&gt;&apos;_self&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;section&gt;&lt;p&gt;Restart to see changes.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Set brand colors and typography&lt;a href=&quot;#set-brand-colors-and-typography&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;With our theme in place, Storybook accepts a number of options for general theming.
Let’s explore a few:&lt;/p&gt;
&lt;p&gt;For a full list of theming values and options, check out the post listed in the description below.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;addons.setConfig({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;theme: create({&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;base: &lt;/span&gt;&lt;span&gt;&quot;light&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;/* FOLD: …brand image… :FOLD */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;colorSecondary: &lt;/span&gt;&lt;span&gt;&quot;#ffcc00&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;appBg: &lt;/span&gt;&lt;span&gt;&quot;#f0f0f0&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;appBorderColor: &lt;/span&gt;&lt;span&gt;&quot;#ccc&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;appBorderRadius: 0,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;textColor: &lt;/span&gt;&lt;span&gt;&quot;#333&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;barTextColor: &lt;/span&gt;&lt;span&gt;&quot;#666&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;barSelectedColor: &lt;/span&gt;&lt;span&gt;&quot;pink&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;section&gt;&lt;p&gt;Restart to see changes.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Outro&lt;a href=&quot;#outro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Now you know how to theme Storybook!
We leaned how to make Storybook your own with a custom brand image, base theme, and colors.&lt;/p&gt;
&lt;p&gt;If you have specific areas of Storybook that you’d like to theme that aren’t covered, checkout &lt;a href=&quot;https://storybook.js.org/docs/react/configure/theming&quot; target=&quot;_blank&quot;&gt;Storybook’s theming doc&lt;/a&gt;. It includes an exhaustive list of themeable values and some riskier styling options 😄.&lt;/p&gt;
&lt;section&gt;&lt;p&gt;That’s it for today.
Check out one of these videos to learn more about Storybook.
I’m &lt;a href=&quot;https://x.com/chantastic&quot; target=&quot;_blank&quot;&gt;@chantastic&lt;/a&gt;. I’ll see you in the next one. Bye.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Prefer video?&lt;a href=&quot;#prefer-video&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Watch on YouTube!&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;</content:encoded><category>storybook</category><category>web</category></item><item><title>A Universal Terminal alias for bun, pnpm, npm, and yarn</title><link>https://chan.dev/p</link><guid isPermaLink="true">https://chan.dev/p</guid><description>Use zsh functions to create command line alias that determines local package manager and runs the corrrect comamnd: bun, pnpm, npm, or yarn.</description><pubDate>Sat, 09 Sep 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’ve typed npm for the last time.&lt;/p&gt;
&lt;p&gt;As JavaScript developers, we have four package managers to choose from. And between personal, work, and open source projects, I use every last one of them. This is a problem because typing the wrong command costs time and irritation.&lt;/p&gt;
&lt;p&gt;Below is zsh function that I’ve used to eliminate package manager context switching heartache — typing &lt;code&gt;npm start&lt;/code&gt; when I meant &lt;code&gt;bun start&lt;/code&gt; or &lt;code&gt;npm&lt;/code&gt; when I mean ::shudders:: &lt;code&gt;yarn&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;p() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if [[ -f bun.lockb ]]; then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;command &lt;/span&gt;&lt;span&gt;bun&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;$@&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;elif [[ -f pnpm-lock.yaml ]]; then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;command &lt;/span&gt;&lt;span&gt;pnpm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;$@&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;elif [[ -f yarn.lock ]]; then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;command &lt;/span&gt;&lt;span&gt;yarn&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;$@&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;elif [[ -f package-lock.json ]]; then&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;command &lt;/span&gt;&lt;span&gt;npm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;$@&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;else&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;command &lt;/span&gt;&lt;span&gt;pnpm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&quot;$@&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;What this command does&lt;a href=&quot;#what-this-command-does&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;zsh functions can be used like fancy aliases with the addition of a runtime check. This function checks for the existence of a lock file and runs the stated command with the correct package manager.&lt;/p&gt;
&lt;h2&gt;What this command does not do&lt;a href=&quot;#what-this-command-does-not-do&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This function does not create a universal interface around the varied package managers. I don’t find universal interfaces helpful.&lt;/p&gt;
&lt;p&gt;And I enjoy utilizing the subtleties in each package manager. My problem is the muscle memory around common commands (&lt;code&gt;start&lt;/code&gt;, &lt;code&gt;install&lt;/code&gt;, and &lt;code&gt;test&lt;/code&gt;) and those actions inadvertently spawn confusion.&lt;/p&gt;
&lt;h2&gt;Learn more&lt;a href=&quot;#learn-more&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Check out these references if you want to learn more about zsh functions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://zsh.sourceforge.io/Intro/intro_4.html&quot; target=&quot;_blank&quot;&gt;Intro to zsh functions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://unix.stackexchange.com/questions/33255/how-to-define-and-load-your-own-shell-function-in-zsh&quot; target=&quot;_blank&quot;&gt;How to define and load your own shell function in zsh&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>cli</category><category>tools</category></item><item><title>Storybook Actions in Action</title><link>https://chan.dev/storybook-actions</link><guid isPermaLink="true">https://chan.dev/storybook-actions</guid><description>Stop using `console.log` to debug component events. Upgrade to event mocks with Storybook Actions. (Storybook 6 and 7).</description><pubDate>Thu, 24 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Let’s talk about &lt;code&gt;console.log&lt;/code&gt;-driven development.
We all do it.
So, instead of fighting it, let’s &lt;em&gt;upgrade&lt;/em&gt; it with Storybook Actions.&lt;/p&gt;
&lt;section&gt;&lt;p&gt;Let’s dive in…&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Feature instability and mitigations&lt;a href=&quot;#feature-instability-and-mitigations&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Storybook actions are a feature of Storybook 6 and 7.&lt;/p&gt;
&lt;p&gt;There’s an &lt;a href=&quot;https://github.com/storybookjs/storybook/discussions/23649&quot; target=&quot;_blank&quot;&gt;active design proposal&lt;/a&gt; to make them work like conventional testing mocks. This would be a welcome change, imo.&lt;/p&gt;
&lt;p&gt;Knowing that a change is on the horizon, let’s focus on the features of the current API that will remain (or migrate easily with codemods).&lt;/p&gt;
&lt;h2&gt;Feature Overview&lt;a href=&quot;#feature-overview&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In a fresh Storybook 7 installation (&lt;a href=&quot;https://storybook.new/&quot; target=&quot;_blank&quot;&gt;sandboxes here&lt;/a&gt;), we find two example components configured to use Storybook actions.&lt;/p&gt;
&lt;p&gt;The included Button stories log the common event — &lt;code&gt;onClick&lt;/code&gt; — when clicked. Logs can then be expanded to show full event details.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-actions_button.Da4LhdUp_ZtGI7A.webp&quot; alt=&quot;Story for Button that has been clicked. The Actions tab shows a logged onClick common event. This includes the React Event details&quot; loading=&quot;lazy&quot; width=&quot;1240&quot; height=&quot;800&quot; /&gt;
​
Heading stories also log events but this time with custom events &lt;code&gt;onLogin&lt;/code&gt; and &lt;code&gt;onCreateAccount&lt;/code&gt;. These events are logged when the respective buttons are clicked.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-actions_logged-out.Bgb2453J_Z1xIJti.webp&quot; alt=&quot;Story for Heading that has had Login and Sign up buttons clicked. The Actions tab shows a logged onLogin and onCreateAccount custom events. These include the React Event details&quot; loading=&quot;lazy&quot; width=&quot;1240&quot; height=&quot;800&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Actions pair perfectly with &lt;a href=&quot;https://storybook.js.org/docs/react/essentials/interactions#page-top&quot; target=&quot;_blank&quot;&gt;Storybook interactions&lt;/a&gt;. Interactions are a way to document component states thru simulated user input. Interactions trigger their corresponding actions.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-actions_page-interaction.DyrJ7bBI_vBk1s.webp&quot; alt=&quot;Story for Page that has had Login and Sign up buttons. The Log in button was clicked via Storybook interactions (play function), using testing-library/dom. The Interactions tab shows that the event was executed. And the Actions tab shows that the callback was called, with the React Event details.&quot; loading=&quot;lazy&quot; width=&quot;1220&quot; height=&quot;800&quot; /&gt;&lt;/p&gt;
&lt;section&gt;&lt;p&gt;Upgrade your &lt;code&gt;console-log&lt;/code&gt;-driven development workflow with Storybook Actions.&lt;/p&gt;&lt;p&gt;Storybook actions can log event details, across stories, for both common and custom events.&lt;/p&gt;&lt;p&gt;(full segment script)&lt;/p&gt;&lt;p&gt;We have more videos on how to use this. So follow for more component-driven development tips.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Add actions with argTypes&lt;a href=&quot;#add-actions-with-argtypes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Let’s define actions for the example Button component.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the story file and locate component &lt;code&gt;meta&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add an &lt;code&gt;argTypes&lt;/code&gt; property if one doesn’t exist.&lt;/li&gt;
&lt;li&gt;Add an &lt;code&gt;onClick&lt;/code&gt; property (this needs to match the component prop name).&lt;/li&gt;
&lt;li&gt;Set the value to &lt;code&gt;{ action: &quot;clicked&quot; }&lt;/code&gt;. (The logged text can be anything we like.)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Button.stories.tsx&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// (surronding code omitted)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const meta = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;title: &lt;/span&gt;&lt;span&gt;&apos;Example/Button&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;component: Button,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;tags: [&lt;/span&gt;&lt;span&gt;&apos;autodocs&apos;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;argTypes: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;backgroundColor: {control: &lt;/span&gt;&lt;span&gt;&apos;color&apos;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;onClick: {action: &lt;/span&gt;&lt;span&gt;&apos;onClick&apos;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} satisfies Meta&amp;lt;typeof Button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now click your button in Storybook and watch the Actions log!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-actions_button-actions.BWRCPseA_a0eLI.webp&quot; alt=&quot;Animated gif of React Events being logged as the Button story is clicked.&quot; loading=&quot;lazy&quot; width=&quot;800&quot; height=&quot;524&quot; /&gt;&lt;/p&gt;
&lt;section&gt;&lt;p&gt;Inspect actions in Storybook without litering your implementation with &lt;code&gt;console.log&lt;/code&gt; statements!&lt;/p&gt;&lt;p&gt;(full segment script)&lt;/p&gt;&lt;p&gt;This is a great way to test and log event data without touching implementation code.&lt;/p&gt;&lt;p&gt;We have more videos on how to use this. So follow for more component-driven development tips.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Test actions with interactions&lt;a href=&quot;#test-actions-with-interactions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Let’s add an interaction to the example Button component.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create or find a new story.&lt;/li&gt;
&lt;li&gt;Add a &lt;code&gt;play&lt;/code&gt; function to the story object.&lt;/li&gt;
&lt;li&gt;Within the &lt;code&gt;canvasElement&lt;/code&gt;, find the button.&lt;/li&gt;
&lt;li&gt;then simulate a click event.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Button.stories.tsx&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// (surronding code omitted)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export const Primary: Story = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;args: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;primary: true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;label: &lt;/span&gt;&lt;span&gt;&apos;Button&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;play: async ({canvasElement}) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const canvas = within(canvasElement)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const button = await canvas.getByRole(&lt;/span&gt;&lt;span&gt;&apos;button&apos;&lt;/span&gt;&lt;span&gt;, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name:&lt;/span&gt;&lt;span&gt; /Button/i&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;})&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;await userEvent.click(button)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now the story will run the interaction when it loads. Logging both the interaction and the action — in their respective tabs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-actions_button-interaction.Xc1IGFKl_Z1kq6Lw.webp&quot; alt=&quot;Image of an interaction story that automatically plays a user event over a story. An interaction is logged and an 1 action is showing as logged in the Actions tab.&quot; loading=&quot;lazy&quot; width=&quot;1220&quot; height=&quot;800&quot; /&gt;&lt;/p&gt;
&lt;section&gt;&lt;p&gt;Storybook actions and interactions are a match made in heaven.&lt;/p&gt;&lt;/section&gt;
&lt;h2&gt;Lessons learned&lt;a href=&quot;#lessons-learned&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;console.log&lt;/code&gt;-driven development is something I do when driving out a component implementation. It’s a quick, cheap way to ensure that events are hooked up (early in the process).&lt;/p&gt;
&lt;p&gt;But log statements has one &lt;strong&gt;huge drawback&lt;/strong&gt;: they live in component code. And I’m guilty of pushing a log (or a few dozen) into production.&lt;/p&gt;
&lt;p&gt;Storybook actions let you validate implementation in story files, leaving component code alone.&lt;/p&gt;
&lt;h2&gt;Want the condensed version?&lt;a href=&quot;#want-the-condensed-version&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Check out this X thread.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Let&apos;s talk about console.log…&lt;br /&gt;&lt;br /&gt;It&apos;s not the best tool for the bugging UI but I use it anyway because it cheap and easy.&lt;br /&gt;&lt;br /&gt;But when when driving component design in &lt;a href=&quot;https://twitter.com/storybookjs?ref_src=twsrc%5Etfw&quot;&gt;@storybookjs&lt;/a&gt; we can use Actions — which are much more like callback mocks.&lt;br /&gt;&lt;br /&gt;Here&apos;s how… &lt;a href=&quot;https://t.co/8HNDXRslBJ&quot;&gt;pic.twitter.com/8HNDXRslBJ&lt;/a&gt;&lt;/p&gt;— chan 👉 chan.dev (@chantastic) &lt;a href=&quot;https://twitter.com/chantastic/status/1694932499984703754?ref_src=twsrc%5Etfw&quot;&gt;August 25, 2023&lt;/a&gt;&lt;/blockquote&gt; 
&lt;h2&gt;Prefer video?&lt;a href=&quot;#prefer-video&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Check out the video for this post on YouTube!&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;p&gt;Or just get to the goods with shorts!&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;/div&gt;</content:encoded><category>storybook</category><category>component-driven-development</category></item><item><title>Polymorphic as prop in Astro</title><link>https://chan.dev/astro-dynamic-tags</link><guid isPermaLink="true">https://chan.dev/astro-dynamic-tags</guid><description>Astro has dynamic tags — a way to accept an element or component as a prop. And they&apos;re totally different than React&apos;s polymorphic as prop pattern.</description><pubDate>Wed, 23 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Astro has &lt;a href=&quot;https://docs.astro.build/en/core-concepts/astro-syntax/#dynamic-tags&quot; target=&quot;_blank&quot;&gt;dynamic tags&lt;/a&gt; — a way to take an element or component as a prop.&lt;/p&gt;
&lt;p&gt;I had trouble finding the feature because the React community calls this pattern the “polymorphic as prop”. &lt;em&gt;Because we enjoy our pseudo-computer-science bullshit artisinally.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Dynamic tags are simple to implement in Astro.&lt;/p&gt;
&lt;h2&gt;No-fuss implementation&lt;a href=&quot;#no-fuss-implementation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Take a &lt;em&gt;capitalized&lt;/em&gt; &lt;code&gt;Element&lt;/code&gt; prop as a local variable.&lt;/li&gt;
&lt;li&gt;Render that prop as a template tag.&lt;/li&gt;
&lt;li&gt;Take and spread rest-props.&lt;/li&gt;
&lt;li&gt;Render children using Astro’s un-named &lt;a href=&quot;https://docs.astro.build/en/core-concepts/astro-components/#slots&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;&amp;lt;slot /&amp;gt;&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const { Element, ...props } = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Element {...props}&amp;gt;&amp;lt;slot /&amp;gt;&amp;lt;/Element&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Destructure and rename the element prop (for convenience or convention)&lt;a href=&quot;#destructure-and-rename-the-element-prop-for-convenience-or-convention&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Uppercase prop names can look out of place in templates.
Destructure and rename the &lt;code&gt;Element&lt;/code&gt; prop in one to provide a more ergonomic/conventional authoring experience.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const { &lt;/span&gt;&lt;span&gt;as: Element, &lt;/span&gt;&lt;span&gt;...props } = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Element {...props}&amp;gt;&amp;lt;slot /&amp;gt;&amp;lt;/Element&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Astro templates require that dynamic tags be capitalized. Renaming the element prop is a convent way to follow that requirement while providing a more conventional API to consumers.&lt;/p&gt;
&lt;h2&gt;Accept and de-duplicate classes with &lt;code&gt;class:list&lt;/code&gt;&lt;a href=&quot;#accept-and-de-duplicate-classes-with-classlist&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Astro has a &lt;a href=&quot;https://docs.astro.build/en/reference/directives-reference/#classlist&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;class:list&lt;/code&gt; directive&lt;/a&gt; for orchestrating dynamic classes.
Provide the &lt;code&gt;class:list&lt;/code&gt; directive an array with both &lt;em&gt;provided&lt;/em&gt; and &lt;em&gt;component&lt;/em&gt; classes.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;class:list&lt;/code&gt; is smart and automatically removes duplicate classes.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;as: Element = &lt;/span&gt;&lt;span&gt;&quot;div&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;class: providedProps,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;...props&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentClasses = &lt;/span&gt;&lt;span&gt;&quot;prose prose-slate dark:prose-invert&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Element {...props} &lt;/span&gt;&lt;span&gt;class:list={[componentClasses, providedProps]}&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;slot /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/Element&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Note: &lt;code&gt;class&lt;/code&gt; needs to be renamed when destructured because values can not be assigned to reserved words.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Complete with TypeScript interface&lt;a href=&quot;#complete-with-typescript-interface&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is my completed component, with the TypeScript interface.&lt;/p&gt;
&lt;p&gt;Yours needs will likely vary.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;interface Props {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;as?: &lt;/span&gt;&lt;span&gt;&quot;body&quot;&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;span&gt;&quot;main&quot;&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;span&gt;&quot;article&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;class?: &lt;/span&gt;&lt;span&gt;&quot;string&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;as: Element = &lt;/span&gt;&lt;span&gt;&quot;div&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;class: providedProps,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;...props&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Element {...props} class:list={[componentClasses, providedProps]}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;slot /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/Element&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;BEWARE: dynamic tags don’t honor hydration client directives&lt;a href=&quot;#beware-dynamic-tags-dont-honor-hydration-client-directives&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Astro provides &lt;a href=&quot;https://docs.astro.build/en/reference/directives-reference/#client-directives&quot; target=&quot;_blank&quot;&gt;client directives&lt;/a&gt; for hydrating client-side UI.
Those don’t work with dynamic tags.&lt;/p&gt;
&lt;p&gt;If you’re using dynamic tags for static layouts — like me — this isn’t an issue.&lt;/p&gt;
&lt;h2&gt;Takeaways&lt;a href=&quot;#takeaways&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Astro supports the “polymorphic as prop” pattern popular in React.
And the additional standard tooling of TypeScript and &lt;a href=&quot;https://docs.astro.build/en/reference/directives-reference/#classlist&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;class:list&lt;/code&gt; directive&lt;/a&gt; make it even easier to consistently implement.&lt;/p&gt;</content:encoded><category>astro</category><category>web</category></item><item><title>z in Vim</title><link>https://chan.dev/z-in-vim</link><guid isPermaLink="true">https://chan.dev/z-in-vim</guid><description>Vim z command reference: folding (za, zo, zc), screen redraw (zt, zz, zb), and save/quit (ZZ, ZQ). Includes VSCodeVim compatibility notes.</description><pubDate>Tue, 22 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;code&gt;z&lt;/code&gt; is one of Vim’s two junk drawers.
(The other is &lt;code&gt;g&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;This is a highlight of &lt;code&gt;z&lt;/code&gt; command with callouts to actions available in VS Code, via &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=vscodevim.vim&quot; target=&quot;_blank&quot;&gt;VSCodeVim&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#folding&quot;&gt;Folding&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#redrawing&quot;&gt;Redrawing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#saving-and-quitting&quot;&gt;Saving and Quitting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#help-z-reference&quot;&gt;&lt;code&gt;:help z&lt;/code&gt; reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#other&quot;&gt;Other&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Folding&lt;a href=&quot;#folding&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;za           za               open a closed fold, close an open fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zA           zA               open a closed fold or close an open&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fold recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zc           zc               close a fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zC           zC               close folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zd           zd               delete a fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zD           zD               delete folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zE           zE               eliminate all folds&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zf           zf{motion}       create a fold for Nmove text&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zF           zF               create a fold for N lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zi           zi               toggle &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zj           zj 1             move to the start of the next fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zk           zk 1             move to the end of the previous fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zm           zm               subtract one from &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zM           zM               set &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; to zero&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zn           zn               reset &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zN           zN               set &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zo           zo               open fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zO           zO               open folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zr           zr               add one to &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zR           zR               set &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; to the deepest fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zv           zv               open enough folds to view the&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;cursor line&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zx           zx               re-apply &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; and do &lt;/span&gt;&lt;span&gt;&quot;zv&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zX           zX               re-apply &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Redrawing&lt;a href=&quot;#redrawing&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zN&amp;lt;CR&amp;gt;       z{height}&amp;lt;CR&amp;gt;    redraw, make window {height} lines high&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z&amp;lt;CR&amp;gt;        z&amp;lt;CR&amp;gt;            redraw, cursor line to top of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zt           zt               redraw, cursor line at top of window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z-           z-               redraw, cursor line at bottom of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zb           zb               redraw, cursor line at bottom of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z.           z.               redraw, cursor line to center of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zz           zz               redraw, cursor line at center of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Saving and Quitting&lt;a href=&quot;#saving-and-quitting&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ZZ           ZZ               write if buffer changed and close&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ZQ           ZQ               close window without writing&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;&lt;code&gt;:help z&lt;/code&gt; reference&lt;a href=&quot;#help-z-reference&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;==================================================================&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;2.5 Commands starting with &lt;/span&gt;&lt;span&gt;&apos;z&apos;&lt;/span&gt;&lt;span&gt;                                   z&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;tag          char             note action in Normal mode&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z&amp;lt;CR&amp;gt;        z&amp;lt;CR&amp;gt;            redraw, cursor line to top of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zN&amp;lt;CR&amp;gt;       z{height}&amp;lt;CR&amp;gt;    redraw, make window {height} lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;high&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z+           z+               cursor on line N (default line&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;below window), otherwise like &lt;/span&gt;&lt;span&gt;&quot;z&amp;lt;CR&amp;gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z-           z-               redraw, cursor line at bottom of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z.           z.               redraw, cursor line to center of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window, cursor on first non-blank&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z=           z=               give spelling suggestions&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zA           zA               open a closed fold or close an open&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fold recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zC           zC               close folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zD           zD               delete folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zE           zE               eliminate all folds&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zF           zF               create a fold for N lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zG           zG               temporarily mark word as correctly&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;spelled&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zH           zH               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll half a&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;screenwidth to the right&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zL           zL               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll half a&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;screenwidth to the left&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zM           zM               set &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; to zero&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zN           zN               set &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zO           zO               open folds recursively&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zR           zR               set &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; to the deepest fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zW           zW               temporarily mark word as&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;incorrectly spelled&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zX           zX               re-apply &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z^           z^               cursor on line N (default line&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;above window), otherwise like &lt;/span&gt;&lt;span&gt;&quot;z-&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;za           za               open a closed fold, close an open&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zb           zb               redraw, cursor line at bottom of&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zc           zc               close a fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zd           zd               delete a fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ze           ze               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll horizontally&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;to position the cursor at the end&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;(right side) of the screen&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zf           zf{motion}       create a fold for Nmove text&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zg           zg               permanently mark word as correctly&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;spelled&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zh           zh               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll screen N&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;characters to the right&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zi           zi               toggle &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zj           zj 1             move to the start of the next fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zk           zk 1             move to the end of the previous fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zl           zl               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll screen N&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;characters to the left&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zm           zm               subtract one from &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zn           zn               reset &lt;/span&gt;&lt;span&gt;&apos;foldenable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zo           zo               open fold&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zp           zp               paste in block-mode without&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;trailing spaces&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zP           zP               paste in block-mode without&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;trailing spaces&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zr           zr               add one to &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zs           zs               when &lt;/span&gt;&lt;span&gt;&apos;wrap&apos;&lt;/span&gt;&lt;span&gt; off scroll horizontally&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;to position the cursor at the start&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;(left side) of the screen&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zt           zt               redraw, cursor line at top of window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zuw          zuw              undo zw&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zug          zug              undo zg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zuW          zuW              undo zW&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zuG          zuG              undo zG&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zv           zv               open enough folds to view the&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;cursor line&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zw           zw               permanently mark word as&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;                              &lt;/span&gt;&lt;/span&gt;&lt;span&gt;incorrectly spelled&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zx           zx               re-apply &lt;/span&gt;&lt;span&gt;&apos;foldlevel&apos;&lt;/span&gt;&lt;span&gt; and do &lt;/span&gt;&lt;span&gt;&quot;zv&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zy           zy               yank without trailing spaces&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;zz           zz               redraw, cursor line at center of window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z&amp;lt;Left&amp;gt;      z&amp;lt;Left&amp;gt;          same as &lt;/span&gt;&lt;span&gt;&quot;zh&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;z&amp;lt;Right&amp;gt;     z&amp;lt;Right&amp;gt;         same as &lt;/span&gt;&lt;span&gt;&quot;zl&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;==================================================================&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;2. Normal    mode                                     normal-index&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ZZ           ZZ           write if buffer changed and close window&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ZQ           ZQ           close window without writing&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Other&lt;a href=&quot;#other&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In proper vim, &lt;code&gt;z&lt;/code&gt; also includes commands for spelling and word wrapping.
These are ignored in this reference because they are not supported by VSCodeVim.&lt;/p&gt;</content:encoded><category>vim</category><category>reference</category></item><item><title>React Children</title><link>https://chan.dev/react-children</link><guid isPermaLink="true">https://chan.dev/react-children</guid><description>How React&apos;s children prop works: strings, arrays, nested arrays, named children, Children.map, Children.count, and Children.toArray with examples.</description><pubDate>Wed, 16 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This tutorial experiments with the numerous ways we can provide (and misuse) the &lt;code&gt;children&lt;/code&gt; prop in React.&lt;/p&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#sandboxes&quot;&gt;Sandboxes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#template&quot;&gt;Template&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-as-a-single-string-third-argument&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; as a single string (third argument)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-as-several-strings-function-overloading&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; as several strings (function overloading)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-pass-in-a-single-array&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in a single array&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-pass-in-nested-arrays&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in nested arrays&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-pass-in-a-single-array-1&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in a single array&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-children-as-a-named-prop&quot;&gt;Pass &lt;code&gt;children&lt;/code&gt; as a named prop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#intercept-children-in-react-components&quot;&gt;Intercept &lt;code&gt;children&lt;/code&gt; in React Components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#count-children-with-reactchildrencount&quot;&gt;Count children with &lt;code&gt;React.Children.count&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#iterate-over-children-with-childrenmap&quot;&gt;Iterate over children with &lt;code&gt;Children.map&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#iterate-and-insert-children-with-childrenforeach&quot;&gt;Iterate and insert children with &lt;code&gt;Children.forEach&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#ensure-there-is-only-one-child-with-childrenonly&quot;&gt;Ensure there is only one child with &lt;code&gt;Children.only&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#convert-children-to-array-with-childrentoarray&quot;&gt;Convert children to array with &lt;code&gt;Children.toArray&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Sandboxes&lt;a href=&quot;#sandboxes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://codesandbox.io/s/react-children-ncg78x?file=/src/index.html&quot; target=&quot;_blank&quot;&gt;CodeSandbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackblitz.com/edit/js-sbbksd?file=index.js&quot; target=&quot;_blank&quot;&gt;Stackblitz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Template&lt;a href=&quot;#template&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;html lang=&lt;/span&gt;&lt;span&gt;&quot;en&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;meta charset=&lt;/span&gt;&lt;span&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;title&amp;gt;React playground&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div id=&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;script type=&lt;/span&gt;&lt;span&gt;&quot;module&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import ReactDOM from &lt;/span&gt;&lt;span&gt;&apos;https://esm.sh/react-dom@18.2.0&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import React from &lt;/span&gt;&lt;span&gt;&apos;https://esm.sh/react@18.2.0&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;&apos;span&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;&apos;start here&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; as a single string (third argument)&lt;a href=&quot;#pass-children-as-a-single-string-third-argument&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;, {}, &lt;/span&gt;&lt;span&gt;&quot;A single string&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; as several strings (function overloading)&lt;a href=&quot;#pass-children-as-several-strings-function-overloading&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;A single string&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Multiple&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot; strings&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in a single array&lt;a href=&quot;#pass-children-pass-in-a-single-array&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Multiple&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot; strings&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in nested arrays&lt;a href=&quot;#pass-children-pass-in-nested-arrays&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Multiple&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot; strings&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;All &quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;arrays &quot;&lt;/span&gt;&lt;span&gt;, [&lt;/span&gt;&lt;span&gt;&quot;will &quot;&lt;/span&gt;&lt;span&gt;]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[[[&lt;/span&gt;&lt;span&gt;&quot;be &quot;&lt;/span&gt;&lt;span&gt;], &lt;/span&gt;&lt;span&gt;&quot;flattened&quot;&lt;/span&gt;&lt;span&gt;], &lt;/span&gt;&lt;span&gt;&quot;.&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; pass in a single array&lt;a href=&quot;#pass-children-pass-in-a-single-array-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&apos;span&apos;&lt;/span&gt;&lt;span&gt;, {}, [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;false,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;true,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&apos;1&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;2,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[3],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;4.0,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;(() =&amp;gt; &lt;/span&gt;&lt;span&gt;&apos;5&apos;&lt;/span&gt;&lt;span&gt;)(),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;null,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;undefined,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;])&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Objects (and related complex types like &lt;code&gt;Date&lt;/code&gt;) will result in an error.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Pass &lt;code&gt;children&lt;/code&gt; as a named prop&lt;a href=&quot;#pass-children-as-a-named-prop&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Same rules apply.&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Intercept &lt;code&gt;children&lt;/code&gt; in React Components&lt;a href=&quot;#intercept-children-in-react-components&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Same rules apply.&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent({ &lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span&gt;, ...props }) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;, props, &lt;/span&gt;&lt;span&gt;children&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Count children with &lt;code&gt;React.Children.count&lt;/code&gt;&lt;a href=&quot;#count-children-with-reactchildrencount&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent({ children, ...props }) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;props,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;mark&gt;&lt;span&gt;React.Children.count&lt;/span&gt;&lt;/mark&gt;&lt;span&gt;(children)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Iterate over children with &lt;code&gt;Children.map&lt;/code&gt;&lt;a href=&quot;#iterate-over-children-with-childrenmap&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function RowList({ children }) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div className=&lt;/span&gt;&lt;span&gt;&quot;RowList&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{Children.map(children, (child) =&amp;gt; (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div className=&lt;/span&gt;&lt;span&gt;&quot;Row&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;{child}&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;))}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Iterate and insert children with &lt;code&gt;Children.forEach&lt;/code&gt;&lt;a href=&quot;#iterate-and-insert-children-with-childrenforeach&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent({ children, ...props }) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const result = [];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;mark&gt;&lt;span&gt;React.Children.forEach&lt;/span&gt;&lt;/mark&gt;&lt;span&gt;(children, (child, index) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;result.push(child);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;result.push(React.createElement(&lt;/span&gt;&lt;span&gt;&quot;hr&quot;&lt;/span&gt;&lt;span&gt;, { key: index }));&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;span&gt;&quot;span&quot;&lt;/span&gt;&lt;span&gt;, props, result);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Ensure there is only one child with &lt;code&gt;Children.only&lt;/code&gt;&lt;a href=&quot;#ensure-there-is-only-one-child-with-childrenonly&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let isSingleReactElement = Children.only(children)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Convert children to array with &lt;code&gt;Children.toArray&lt;/code&gt;&lt;a href=&quot;#convert-children-to-array-with-childrentoarray&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function RowList({children}) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;mark&gt;&lt;span&gt;Children.toArray&lt;/span&gt;&lt;/mark&gt;&lt;span&gt;(children, (child) =&amp;gt; child)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.filter((child) =&amp;gt; typeof child === &lt;/span&gt;&lt;span&gt;&apos;string&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map((child) =&amp;gt; (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;li&amp;gt;{child.toUpperCase()}&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;))}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Use this to manipulate the array.
(&lt;code&gt;filter&lt;/code&gt;, &lt;code&gt;sort&lt;/code&gt;, &lt;code&gt;reverse&lt;/code&gt;, etc.)&lt;/p&gt;</content:encoded><category>react</category><category>tutorial</category><category>web</category></item><item><title>Friends</title><link>https://chan.dev/friends</link><guid isPermaLink="true">https://chan.dev/friends</guid><description>Friends will sluff off you like dead cells your entire life. Get good at making temporary ones and picking up quickly with old ones.</description><pubDate>Thu, 10 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Friends will sluff off you like dead cells your entire life.
Get good at making temporary ones and picking up quickly with old ones.&lt;/p&gt;</content:encoded><category>life</category></item><item><title>React Basics</title><link>https://chan.dev/react-basics</link><guid isPermaLink="true">https://chan.dev/react-basics</guid><description>Build React from scratch with no bundler. Step-by-step guide to ReactDOM, createElement, components, props, and event handlers using ES modules.</description><pubDate>Wed, 09 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This totorial is a complete guide core react constructs.
It demonstratens simple implementations of &lt;code&gt;ReactDom&lt;/code&gt;, &lt;code&gt;React Element&lt;/code&gt;, &lt;code&gt;React Component&lt;/code&gt;, &lt;code&gt;props&lt;/code&gt;, in a familiar, real-world component.&lt;/p&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#online-sandboxes&quot;&gt;Online sandboxes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#put-react-anywhere&quot;&gt;Put React anywhere!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#connect-a-script-with-a-single-dom-node&quot;&gt;Connect a &lt;code&gt;script&lt;/code&gt; with a single DOM node&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#use-modern-es-modules&quot;&gt;Use modern ES Modules&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#import-the-react-dom-module&quot;&gt;Import the &lt;code&gt;react-dom&lt;/code&gt; module&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#prepare-the-root-dom-node-with-reactdom&quot;&gt;Prepare the root DOM node with &lt;code&gt;ReactDOM&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#render-plain-text-to-react-root&quot;&gt;Render plain text to React root&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#import-react-and-create-a-react-element&quot;&gt;Import &lt;code&gt;react&lt;/code&gt; and create a React element&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#render-a-react-element-to-react-root&quot;&gt;Render a React element to React root&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#extract-a-react-component&quot;&gt;Extract a React component&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-custom-props-to-components&quot;&gt;Pass custom props to components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pass-common-props-to-components&quot;&gt;Pass common props to components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#some-common-props-use-standard-dom-names&quot;&gt;Some common props use “standard DOM” names&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#use-objects-instead-of-strings-for-the-style-prop&quot;&gt;Use objects instead of strings for the &lt;code&gt;style&lt;/code&gt; prop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#use-camelcase-for-all-multi-word-common-props-and-properties&quot;&gt;Use camelCase for all multi-word common props and properties&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#use-object-rest-syntax-to-separate-custom-props-from-common-props&quot;&gt;Use object rest syntax to separate custom props from common props&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#quick-reference-videos&quot;&gt;&lt;strong&gt;Quick reference videos&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Online sandboxes&lt;a href=&quot;#online-sandboxes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://codesandbox.io/s/react-basics-fyf6mh?file=/src/index.mjs&quot; target=&quot;_blank&quot;&gt;CodeSandbox&lt;/a&gt; &lt;small&gt;Used by me (Vim support)&lt;/small&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackblitz.com/edit/js-3c8xnq?file=index.js&quot; target=&quot;_blank&quot;&gt;StackBlitz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Put React anywhere!&lt;a href=&quot;#put-react-anywhere&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;React is “just JavaScript”.
Add it to any page on the internet.&lt;/p&gt;
&lt;p&gt;Start with a simple HTML page like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- my-page.html --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;html lang=&lt;/span&gt;&lt;span&gt;&quot;en&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;meta charset=&lt;/span&gt;&lt;span&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;title&amp;gt;React playground&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Connect a &lt;code&gt;script&lt;/code&gt; with a single DOM node&lt;a href=&quot;#connect-a-script-with-a-single-dom-node&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;React needs a bridge between JavaScript and the DOM.
Create a DOM node and query for it in a JavaScript script.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;html lang=&lt;/span&gt;&lt;span&gt;&quot;en&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;meta charset=&lt;/span&gt;&lt;span&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;title&amp;gt;React playground&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&amp;lt;!-- 1. Add an element with id --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div id=&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&amp;lt;!-- 2. Add a script tag --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;// 3. Capture a reference to element we&apos;d like to control with JavaScript&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/learn/installation#try-react-locally&quot; target=&quot;_blank&quot;&gt;HTML-only template from React Docs&lt;/a&gt;, react.dev. Updated for ES Modules.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Use modern ES Modules&lt;a href=&quot;#use-modern-es-modules&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The browser has progressed a lot in a decade.
Specifying &lt;code&gt;type=&quot;module&quot;&lt;/code&gt; on script tags to use modern JavaScript imports.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div id=&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&amp;lt;!-- Specify type module --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;script&lt;/span&gt;&lt;span&gt; type=&lt;/span&gt;&lt;span&gt;&quot;module&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;console.log(domNode);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html&quot; target=&quot;_blank&quot;&gt;Applying the module to your HTML&lt;/a&gt;, MDN.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Import the &lt;code&gt;react-dom&lt;/code&gt; module&lt;a href=&quot;#import-the-react-dom-module&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Services like &lt;a href=&quot;https://esm.sh&quot; target=&quot;_blank&quot;&gt;esm.sh&lt;/a&gt; allow us to import JavaScript modules from a CDN — no bundling 🥳.
Import the &lt;code&gt;react-dom&lt;/code&gt; module from the esm.sh.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Import `react-dom@18` from esm.sh&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import ReactDOM from &lt;/span&gt;&lt;span&gt;&quot;https://esm.sh/react-dom@18.2.0&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import&quot; target=&quot;_blank&quot;&gt;import API reference&lt;/a&gt;, MDN.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Prepare the root DOM node with &lt;code&gt;ReactDOM&lt;/code&gt;&lt;a href=&quot;#prepare-the-root-dom-node-with-reactdom&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;React needs to set up event handlers the root DOM node.
Prepare the root DOM node with &lt;code&gt;ReactDOM.createRoot()&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import ReactDOM from &lt;/span&gt;&lt;span&gt;&quot;https://esm.sh/react-dom@18.2.0&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Register root element with ReactDOM&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react-dom/client/createRoot&quot; target=&quot;_blank&quot;&gt;React.createRoot API reference&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Render plain text to React root&lt;a href=&quot;#render-plain-text-to-react-root&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;At this point we can render plain text to the React root.
Render “Hello ReactDOM” to the React root.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import ReactDOM from &lt;/span&gt;&lt;span&gt;&quot;https://esm.sh/react-dom@18.2.0&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Render plain text to React root&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(&lt;/span&gt;&lt;span&gt;&quot;Hello ReactDOM&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react-dom/client/createRoot#root-render&quot; target=&quot;_blank&quot;&gt;render API reference&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Import &lt;code&gt;react&lt;/code&gt; and create a React element&lt;a href=&quot;#import-react-and-create-a-react-element&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Next we need React to create React elements and components.
Import &lt;code&gt;react&lt;/code&gt; and create a React element with &lt;code&gt;React.createElement()&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import ReactDOM from &lt;/span&gt;&lt;span&gt;&quot;https://esm.sh/react-dom@18.2.0&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import React from &lt;/span&gt;&lt;span&gt;&quot;https://esm.sh/react@18.2.0&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;, {}, &lt;/span&gt;&lt;span&gt;&quot;Hello React&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(&lt;/span&gt;&lt;span&gt;&quot;Hello ReactDOM&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react/createElement&quot; target=&quot;_blank&quot;&gt;createElement API reference&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Render a React element to React root&lt;a href=&quot;#render-a-react-element-to-react-root&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;With a React element, we can render it to the React root.
Replace the rendered &lt;code&gt;&quot;Hello ReactDOM&quot;&lt;/code&gt; text with our new React element.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* …react and react-dom imports… */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let &lt;/span&gt;&lt;mark&gt;&lt;span&gt;reactElement&lt;/span&gt;&lt;/mark&gt;&lt;span&gt; = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;, {}, &lt;/span&gt;&lt;span&gt;&quot;Hello React&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&apos;root&apos;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// render the React element to the React root&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(&lt;/span&gt;&lt;span&gt;&quot;Hello ReactDOM&quot;&lt;/span&gt;&lt;span&gt;reactElement&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react/createElement#what-is-a-react-element-exactly&quot; target=&quot;_blank&quot;&gt;What is a React element, exactly?&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Extract a React component&lt;a href=&quot;#extract-a-react-component&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;React components are just functions that return React elements.
Declare a new component and use it to create our React element.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 2. Create a React element from a the new component&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;, {}, &lt;/span&gt;&lt;span&gt;&quot;Hello React&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;span&gt;MyComponent&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. Declare a new component&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function &lt;/span&gt;&lt;span&gt;MyComponent&lt;/span&gt;&lt;span&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;, {}, &lt;/span&gt;&lt;span&gt;&quot;Hello React Component&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/learn/your-first-component&quot; target=&quot;_blank&quot;&gt;Your first component&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Pass custom props to components&lt;a href=&quot;#pass-custom-props-to-components&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Static components, like static functions, are not useful.
Pass a &lt;code&gt;name&lt;/code&gt; prop to the React component and interpolate its value into the React element.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. provide a prop object to the React component&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(MyComponent&lt;/span&gt;&lt;span&gt;, { name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 2. accept props&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(&lt;/span&gt;&lt;span&gt;props&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello &lt;/span&gt;&lt;span&gt;React Component&lt;/span&gt;&lt;span&gt;${&lt;/span&gt;&lt;span&gt;props.name&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/learn/passing-props-to-a-component&quot; target=&quot;_blank&quot;&gt;Passing props to a component&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Pass common props to components&lt;a href=&quot;#pass-common-props-to-components&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In addition to custom props, React components accept common props.
Pass an &lt;code&gt;id&lt;/code&gt; prop to the React component and apply it to the React element.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;MyComponent,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 1. define id prop&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;id: &lt;/span&gt;&lt;span&gt;&quot;my_app&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(props) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 2. apply the id prop to the React element&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt; id: props.id &lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello ${&lt;/span&gt;&lt;span&gt;props.name&lt;/span&gt;&lt;span&gt;}`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react-dom/components/common#common-props&quot; target=&quot;_blank&quot;&gt;Common component props&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Some common props use “standard DOM” names&lt;a href=&quot;#some-common-props-use-standard-dom-names&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Not all common props use common HTML attributes.
Apply the &lt;code&gt;class&lt;/code&gt; HTML attribute to React elements using the DOM property name &lt;code&gt;className&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;MyComponent,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 1. define class selectors using the className prop&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;className: &lt;/span&gt;&lt;span&gt;&quot;my-css-class-selector&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(props) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 2. apply the className prop to the React element&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt; className: props.className &lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello ${&lt;/span&gt;&lt;span&gt;props.name&lt;/span&gt;&lt;span&gt;}`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Element/className&quot; target=&quot;_blank&quot;&gt;Element: className property&lt;/a&gt;, MDN.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Use objects instead of strings for the &lt;code&gt;style&lt;/code&gt; prop&lt;a href=&quot;#use-objects-instead-of-strings-for-the-style-prop&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Unlike HTML, the &lt;code&gt;style&lt;/code&gt; prop requires an object instead of a string.
Apply the &lt;code&gt;style&lt;/code&gt; prop to React elements using an object with camelCased CSS properties.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(MyComponent, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;// 1. define styles using object and camelCased CSS properties&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;style: &lt;/span&gt;&lt;span&gt;{ color: &lt;/span&gt;&lt;span&gt;&quot;red&quot;&lt;/span&gt;&lt;span&gt;, backgroundColor: &lt;/span&gt;&lt;span&gt;&quot;black&quot;&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(props) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 2. apply the style prop to the React element&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt; style: props.style &lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello ${&lt;/span&gt;&lt;span&gt;props.name&lt;/span&gt;&lt;span&gt;}`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react-dom/components/common#common-props&quot; target=&quot;_blank&quot;&gt;Special component props&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Use camelCase for all multi-word common props and properties&lt;a href=&quot;#use-camelcase-for-all-multi-word-common-props-and-properties&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;React does not use attribute style event names.
Add a click handler using the camelCased &lt;code&gt;onClick&lt;/code&gt; prop and a function.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(MyComponent, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;// 1. define the onClick prop and pass a function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;onClick: &lt;/span&gt;&lt;span&gt;() =&amp;gt; alert(&lt;/span&gt;&lt;span&gt;&quot;heading clicked&quot;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(props) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 2. apply the onClick prop to the React element&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt; onClick: props.onClick &lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello ${&lt;/span&gt;&lt;span&gt;props.name&lt;/span&gt;&lt;span&gt;}`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://react.dev/reference/react-dom/components/common#common-props&quot; target=&quot;_blank&quot;&gt;Common component props&lt;/a&gt;, react.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Use object rest syntax to separate custom props from common props&lt;a href=&quot;#use-object-rest-syntax-to-separate-custom-props-from-common-props&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Writing &lt;code&gt;props&lt;/code&gt; before using every value is tedious.
Use object rest syntax to create variables for custom props and collect the rest into a new object.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let reactElement = React.createElement(MyComponent, {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;onClick: () =&amp;gt; alert(&lt;/span&gt;&lt;span&gt;&quot;heading clicked&quot;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;name: &lt;/span&gt;&lt;span&gt;&quot;React Rally&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. create variables for prop names we want to access&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 2. assign the remainer key-values (rest) to an object&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyComponent(&lt;/span&gt;&lt;span&gt;props&lt;/span&gt;&lt;span&gt;{ name, ...restProps }&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return React.createElement(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;h1&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 3. send the entire rest object to createElement&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{ onClick: props.onClick }&lt;/span&gt;&lt;span&gt;restProps&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;// 4. use the `name` variable instead of object property access&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;`Hello ${&lt;/span&gt;&lt;span&gt;props.&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;}`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let domNode = document.getElementById(&lt;/span&gt;&lt;span&gt;&quot;root&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;ReactDOM.createRoot(domNode).render(reactElement);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;Reference: &lt;a href=&quot;https://v8.dev/features/object-rest-spread&quot; target=&quot;_blank&quot;&gt;Object rest spread&lt;/a&gt;, v8.dev.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Quick reference videos&lt;/strong&gt;&lt;a href=&quot;#quick-reference-videos&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;

Check out these videos for a quick reference on what we&apos;ve covered here
&lt;div&gt;
  &lt;div&gt;
    
  &lt;/div&gt;
  &lt;div&gt;
    
  &lt;/div&gt;
&lt;/div&gt;
</content:encoded><category>react</category><category>tutorial</category><category>web</category></item><item><title>Doc blocks for design system documentation</title><link>https://chan.dev/storybook-doc-blocks-for-design-system-documentation</link><guid isPermaLink="true">https://chan.dev/storybook-doc-blocks-for-design-system-documentation</guid><description>Document design systems with three components from Storybook Doc Blocks
</description><pubDate>Tue, 08 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you document design systems, I’m about to save you a &lt;em&gt;ton&lt;/em&gt; of time.
Because Storybook comes with lesser-known components for organizing colors, typography, and icons.&lt;/p&gt;
&lt;h2&gt;ColorPalette&lt;a href=&quot;#colorpalette&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Display color systems with the &lt;code&gt;ColorPalette&lt;/code&gt; component.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-doc-blocks-for-design-system-documentation_color-palette-example.7oab1IOM_XEyfl.webp&quot; alt=&quot;Storybook component library showing sample color-system documentation&quot; loading=&quot;lazy&quot; width=&quot;2310&quot; height=&quot;1286&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Import &lt;code&gt;&quot;@storybook/blocks&quot;&lt;/code&gt;.
Then render a &lt;code&gt;ColorPalette&lt;/code&gt; with a single &lt;code&gt;ColorItem&lt;/code&gt; inside.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// system/colors.mdx&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { ColorPalette, ColorItem } from &lt;/span&gt;&lt;span&gt;&quot;@storybook/blocks&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;ColorPalette&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;ColorItem /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/ColorPalette&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Create an object with a key and color value.
And pass it to the &lt;code&gt;ColorItem&lt;/code&gt; component via the &lt;code&gt;color&lt;/code&gt; prop.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Both key and value are displayed in the UI.&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;ColorItem &lt;/span&gt;&lt;span&gt;colors={{ Apple: &lt;/span&gt;&lt;span&gt;&quot;#66bf3c&quot;&lt;/span&gt;&lt;span&gt; }}&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Describe &lt;code&gt;ColorItems&lt;/code&gt; with &lt;code&gt;title&lt;/code&gt; and &lt;code&gt;subtitle&lt;/code&gt; props.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;ColorItem&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;title=&lt;/span&gt;&lt;span&gt;&quot;Apple&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;subtitle=&lt;/span&gt;&lt;span&gt;&quot;A delicious brand color.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;colors={{ Apple: &lt;/span&gt;&lt;span&gt;&quot;#66bf3c&quot;&lt;/span&gt;&lt;span&gt; }}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Add as many colors to the &lt;code&gt;colors&lt;/code&gt; prop as needed.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;ColorItem&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;title=&lt;/span&gt;&lt;span&gt;&quot;Apple&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;subtitle=&lt;/span&gt;&lt;span&gt;&quot;A delicious brand color.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;colors={{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Apple: &lt;/span&gt;&lt;span&gt;&quot;#66bf3c&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;AppleDark: &lt;/span&gt;&lt;span&gt;&quot;#46991f&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;AppleLight: &lt;/span&gt;&lt;span&gt;&quot;#83da5a&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Use any CSS-supported color value.&lt;br /&gt;
&lt;code&gt;ColorItem&lt;/code&gt; adds gray cross-hatches to indicate translucency — where color functions with non-&lt;code&gt;1&lt;/code&gt; alpha values are used.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;ColorItem&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;title=&lt;/span&gt;&lt;span&gt;&quot;Apple&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;subtitle=&lt;/span&gt;&lt;span&gt;&quot;A delicious brand color.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;colors={{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Apple: &lt;/span&gt;&lt;span&gt;&quot;rgba(102,191,60,1)&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Apple60: &lt;/span&gt;&lt;span&gt;&quot;rgba(102,191,60,.6)&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Apple30: &lt;/span&gt;&lt;span&gt;&quot;rgba(102,191,60,.3)&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;See full &lt;a href=&quot;https://storybook.js.org/docs/react/api/doc-block-colorpalette&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;ColorPalette&lt;/code&gt; API reference&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Typeset&lt;a href=&quot;#typeset&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Display typography systems with the &lt;code&gt;Typeset&lt;/code&gt; component.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-doc-blocks-for-design-system-documentation_typography-example.BoFDVKE0_1kEqIS.webp&quot; alt=&quot;Storybook component library showing sample typography documentation&quot; loading=&quot;lazy&quot; width=&quot;2310&quot; height=&quot;1286&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Import the &lt;code&gt;Typeset&lt;/code&gt; component from &lt;code&gt;@storybook/blocks&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// system/typography.mdx&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { Typeset } from &lt;/span&gt;&lt;span&gt;&quot;@storybook/blocks&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Typeset {&lt;/span&gt;&lt;span&gt;/* required props */&lt;/span&gt;&lt;span&gt;} /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;Typeset&lt;/code&gt; requires four props to render: &lt;code&gt;fontSizes&lt;/code&gt;, &lt;code&gt;fontWeight&lt;/code&gt;, &lt;code&gt;sampleText&lt;/code&gt;, and &lt;code&gt;fontFamily&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;fontSizes&lt;/code&gt; and &lt;code&gt;fontWeight&lt;/code&gt; support any supported CSS value (and numbers).&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Typeset&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontSizes={[&lt;/span&gt;&lt;span&gt;&quot;2.875em&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;2em&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;1.375em&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;1em&quot;&lt;/span&gt;&lt;span&gt;]}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontWeight=&lt;/span&gt;&lt;span&gt;&quot;900&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;sampleText=&lt;/span&gt;&lt;span&gt;&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontFamily=&lt;/span&gt;&lt;span&gt;&apos;&quot;Nunito Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Create a new &lt;code&gt;Typeset&lt;/code&gt; block for every discrete typographical subset.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;## Code&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Typeset&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontSizes={[16]}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontWeight={400}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;sampleText=&lt;/span&gt;&lt;span&gt;&quot;let var = &apos;const&apos;;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fontFamily=&lt;/span&gt;&lt;span&gt;&apos;ui-monospace,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Menlo, Monaco,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Cascadia Mono&quot;, &quot;Segoe UI Mono&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Roboto Mono&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Oxygen Mono&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Ubuntu Monospace&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Source Code Pro&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Fira Mono&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Droid Sans Mono&quot;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&quot;Courier New&quot;, monospace;&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;See full &lt;a href=&quot;https://storybook.js.org/docs/react/api/doc-block-typeset&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;Typeset&lt;/code&gt; API reference&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;IconGallery&lt;a href=&quot;#icongallery&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Display icons with the &lt;code&gt;IconGallery&lt;/code&gt; component.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/storybook-doc-blocks-for-design-system-documentation_icon-gallery-example.BRNS2kQW_ZMmTwE.webp&quot; alt=&quot;Storybook component library showing sample typography documentation&quot; loading=&quot;lazy&quot; width=&quot;2310&quot; height=&quot;1286&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Import &lt;code&gt;&quot;@storybook/blocks&quot;&lt;/code&gt;.
Then render a &lt;code&gt;IconGallery&lt;/code&gt; with a single &lt;code&gt;IconItem&lt;/code&gt; inside it.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// system/icons.mdx&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { IconGallery, IconItem } from &lt;/span&gt;&lt;span&gt;&quot;@storybook/blocks&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;IconItem&amp;gt;&amp;lt;/IconItem&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Place an icon inside &lt;code&gt;IconItem&lt;/code&gt;.
Then display that icon’s name with the &lt;code&gt;name&lt;/code&gt; prop.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import * as Icons from &quot;&lt;/span&gt;&lt;span&gt;@storybook/icons&lt;/span&gt;&lt;span&gt;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;IconItem&lt;/span&gt;&lt;span&gt; name=&lt;/span&gt;&lt;span&gt;&quot;Accessibility&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;Icons.Accessibility /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/IconItem&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Take this further — in React — by dynamically generating all available icons.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;## Storybook icons&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;Object.entries(Icons)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.filter(([name]) =&amp;gt; name !== &lt;/span&gt;&lt;span&gt;&apos;iconList&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map(([name, Icon]) =&amp;gt; (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;IconItem name={name}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;Icon /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/IconItem&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/IconGallery&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;See full &lt;a href=&quot;https://storybook.js.org/docs/react/api/doc-block-icongallery&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;IconGallery&lt;/code&gt; API reference&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Learn more…&lt;a href=&quot;#learn-more&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Find in-depth references for each component on the &lt;a href=&quot;https://storybook.js.org/docs/&quot; target=&quot;_blank&quot;&gt;Storybook docs page&lt;/a&gt; and &lt;a href=&quot;https://www.youtube.com/@chromaticui&quot; target=&quot;_blank&quot;&gt;Chromatic YouTube channel&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>storybook</category><category>systems</category></item><item><title>React Rally 2023</title><link>https://chan.dev/reactrally-react-intro</link><guid isPermaLink="true">https://chan.dev/reactrally-react-intro</guid><description>Workshop materials for the React Rally 2023 Intro to React workshop. Setup, itinerary, sandbox links, and additional resources.</description><pubDate>Tue, 01 Aug 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;a href=&quot;https://chan.dev/reactrally-react-intro/&quot; target=&quot;_blank&quot;&gt;https://chan.dev/reactrally-react-intro/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Current (updated 2:30pm)&lt;a href=&quot;#current-updated-230pm&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://codesandbox.io/s/show-more-component-3zy7pc&quot; target=&quot;_blank&quot;&gt;Sandbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackblitz.com/edit/show-more-react?file=src%2FApp.js&quot; target=&quot;_blank&quot;&gt;StackBlitz&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;WIFI&lt;a href=&quot;#wifi&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;SSID: &lt;code&gt;Marriott_CONFERENCE&lt;/code&gt;
Access Code: &lt;code&gt;CityCreek&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;
  &lt;div&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/reactrally-react-intro_qr.BR7-Hx1R_2im90F.webp&quot; alt=&quot;React Rally 2023 React Workshop&quot; loading=&quot;lazy&quot; width=&quot;908&quot; height=&quot;1062&quot; /&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Hey friends! Welcome to the React 2023 &lt;a href=&quot;https://reactrally.com/workshop&quot; target=&quot;_blank&quot;&gt;Intro to React workshop&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;I’m so excited to share this day with you. I want us to have a great time. So here’s how you can prepare for success!&lt;/p&gt;
&lt;h2&gt;Contents&lt;a href=&quot;#contents&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#goal&quot;&gt;Goal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#preparation&quot;&gt;Preparation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#instruction-style&quot;&gt;Instruction style&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#summary&quot;&gt;Summary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#itinerary-loose&quot;&gt;Itinerary (loose)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#additional-free-materials&quot;&gt;Additional free materials&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#other-good-learning-components&quot;&gt;Other good learning components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#keep-in-touch&quot;&gt;Keep in touch!&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Goal&lt;a href=&quot;#goal&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Together we’ll develop a strong understanding of the React library and ecosystem.&lt;/p&gt;
&lt;p&gt;With over a decade in the market, React comes with a lot of baggage.
In some ways, it’s harder than ever to learn React because the internet is flooded with competing takes, antiquated terms, and outdated patterns.&lt;/p&gt;
&lt;p&gt;My goal is to provide you with a completely modernized path thru React fundamentals.
The exercises are designed to help you learn React Fundamentals &lt;em&gt;and&lt;/em&gt; direct you toward the best-in-class resources for your future reference.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Preparation&lt;a href=&quot;#preparation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;1. Set up a browser&lt;a href=&quot;#1-set-up-a-browser&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Install a modern&lt;/strong&gt;. &lt;a href=&quot;https://www.google.com/chrome/&quot; target=&quot;_blank&quot;&gt;Chrome&lt;/a&gt; is what I’ll be using.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Install the &lt;a href=&quot;https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi&quot; target=&quot;_blank&quot;&gt;React Developer Tools&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;2. Set up a cloud coding environment&lt;a href=&quot;#2-set-up-a-cloud-coding-environment&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Using a cloud coding service lets us all jump right to the same page. You can use your editor if you prefer, but I recommend using one of these services:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://codesandbox.io/dashboard/recent?workspace=13fe0626-c63e-4176-b287-cba77b2c1105&quot; target=&quot;_blank&quot;&gt;CodeSandbox&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackblitz.com/&quot; target=&quot;_blank&quot;&gt;StackBlitz&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Other, if you feel more comfortable. Ensure that it supports JSX/TSX and ES Module syntax.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;3. Validate your Node.js setup&lt;a href=&quot;#3-validate-your-nodejs-setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Time-permitting, we will start building with the &lt;a href=&quot;https://nextjs.org/&quot; target=&quot;_blank&quot;&gt;Next.js React framework&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you can run the command below (in a terminal), and boot the Next app, you’re good to go:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;npx &lt;/span&gt;&lt;span&gt;create-next-app@latest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;If not, you’ll need to &lt;a href=&quot;https://nextjs.org/docs/getting-started/installation&quot; target=&quot;_blank&quot;&gt;install Node.js 16.8, or later&lt;/a&gt;.
Follow the &lt;a href=&quot;https://nodejs.org/en/download&quot; target=&quot;_blank&quot;&gt;installation instructions on their install page&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Instruction style&lt;a href=&quot;#instruction-style&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I believe that the best way to learn something is to get it under your fingers.
So, we’ll build a lot of components together.
As you have questions, we’ll use &lt;em&gt;Google&lt;/em&gt;, &lt;em&gt;ChatGPT&lt;/em&gt;, and the other developers in the room to find answers.&lt;/p&gt;
&lt;p&gt;I don’t want you to leave with any unasked questions.
&lt;strong&gt;The value of a workshop is the ability to make mistakes and get questions answered.&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Avoiding rabbit holes&lt;a href=&quot;#avoiding-rabbit-holes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To keep the group moving forward, I’ll keep notes of unanswered questions and follow up during breaks.&lt;/p&gt;
&lt;h3&gt;Working ahead&lt;a href=&quot;#working-ahead&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A challenge of group workshops is pace.
While I’d like to do all of the challenges together, I know that some will finish early.
That’s great, I will provide additional resources for those who would like to jump ahead into deeper topics.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Summary&lt;a href=&quot;#summary&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We’re going to have a great day!
Just remember:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Just keep typing!&lt;/strong&gt; The goal is to get this stuff into your brain thru your fingers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ask questions!&lt;/strong&gt; If you have a question, ask them. The only stupid questions are the ones you don’t ask.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Have fun!&lt;/strong&gt; Everyone in this room is at different places on their path. Don’t be threatened by it. Leverage it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I believe in you and am excited about what we’ll learn together.&lt;/p&gt;
&lt;h2&gt;Itinerary (loose)&lt;a href=&quot;#itinerary-loose&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;





























































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;9:00&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Introduction&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://chan.dev/react-basics/&quot; target=&quot;_blank&quot;&gt;React Basics&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;10:30&lt;/td&gt;&lt;td&gt;Break&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;11:00&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;React Children and JSX, (with GPT)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;12:00&lt;/td&gt;&lt;td&gt;Lunch&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;1:30&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://chan.dev/show-more-component/&quot; target=&quot;_blank&quot;&gt;Show more component build — complete intro to React&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;3:00&lt;/td&gt;&lt;td&gt;Break&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;3:30&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Open&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;- Q&amp;amp;A&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;- Mob programming&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;- Programming with AI/LLM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;- Project/Code review&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;5:00&lt;/td&gt;&lt;td&gt;Done&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;Additional free materials&lt;a href=&quot;#additional-free-materials&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://reactpatterns.com/&quot; target=&quot;_blank&quot;&gt;React Patterns&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://reactcontext.com/&quot; target=&quot;_blank&quot;&gt;React Context&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=zdyftlnWm-E&amp;amp;list=PLnc_NxpmOxaP6kHOzL6SVJr58LCTvRwvC&quot; target=&quot;_blank&quot;&gt;React 13 App Directory playlist on YouTube&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Epic React, by Kent C. Dodds
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/react-fundamentals&quot; target=&quot;_blank&quot;&gt;React Fundamentals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/react-hooks&quot; target=&quot;_blank&quot;&gt;React Hooks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/advanced-react-hooks&quot; target=&quot;_blank&quot;&gt;Advanced React Hooks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/advanced-react-patterns&quot; target=&quot;_blank&quot;&gt;Advanced React Patterns&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/react-suspense&quot; target=&quot;_blank&quot;&gt;React Suspense&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/kentcdodds/bookshelf&quot; target=&quot;_blank&quot;&gt;Full-stack App&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.totaltypescript.com/tutorials/react-with-typescript&quot; target=&quot;_blank&quot;&gt;Total TypeScript: React with TypeScript&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Other good learning components&lt;a href=&quot;#other-good-learning-components&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Greeting&lt;/li&gt;
&lt;li&gt;Shareable button&lt;/li&gt;
&lt;li&gt;Timer&lt;/li&gt;
&lt;li&gt;QR code gernerator&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://react.dev/learn/tutorial-tic-tac-toe&quot; target=&quot;_blank&quot;&gt;Tic Tac Toe&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Keep in touch!&lt;a href=&quot;#keep-in-touch&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I want to be helpful throughout your React Rally conference. Here’s how you can reach me:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Discord: @chantastic and organizer of &lt;a href=&quot;https://twitter.com/chantastic&quot; target=&quot;_blank&quot;&gt;lunchdev&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Twitter: &lt;a href=&quot;https://twitter.com/chantastic&quot; target=&quot;_blank&quot;&gt;@chantastic&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Chan [he/any]&lt;/p&gt;
</content:encoded><category>react</category><category>speaking</category><category>workshop</category></item><item><title>Add Lucide Icons to Astro</title><link>https://chan.dev/lucide-in-astro</link><guid isPermaLink="true">https://chan.dev/lucide-in-astro</guid><description>How to add Lucide icons to an Astro site.</description><pubDate>Mon, 31 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There’s no first-class &lt;a href=&quot;https://lucide.dev/&quot; target=&quot;_blank&quot;&gt;Lucide&lt;/a&gt; integration for &lt;a href=&quot;https://astro.build/&quot; target=&quot;_blank&quot;&gt;Astro&lt;/a&gt;.
But making a custom one isn’t too hard.&lt;/p&gt;
&lt;p&gt;This is the component I made to do the job:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const { icon, ...props } = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const [, attributes, children] = icon;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentChildren = children&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;?.map(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;([shape, attributes]) =&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;`&amp;lt;${&lt;/span&gt;&lt;span&gt;shape&lt;/span&gt;&lt;span&gt;} ${&lt;/span&gt;&lt;span&gt;Object.entries(attributes)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map(([k, v]) =&amp;gt; &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;k&lt;/span&gt;&lt;span&gt;}=&quot;${&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span&gt;}&quot;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot; &quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;} /&amp;gt;`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentAttributes = {...attributes, ...props}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;svg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{...componentAttributes}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;set:html={componentChildren}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;If this component looks reasonable to you,
copy it and go forth.&lt;/p&gt;
&lt;p&gt;If you’d like to learn how it works, let’s get it!&lt;/p&gt;
&lt;h2&gt;Our goal&lt;a href=&quot;#our-goal&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For this build, our goal is to render icons directly into an Astro site — converting Lucide’s JSON files to inline &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt;s at build time.&lt;/p&gt;
&lt;p&gt;This &lt;a href=&quot;https://lucide.dev/packages&quot; target=&quot;_blank&quot;&gt;is just one of many ways to add Lucide icons to a site&lt;/a&gt; — the one that fits my needs best.&lt;/p&gt;
&lt;h2&gt;Initial setup&lt;a href=&quot;#initial-setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Add the &lt;code&gt;lucide&lt;/code&gt; package.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;install lucide&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pnpm &lt;/span&gt;&lt;span&gt;install&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;lucide&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;In the standard &lt;code&gt;lucide&lt;/code&gt; package, icons are exported as JSON arrays with the following contents:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[0]&lt;/code&gt;: &lt;code&gt;&quot;svg&quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;[1]&lt;/code&gt;: element attributes&lt;br /&gt;
&lt;code&gt;[2]&lt;/code&gt;: children&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// lucide/dist/esm/icons/accessibility.js&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&apos;svg&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;xmlns&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;http://www.w3.org/2000/svg&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;width&apos;&lt;/span&gt;&lt;span&gt;: 24,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;height&apos;&lt;/span&gt;&lt;span&gt;: 24,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;viewBox&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;0 0 24 24&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;fill&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;none&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;stroke&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;currentColor&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;stroke-width&apos;&lt;/span&gt;&lt;span&gt;: 2,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;stroke-linecap&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;round&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&apos;stroke-linejoin&apos;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;round&apos;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&apos;circle&apos;&lt;/span&gt;&lt;span&gt;, [Object]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&apos;path&apos;&lt;/span&gt;&lt;span&gt;, [Object]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&apos;path&apos;&lt;/span&gt;&lt;span&gt;, [Object]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&apos;path&apos;&lt;/span&gt;&lt;span&gt;, [Object]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&apos;path&apos;&lt;/span&gt;&lt;span&gt;, [Object]],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We need to import these JSON files and render their data as &lt;code&gt;HTML&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Render a single icon&lt;a href=&quot;#render-a-single-icon&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To render a single Lucide icon:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Import any &lt;code&gt;lucide&lt;/code&gt; icon&lt;/li&gt;
&lt;li&gt;Destructure &lt;code&gt;attributes&lt;/code&gt; and &lt;code&gt;children&lt;/code&gt; array items from that icon&lt;/li&gt;
&lt;li&gt;Reduce children nodes to HTML string&lt;/li&gt;
&lt;li&gt;Render an &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt; component
&lt;ul&gt;
&lt;li&gt;Spread &lt;code&gt;attributes&lt;/code&gt; directly on the element&lt;/li&gt;
&lt;li&gt;Apply &lt;code&gt;childElements&lt;/code&gt; with the &lt;code&gt;set:html&lt;/code&gt; directive&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. Import any `lucide` icon&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { Accessibility } from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 2. Destructure the `attributes` and `children` array items&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const [, attributes, children] = Accessibility;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 3. Reduce children nodes to HTML string&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentChildren = children&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;?.map(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;([child, attributes]) =&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;`&amp;lt;${&lt;/span&gt;&lt;span&gt;child&lt;/span&gt;&lt;span&gt;} ${&lt;/span&gt;&lt;span&gt;Object.entries(attributes)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map(([k, v]) =&amp;gt; &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;k&lt;/span&gt;&lt;span&gt;}=&quot;${&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span&gt;}&quot;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot; &quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;} /&amp;gt;`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot;\n&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- 4. render svg element --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;svg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;/* 4.1. Spread `attributes` directly on the element */&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{...attributes}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;/* 4.2. Apply `childElements` with the `set:html` directive */&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;set:html={childrenElements}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Extract &lt;code&gt;LucideIcon&lt;/code&gt; component&lt;a href=&quot;#extract-lucideicon-component&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Now that we can render icons, let’s extract this code as a reusable component.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Move the relevant code to &lt;code&gt;src/components/lucide-icon.astro&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Refactor to &lt;code&gt;icon&lt;/code&gt; as a prop&lt;/li&gt;
&lt;li&gt;Take rest &lt;code&gt;...props&lt;/code&gt; so HTML and SVG attributes can be applied at the call site&lt;/li&gt;
&lt;li&gt;Merge icon &lt;code&gt;attributes&lt;/code&gt; and component &lt;code&gt;props&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Apply munged attributes-props to exported &lt;code&gt;svg&lt;/code&gt; element&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. Take `icon` as a prop&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 2. Take rest `props`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;import { Accessibility } from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const { icon, ...props } = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentChildren = children&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;?.map(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;([child, attributes]) =&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;`&amp;lt;${&lt;/span&gt;&lt;span&gt;child&lt;/span&gt;&lt;span&gt;} ${&lt;/span&gt;&lt;span&gt;Object.entries(attributes)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map(([k, v]) =&amp;gt; &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;k&lt;/span&gt;&lt;span&gt;}=&quot;${&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span&gt;}&quot;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot; &quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;} /&amp;gt;`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot;\n&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 3. Merge `attributes` and `props`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;const componentAttributes = {...attributes, ...props}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;svg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;/* 4. Apply munged `componentAttributes` to svg */&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{...attributes}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{...componentAttributes}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;set:html={childrenElements}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Use the &lt;code&gt;LucideIcon&lt;/code&gt; component&lt;a href=&quot;#use-the-lucideicon-component&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To use our new &lt;code&gt;LucideIcon&lt;/code&gt; component, import it along with any &lt;code&gt;lucide&lt;/code&gt; icon.
Provide the icon JSON to &lt;code&gt;LucideIcon&lt;/code&gt; using the &lt;code&gt;icon&lt;/code&gt; prop.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import LucideIcon from &lt;/span&gt;&lt;span&gt;&quot;#components/lucide-icon.astro&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { Accessibility } from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;LucideIcon icon={Accessibility} /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Apply attributes to &lt;code&gt;LucideIcon&lt;/code&gt;&lt;a href=&quot;#apply-attributes-to-lucideicon&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;LucideIcon&lt;/code&gt; receives props that it merges with the default &lt;code&gt;lucide&lt;/code&gt; values.
Use these to change SVG attributes like &lt;code&gt;height&lt;/code&gt;, &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;fill&lt;/code&gt;, and &lt;code&gt;stroke-width&lt;/code&gt;.
Or apply common attributes like &lt;code&gt;class&lt;/code&gt; and &lt;code&gt;id&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import LucideIcon from &lt;/span&gt;&lt;span&gt;&quot;#components/lucide-icon.astro&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { Accessibility } from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;LucideIcon icon={Accessibility} width=&lt;/span&gt;&lt;span&gt;&quot;56&quot;&lt;/span&gt;&lt;span&gt; height=&lt;/span&gt;&lt;span&gt;&quot;56&quot;&lt;/span&gt;&lt;span&gt; stroke-width=&lt;/span&gt;&lt;span&gt;&quot;4&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Taking it further&lt;a href=&quot;#taking-it-further&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;My preference is to keep icon importing and SVG rendering separated.
But you may find this cumbersome.&lt;/p&gt;
&lt;p&gt;If so, create a facade for &lt;code&gt;LucideIcon&lt;/code&gt; that exposes your favorite icons via &lt;code&gt;string&lt;/code&gt; interface.&lt;/p&gt;
&lt;p&gt;This could look something like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Github as github,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Youtube as youtube,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Twitter as twitter,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Instagram as instagram&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const icons = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;github,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;youtube,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;twitter,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;instagram&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const { name = &lt;/span&gt;&lt;span&gt;&quot;github&quot;&lt;/span&gt;&lt;span&gt;, ...props } = Astro.props;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;if !(icons[name]) { return null }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const [, attributes, children] = icons[name];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentChildren = children&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;?.map(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;([child, attributes]) =&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;`&amp;lt;${&lt;/span&gt;&lt;span&gt;child&lt;/span&gt;&lt;span&gt;} ${&lt;/span&gt;&lt;span&gt;Object.entries(attributes)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.map(([k, v]) =&amp;gt; &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;k&lt;/span&gt;&lt;span&gt;}=&quot;${&lt;/span&gt;&lt;span&gt;v&lt;/span&gt;&lt;span&gt;}&quot;`&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot; &quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;} /&amp;gt;`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;.join(&lt;/span&gt;&lt;span&gt;&quot;\n&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const componentAttributes = {...attributes, ...props}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;svg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{...componentAttributes}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;set:html={childrenElements}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Go further with TypeScript&lt;a href=&quot;#go-further-with-typescript&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;lucide&lt;/code&gt; does not expose its &lt;code&gt;IconNode&lt;/code&gt; type for external use.&lt;/p&gt;
&lt;p&gt;So, if you want to use &lt;a href=&quot;#&quot;&gt;my code above&lt;/a&gt; in TypeScript, you’ll need to get clever.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Import just the type of any component.&lt;/li&gt;
&lt;li&gt;Infer the &lt;code&gt;IconNode&lt;/code&gt; for that icon in the &lt;code&gt;LucideIcon&lt;/code&gt; type declaration.&lt;/li&gt;
&lt;li&gt;Add any optional &lt;code&gt;svg&lt;/code&gt; attributes you’d like to support.&lt;br /&gt;
(e.g., &lt;code&gt;height&lt;/code&gt;, &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;fill&lt;/code&gt;, &lt;code&gt;stroke-width&lt;/code&gt;, etc.)&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// 1. Import just the type of any component.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import type { Accessibility } from &lt;/span&gt;&lt;span&gt;&quot;lucide&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;type Props = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;// 2. Infer the `IconNode` for that icon in the `LucideIcon` type declaration&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;icon: typeof Accessibility;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;That’s it!&lt;a href=&quot;#thats-it&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I hope that you found this useful in building an Astro site.
If you’d like to see more Astro tips and tricks, bug me on Twitter/X or Discord. 😄&lt;/p&gt;</content:encoded><category>astro</category><category>svg</category></item><item><title>Dumping</title><link>https://chan.dev/dumping</link><guid isPermaLink="true">https://chan.dev/dumping</guid><description>I&apos;m a fecal diagnostician — I like to sift thru problems and find the issue. But when diagnosing turns to dumping, I&apos;m out.</description><pubDate>Fri, 28 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;div&gt;&lt;/div&gt;
&lt;p&gt;As a friend, I’m a &lt;em&gt;fecal diagnostician&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I like to get into it.
Lay it all out.
Sift thru it and find the problem.&lt;/p&gt;
&lt;p&gt;My enthusiasm gives folk the idea that I “just like shit.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I don’t.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So when &lt;em&gt;diagnosing&lt;/em&gt; turns to &lt;em&gt;dumping&lt;/em&gt;, I’m out.&lt;br /&gt;
And I’ve left a lot of folks dumbfounded as to why.&lt;/p&gt;
&lt;p&gt;I think we all have extremely nuanced boundaries around our identities.
Inside our boundary is pure delight.
And just outside of it is utter disdain.&lt;/p&gt;
&lt;p&gt;But I’m getting better at saying:
“Don’t dump here. Diagnostic deposits only, dude.”&lt;/p&gt;</content:encoded><category>life</category><category>boundaries</category></item><item><title>To my family…</title><link>https://chan.dev/to-my-family</link><guid isPermaLink="true">https://chan.dev/to-my-family</guid><description>A note to the people who actually know me. The things you see here may feel weird. I am talking past you. With complete sincerity.</description><pubDate>Wed, 26 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;figure&gt;
    &lt;blockquote&gt;To my family. Please don&apos;t read this.&lt;/blockquote&gt;
    &lt;figcaption&gt;
        — Dana Schwartz, &lt;cite&gt;&lt;a href=&quot;https://www.google.com/books/edition/Choose_Your_Own_Disaster/rvszDwAAQBAJ?hl=en&amp;amp;gbpv=1&amp;amp;dq=inauthor:%22Dana+Schwartz%22&amp;amp;printsec=frontcover&quot;&gt;Choose Your Own Disaster&lt;/a&gt;&lt;/cite&gt;
    &lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Open your phone and search for me.
Does anything come up?&lt;/p&gt;
&lt;p&gt;If &lt;em&gt;yes&lt;/em&gt;, &lt;strong&gt;this is for you&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;You’re the elite few that have an &lt;em&gt;actual&lt;/em&gt; relationship with me.
So the things you see — here — may feel weird.
Like I’m talking past you to someone else.&lt;/p&gt;
&lt;p&gt;I am.
But with complete sincerity.&lt;/p&gt;
&lt;p&gt;It may feel like I’m “not the person you knew.” And I’m probably not. Hell, you’re &lt;strong&gt;just&lt;/strong&gt; the person I know. So, let’s swipe left on that. We share a narrow construction of each other that I hope to change.&lt;/p&gt;
&lt;p&gt;I want to be a fuller me and hope that gives you space to be a fuller you.&lt;/p&gt;
&lt;p&gt;It’s ambitious — sure.
And if it feels like too much, use that phone number you have.
Or unfollow.
I accept both for us.&lt;/p&gt;
&lt;p&gt;I love you.
And I hope to see more of you.&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Write-only</title><link>https://chan.dev/write-only</link><guid isPermaLink="true">https://chan.dev/write-only</guid><description>Doing &quot;content&quot; wrong. A write-only approach to doing personal work and unshackling from social algorithms.</description><pubDate>Mon, 24 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I think I’m ok with doing “content” wrong.&lt;/p&gt;
&lt;p&gt;When I took a job in developer experience, I felt responsible for understanding social algorithms.&lt;/p&gt;
&lt;p&gt;And it made me not want to post.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Capitalize on trends&lt;/li&gt;
&lt;li&gt;Shitpost&lt;/li&gt;
&lt;li&gt;“Niche down to blown up”&lt;/li&gt;
&lt;li&gt;“be wrong on the internet”&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And tuning into it has made my feed… insufferable.&lt;/p&gt;
&lt;p&gt;It all just keeps me in loop, on edge, under pressure, missing out…&lt;br /&gt;
And I’m looking for less of :gesticulates-wildly: &lt;em&gt;all that&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I’m switching to &lt;em&gt;write-only&lt;/em&gt; sharing for the next few months.&lt;br /&gt;
I’ll share what I make, make what I want, and fuck-all with the rest.&lt;/p&gt;</content:encoded><category>content</category></item><item><title>Fix VS Code Explorer for Content Projects</title><link>https://chan.dev/vs-code-explorer-sort-order</link><guid isPermaLink="true">https://chan.dev/vs-code-explorer-sort-order</guid><description>Stop fighting the VS Code Explorer. Use mixed sort order for content projects.</description><pubDate>Thu, 20 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The &lt;a href=&quot;https://code.visualstudio.com/docs/getstarted/userinterface#_explorer&quot; target=&quot;_blank&quot;&gt;VS Code explorer&lt;/a&gt; displays folders at the top of a directory.
This is a common hierarchy that I like it &lt;em&gt;most&lt;/em&gt; cases.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But I hate it for content.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For content sites — like &lt;a href=&quot;https://chan.dev/&quot; target=&quot;_blank&quot;&gt;chan.dev&lt;/a&gt; — I prefer alphabetical order.
I want to see my files and folders all &lt;em&gt;mixed&lt;/em&gt; up together.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/vs-code-explorer-sort-order_mixed-example.BKIdBIpD_1NtqM1.webp&quot; alt=&quot;Screenshot of the Visual Studio Code Explorer, showing several markdown posts. With explorer.sortOrder: mixed, a directory of the same name as a post appears next to a post with the same name.&quot; loading=&quot;lazy&quot; width=&quot;848&quot; height=&quot;398&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;How to change the setting&lt;a href=&quot;#how-to-change-the-setting&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To change the default behavior, open Settings and find the option for &lt;code&gt;Explorer: Sort Order&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/vs-code-settings_explorer-sort-order-mixed.DCplt3YY_nj7d8.webp&quot; alt=&quot;Screenshot of VS Code Settings, for the option Explorer: Sort Order. Selected is the mixed option.&quot; loading=&quot;lazy&quot; width=&quot;1722&quot; height=&quot;856&quot; /&gt;&lt;/p&gt;
&lt;p&gt;With this option enabled, files and folders are interwoven in the explorer.&lt;/p&gt;
&lt;h2&gt;Why I prefer mixed sort order&lt;a href=&quot;#why-i-prefer-mixed-sort-order&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;On &lt;a href=&quot;https://chan.dev/&quot; target=&quot;_blank&quot;&gt;chan.dev&lt;/a&gt;, I have lots of markdown files.
Some of them have images.
And I want to keep those images in a folder nearby.
I ain’t tryna faff with Cloudinary, or hunt down shared &lt;code&gt;/assets/images&lt;/code&gt; folder.
&lt;em&gt;I want them right next to my post.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This makes it easy to keep my place on the file system.&lt;/p&gt;
&lt;h2&gt;Take it further with workspaces&lt;a href=&quot;#take-it-further-with-workspaces&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As mentioned, I prefer the default sort order for most projects.
So, I keep this setting stored in my &lt;a href=&quot;https://chan.dev/&quot; target=&quot;_blank&quot;&gt;chan.dev&lt;/a&gt; &lt;a href=&quot;https://code.visualstudio.com/docs/editor/workspaces&quot; target=&quot;_blank&quot;&gt;workspace&lt;/a&gt;.
And only &lt;em&gt;this&lt;/em&gt; project is impacted by the setting.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// chan.dev/.vscode/settings.json&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;explorer.sortOrder&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;mixed&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
</content:encoded><category>vscode</category></item><item><title>Kent C. Dodds is great, btw</title><link>https://chan.dev/kent-c-dodds-is-great-btw</link><guid isPermaLink="true">https://chan.dev/kent-c-dodds-is-great-btw</guid><description>Kent is my real-life Ted Lasso. Never have I met someone who thinks so positively of everyone.</description><pubDate>Wed, 19 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Kent is my real-life Ted Lasso.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/_astro/ted-lasso-believe.C5E6_8SU_1dDSw3.webp&quot; alt=&quot;Ted Lasso Afc Richmond GIF, pointing to the believe sign&quot; loading=&quot;lazy&quot; width=&quot;640&quot; height=&quot;426&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Kent believes in me.
And he believes in you.
Never, have I ever, met someone who thinks so positively of everyone.
And with everything on his mind — family, faith, following, etc — it’s amazing he makes time to think of others at all.&lt;/p&gt;
&lt;p&gt;He’s thought of me in ways that are deeply personal, and has made me feel capable in ways I didn’t believe.&lt;/p&gt;
&lt;p&gt;Kent, you’re the best.&lt;br /&gt;
I love you, friend.&lt;/p&gt;</content:encoded><category>people</category><category>life</category></item><item><title>Assets and artifacts</title><link>https://chan.dev/assets-and-artifacts</link><guid isPermaLink="true">https://chan.dev/assets-and-artifacts</guid><description>Work worth doing produces twice. Once as an artifact and again as an asset. Don&apos;t get paid only once. Upgrade all work from artifacts to assets.</description><pubDate>Sun, 02 Jul 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I believe that everyone contributes to design. As a design systems lead, I employed this belief threw a process of emergant design. Components were extracted and refined, not created in a vaccuum.&lt;/p&gt;
&lt;p&gt;“Artifacts to Assets” is what I called it.&lt;br /&gt;
The frame emerges from the work.
Put enough dots on the board and the pattern reveals itself.&lt;/p&gt;
&lt;p&gt;And this informs the work that I’m doing here at Chromatic.&lt;br /&gt;
I wholy admit that I didn’t know how to build a video audience for Chromatic before starting. Nobody did. But by putting work on the board, we learn what people expect and how to adapt it to new audiences and formats.&lt;/p&gt;
&lt;p&gt;My goal is to develop a set of constraints that support our work.
So far, those constraints have changed from quarter to quarter (or we’ve had alternative goals).
But my goal has been to develop a framework that supports video as a target.&lt;/p&gt;
&lt;h2&gt;Unique aspects of video&lt;a href=&quot;#unique-aspects-of-video&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Video in non-responsive and non-adaptive.&lt;/p&gt;
&lt;p&gt;The web is responsive. Change the frame, change the experienc.
Video is not responsive. Change the frame and the content may be undesiferable.&lt;/p&gt;
&lt;p&gt;The web is adaptive. You can customize, tailor, and personalize an experience to any user.
Video is not responsive. Every varient must be recorded or edited discretely.&lt;/p&gt;</content:encoded><category>content</category><category>career</category></item><item><title>Sitemap</title><link>https://chan.dev/sitemap</link><guid isPermaLink="true">https://chan.dev/sitemap</guid><description>Generate sitemaps for optimal website indexing. Learn techniques to aid search engines in discovering and indexing your public (and hidden) pages.</description><pubDate>Thu, 15 Jun 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I use a sitemap to index pages of this site that aren’t linked from the home page.&lt;/p&gt;
&lt;p&gt;A sitemap is an XML list of pages I’d like indexed (even if they can’t be crawled from other pgaes).
You can &lt;a href=&quot;https://chan.dev/sitemap-0.xml&quot; target=&quot;_blank&quot;&gt;find my sitemap here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Search engines know to look for &lt;code&gt;sitemap.xml&lt;/code&gt; or &lt;code&gt;sitemap-index.xml&lt;/code&gt; (a list of sitemaps) at the root of a site.&lt;/p&gt;
&lt;p&gt;If you want to be explicit, you can tell Google where to find yours by uploading it to &lt;a href=&quot;https://search.google.com/search-console/sitemaps&quot; target=&quot;_blank&quot;&gt;Search Console&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I used &lt;a href=&quot;https://docs.astro.build/en/guides/integrations-guide/sitemap/&quot; target=&quot;_blank&quot;&gt;&lt;code&gt;@astrojs/sitemap&lt;/code&gt;&lt;/a&gt; to generate mine but it’s a pretty simple XML document structure if you want to generate your own.
It looks like this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- chan.dev/feeds/sitemap-0.xml --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot; xmlns:news=&quot;http://www.google.com/schemas/sitemap-news/0.9&quot; xmlns:xhtml=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:image=&quot;http://www.google.com/schemas/sitemap-image/1.1&quot; xmlns:video=&quot;http://www.google.com/schemas/sitemap-video/1.1&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;url&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;loc&amp;gt;https://chan.dev/&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;url&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;loc&amp;gt;https://chan.dev/sitemap/&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/urlset&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Sitemaps are nice to have but not critical.
The work great if you have content you’d like indexed even if not directly linked on your home page.&lt;/p&gt;</content:encoded><category>web</category><category>seo</category></item><item><title>Astro</title><link>https://chan.dev/rewrite-11ty-blog-in-astro</link><guid isPermaLink="true">https://chan.dev/rewrite-11ty-blog-in-astro</guid><description>Rewriting a site in Astro for content-forward conventions, &apos;islands&apos; concept, React productivity, and easy UI library demos integration.</description><pubDate>Mon, 16 Jan 2023 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m re-writing my site in Astro. You can find &lt;a&gt;my reasons for leaving 11ty here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This page is notes on the ground-up rewrite of a blog in Astro, featuring heavily customized markdown, tag collections, a feed page, sitemap, and rss feeds.&lt;/p&gt;
&lt;p&gt;This is not a tutorial. You won’t find elaborate step-by-step instructions, but high-level decisions and outcomes.&lt;/p&gt;
&lt;h2&gt;From starter or from scratch?&lt;a href=&quot;#from-starter-or-from-scratch&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Astro provides several ways to start a blog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://astro.build/themes/details/blog/&quot; target=&quot;_blank&quot;&gt;Official blog starter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://astro.build/themes/blog/&quot; target=&quot;_blank&quot;&gt;Community starters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.astro.build/en/tutorial/0-introduction/&quot; target=&quot;_blank&quot;&gt;In-depth tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When I say “in-depth” I mean, it really seems like they’re assuming you’ve never programmed before. Fortunately, you can &lt;a href=&quot;https://docs.astro.build/en/tutorial/2-pages/&quot; target=&quot;_blank&quot;&gt;skip to Unit 2&lt;/a&gt; and bypass all the “This is a code editor” stuff that doesn’t belong in this type of tutorial.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Installation&lt;a href=&quot;#installation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;npm &lt;/span&gt;&lt;span&gt;create&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;astro@latest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This starts a cli wizard.
You’ll select a starting template and typescript preferences.&lt;/p&gt;
&lt;p&gt;You can chose between three project types:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;❯   &lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;few&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;best&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;practices&lt;/span&gt;&lt;span&gt; (recommended)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;a &lt;/span&gt;&lt;span&gt;personal&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;website&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;starter&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;kit&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;an &lt;/span&gt;&lt;span&gt;empty&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;I tried all of them and they cleanly do what they say on the tin.&lt;/p&gt;
&lt;p&gt;But for this particular project (a port from a previous site), I’m looking for as little existing opinion as is reasonable.&lt;/p&gt;
&lt;p&gt;I chose &lt;code&gt;a few best practices (recommended)&lt;/code&gt; because it has the common folder structure of &lt;code&gt;components&lt;/code&gt;, &lt;code&gt;layouts&lt;/code&gt;, and &lt;code&gt;pages&lt;/code&gt; is seem “best practice” in Astro.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;╭─────╮ &lt;/span&gt;&lt;span&gt;Houston:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;│ &lt;/span&gt;&lt;span&gt;◠&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;◡&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;◠&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Let&apos;s build something awesome!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;╰─────╯&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;astro v1.9.2 Launch sequence initiated.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Where would you like to create your new project? … loose-light&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ How would you like to setup your new project? › a few best practices (recommended)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Template copied!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Would you like to install npm dependencies? (recommended) … yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Packages installed!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Would you like to initialize a new git repository? (optional) … yes&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ Git repository created!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ How would you like to setup TypeScript? › Strict&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;✔ TypeScript settings applied!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;next Liftoff confirmed. Explore your project!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Enter your project directory using cd ./loose-light&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Run npm run dev to start the dev server. CTRL+C to stop.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Add frameworks like react or tailwind using astro add.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Stuck? Join us at https://astro.build/chat&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;╭─────╮ Houston:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;│ ◠ ◡ ◠ Good luck out there, astronaut!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;╰─────╯&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;”Best practices”&lt;a href=&quot;#best-practices&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;An aside on “best practice.”&lt;/p&gt;
&lt;p&gt;The idea of having dedicated, root-level &lt;code&gt;/components&lt;/code&gt;, &lt;code&gt;/layouts&lt;/code&gt;, and &lt;code&gt;/pages&lt;/code&gt; feels very &lt;code&gt;next@old-and-busted&lt;/code&gt;. &lt;a href=&quot;https://kit.svelte.dev/&quot; target=&quot;_blank&quot;&gt;SvelteKit&lt;/a&gt; is leading innovation in file-system based routing and I’d welcome it in Astro.&lt;/p&gt;
&lt;h2&gt;So, why not SvelteKit?&lt;a href=&quot;#so-why-not-sveltekit&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;So, if I think SvelteKit is the most innovative framework, why not build my blog with SvelteKit?&lt;/p&gt;
&lt;p&gt;That’s a good question.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I like that Astro has few blog/content-forward conventions&lt;/li&gt;
&lt;li&gt;I like the “Islands” concept for content sites, like a blog&lt;/li&gt;
&lt;li&gt;I’m still most productive in React&lt;/li&gt;
&lt;li&gt;Astro would let me easily add demos to my site using any UI library&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For those reasons, I’m willing to concede a less progressive and productive folder structure.&lt;/p&gt;</content:encoded><category>web</category><category>astro</category><category>11ty</category></item><item><title>ADR — Architecture Decision Record</title><link>https://chan.dev/adrs</link><guid isPermaLink="true">https://chan.dev/adrs</guid><description>Overcome decision fatigue with Architecture Decision Records (ADRs), a structured format for documenting decisions and consequences.</description><pubDate>Wed, 28 Dec 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Decision fatigue is real and it sucks.&lt;/p&gt;
&lt;p&gt;When decisions aren’t clear, people feel jerked around.&lt;/p&gt;
&lt;p&gt;For 8 years, I worked at an organization that was allergic to decisions.
Rather, they’d make decisions and then weasel out of them when things got challenging.&lt;/p&gt;
&lt;p&gt;From that experience, I came to believe that &lt;a href=&quot;https://en.wikipedia.org/wiki/Disagree_and_commit&quot; target=&quot;_blank&quot;&gt;“disagree and commit”&lt;/a&gt; is a toxin — where leaders and managers aren’t required to commit the same contributors.&lt;/p&gt;
&lt;p&gt;Sticking to a decision requires a form of agreement, line-in-the-sand, waypoint, etc.
For me, it started small with a folder of markdown files called &lt;code&gt;decisions&lt;/code&gt;. It was a blame-free way for anyone to peer into past decisions, learn how we came to that decision, and determine if the place we found ourselves was inside or outside of what we had predicted.&lt;/p&gt;
&lt;p&gt;Earlier this year, I learned that &lt;a href=&quot;https://youtu.be/2LMaihPQKus?t=1717&quot; target=&quot;_blank&quot;&gt;Shopify uses “decision logs” to unite their teams&lt;/a&gt; around decisions.&lt;/p&gt;
&lt;div&gt;

&lt;/div&gt;
&lt;p&gt;But how is a decision log tracked? What’s the format? How are changes superseded?&lt;/p&gt;
&lt;p&gt;My directory of markdown files was pretty ad-hoc.
And I didn’t get into the nitty-gritty of Shopify’s approach with Ryan.&lt;/p&gt;
&lt;h2&gt;Welcome Architecture Decision Records&lt;a href=&quot;#welcome-architecture-decision-records&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I saw this tweet by Charity Majors and the term “decision record” hooked me.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Yeeesssss!! Lowkey obsessed with decision records/ADRs right now. If I were starting a new company (which I *am not,* and *will never*) I would be using these from day one.&lt;br /&gt;&lt;br /&gt;And not just for technical decisions, either. For any decision with a blast radius of &amp;gt;1 group. &lt;a href=&quot;https://t.co/Zi4ndzSNA0&quot;&gt;https://t.co/Zi4ndzSNA0&lt;/a&gt;&lt;/p&gt;— Charity Majors (@mipsytipsy) &lt;a href=&quot;https://twitter.com/mipsytipsy/status/1601441441196040192?ref_src=twsrc%5Etfw&quot;&gt;December 10, 2022&lt;/a&gt;&lt;/blockquote&gt; 
&lt;blockquote&gt;&lt;p&gt;My usual beef with reference architectures is that they launder the creators&apos; assumptions into &quot;best practices&quot; without helping you put your own needs in context. &lt;br /&gt;&lt;br /&gt;Turns out there&apos;s a cheat code to get past this problem, and the team that built &quot;Emblem Giving&quot; found it: &lt;a href=&quot;https://t.co/Y1IBIxmYYB&quot;&gt;pic.twitter.com/Y1IBIxmYYB&lt;/a&gt;&lt;/p&gt;— Forrest Brazeal (@forrestbrazeal) &lt;a href=&quot;https://twitter.com/forrestbrazeal/status/1593354888821592066?ref_src=twsrc%5Etfw&quot;&gt;November 17, 2022&lt;/a&gt;&lt;/blockquote&gt; 
&lt;p&gt;The &lt;a href=&quot;http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions&quot; target=&quot;_blank&quot;&gt;Architecture Decision Record is a document format described by Michael Nygard&lt;/a&gt;. Each record requires a few pieces of information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;publishDate&lt;/li&gt;
&lt;li&gt;decision&lt;/li&gt;
&lt;li&gt;status&lt;/li&gt;
&lt;li&gt;context&lt;/li&gt;
&lt;li&gt;consequences&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Consequences is my favorite. Because, when the going gets tough, the tough start wining about the known consequences of their own decisions.&lt;/p&gt;
&lt;h2&gt;Money by mouth&lt;a href=&quot;#money-by-mouth&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I’m using the ADR structure on a number of projects — personal and professional, this year and next.
In fact, &lt;a href=&quot;https://github.com/chantastic/sites/commit/50c28be923a19eea193f6273ee956b885a9e9f1a&quot; target=&quot;_blank&quot;&gt;I just committed my first decision record to this very site&lt;/a&gt; using the command line tool &lt;a href=&quot;https://github.com/npryce/adr-tools&quot; target=&quot;_blank&quot;&gt;adr-tools&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;I’ll let you know how it goes.&lt;/p&gt;
&lt;p&gt;And if you’re using them, let me know how they’re working!&lt;/p&gt;
</content:encoded><category>career</category><category>web</category></item><item><title>Contrast</title><link>https://chan.dev/contrast</link><guid isPermaLink="true">https://chan.dev/contrast</guid><description>We can struggling on one axis of life and thrive on another. And while I pine for a sugary, static, undisrupted life… it&apos;s complexity that keeps contrast high.</description><pubDate>Wed, 31 Aug 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m always on the hunt for contrast.
It’s why I like comedy-horror so much.
The juxtaposition of a hero spitting jocose one-liners, while being dismembered… it just hits.&lt;/p&gt;
&lt;p&gt;Our curse is that &lt;em&gt;every thing&lt;/em&gt; becomes &lt;em&gt;every day&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Climbing Mt. Everest is a lifetime goal for many. But for a sherpa, it’s a day job. By contrast, a sherpa’s lifetime goal may seem comparatively banal to us.&lt;/p&gt;
&lt;p&gt;So, contrast is the antidote… right?&lt;/p&gt;
&lt;p&gt;If so, how do we keep contrast?
How do we assemble adversity?
Do we chase chaos — churning the waters by constantly changing course.
Do we dive into depravation — duping our brains into delight by self-denial?
Or do we follow fundamentalists — foraging for fixation by going farther and finding fresh insights?&lt;/p&gt;
&lt;p&gt;None.
We embrace complexity.&lt;/p&gt;
&lt;p&gt;We’re capable of struggling on one axis of life and thriving on another.&lt;/p&gt;
&lt;p&gt;And while I pine for a sugary, static, undisrupted life… its complexity that keeps contrast high — across experiences.&lt;/p&gt;
&lt;p&gt;Framed as a comedy-horror:
I may have lost a hand to an army evil dead,
But I’ve still got a biting whit.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/DrZwFAvlmVY&quot; target=&quot;_blank&quot;&gt;“Come get some.”&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;🔫 &lt;a href=&quot;https://chan.dev/twitter&quot; target=&quot;_blank&quot;&gt;chan&lt;/a&gt;&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Twice</title><link>https://chan.dev/twice</link><guid isPermaLink="true">https://chan.dev/twice</guid><description>For any goal, break the project into small parts with a pass-fail criteria. Then pass… or fail.</description><pubDate>Wed, 24 Aug 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;It was a week before my 2002 Digital Multimedia Arts final that it became clear:&lt;br /&gt;
&lt;strong&gt;It takes me twice as long to do anything.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Indifferent to my &lt;em&gt;intention&lt;/em&gt;, my &lt;em&gt;attention&lt;/em&gt; waxes and wanes.
A can’t force it into submission.
I can only show up, sit down, and hover the “buy” button — as the product of my focus goes in and out of stock.&lt;/p&gt;
&lt;p&gt;That 20 year old moment flew back at me like a boomerang as I watched Dr. Russel Barkley 38 minute talk: &lt;strong&gt;&lt;a href=&quot;https://youtu.be/sPFmKu2S5XY&quot; target=&quot;_blank&quot;&gt;The Neuroanatomy of ADHD and thus how to treat ADHD&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;He describes the ADHD brain as having an “intention disorder.”
The link between the knowing brain and the doing brain is severed.
And the result is “an inability to plan across time.”&lt;/p&gt;
&lt;p&gt;But his suggestion is not what I expected.
Instead of removing consequence, he suggests the opposite:
&lt;strong&gt;Arrive at consequence faster and increase their frequency&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Stream before recording the course. Speak at a meetup before the conference. Cook for family before hosting the block party.&lt;/p&gt;
&lt;p&gt;For any goal, break the project into small parts with a pass-fail criteria.
Then pass… or fail.&lt;/p&gt;
&lt;p&gt;It’s sounds easy. But it’s not.
I hate fake deadlines and can’t stand doubling back.
I just have to remind myself:
It’ll take me twice as long either way.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://chan.dev/twitter&quot; target=&quot;_blank&quot;&gt;@chantastic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;P.S.
What are you tactics for hacking your variable focus?
I’d love to learn!&lt;/p&gt;</content:encoded><category>life</category></item><item><title>How to land your first conference talk</title><link>https://chan.dev/how-to-land-your-first-conference-talk</link><guid isPermaLink="true">https://chan.dev/how-to-land-your-first-conference-talk</guid><description>Learn the secrets of landing your first conference talk, from leveraging prior experience, to crafting irresistible titles, and using social media effectively.</description><pubDate>Fri, 10 Jun 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Folks ask me how to land a conference talk.&lt;/p&gt;
&lt;p&gt;I’m no expert but I’ve been speaking at meetups and conferences since 2013. So, I have a little experience.&lt;/p&gt;
&lt;p&gt;Here are a few things you can do.&lt;/p&gt;
&lt;p&gt;🔁 &lt;a href=&quot;#have-spoken-before&quot;&gt;Have spoken before&lt;/a&gt;
👉 &lt;a href=&quot;#have-an-obvious-affiliation&quot;&gt;Have an obvious affiliation&lt;/a&gt;
🙋 &lt;a href=&quot;#ask-organizers-what-they-looking-for&quot;&gt;Ask organizers what they look for&lt;/a&gt;
🙀 &lt;a href=&quot;#craft-a-banger-title&quot;&gt;Craft a banger title&lt;/a&gt;
😈 &lt;a href=&quot;#be-a-nuisance-on-social&quot;&gt;Be a nuisance on social&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Have spoken before&lt;a href=&quot;#have-spoken-before&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I know, I know.&lt;/p&gt;
&lt;p&gt;Totally unhelpful. But true.&lt;/p&gt;
&lt;p&gt;The best way to speak at a conference is to have spoken at a conference.&lt;/p&gt;
&lt;p&gt;Organizers are taking a big risk organizing a conf. They want talks that are a sure thing. You won’t get very far if you can’t sell yourself.&lt;/p&gt;
&lt;p&gt;So how do you sell yourself?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Speak at meetups (where talks are recorded and published)&lt;/li&gt;
&lt;li&gt;Stream&lt;/li&gt;
&lt;li&gt;Record yourself talking about the topic on social&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Make it easy to visualize you, on stage, delivering your topic.&lt;/p&gt;
&lt;h2&gt;Have an obvious affiliation&lt;a href=&quot;#have-an-obvious-affiliation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Experts speakers sell conference tickets. So propose a talk in your realm of your perceived expertise.&lt;/p&gt;
&lt;p&gt;Do you work at AWS? Propose a talk on grokking the latest serverless/edge offerings.&lt;/p&gt;
&lt;p&gt;Do you work on Shopify’s Polaris design system? Talk about the challenges of distributed componentry and wins others can copy.&lt;/p&gt;
&lt;p&gt;Be obvious. Draw a straight line between the role you hold and the information you’re sharing. Be predictable. Press your advantages. Borrow from your company’s brand if you have to.&lt;/p&gt;
&lt;h2&gt;Ask organizers what they looking for&lt;a href=&quot;#ask-organizers-what-they-looking-for&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Wild, I know — just ask. Nobody does.&lt;/p&gt;
&lt;p&gt;Many organizers will create a document sharing &lt;em&gt;exactly&lt;/em&gt; what they look for in proposals. And there’s no greater cheat code than the person evaluating your proposal sharing the rubric.&lt;/p&gt;
&lt;p&gt;Let me make it easy. Here’s something you can copy and paste into a DM or email:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Hey!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;I&apos;d love to speak at your conference.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Do you have a page with recommendations for talk proposals?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;If not, do you have a favorite talks I might review?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Short. Sweet. To the point. And now you’ve introduced yourself to the organizer. 🐥🐥🪨&lt;/p&gt;
&lt;h2&gt;Craft a banger title&lt;a href=&quot;#craft-a-banger-title&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A conference talk title needs to entice people in a single sentence.&lt;/p&gt;
&lt;p&gt;There are two ways to do that.&lt;/p&gt;
&lt;h3&gt;Obvious titles&lt;a href=&quot;#obvious-titles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;If you’re fortunate enough to have a topic with a lot of interest and little prior art, say exactly what your talk is about in the title. Here are a few I’ve used:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=kTSsZrub5iE&quot; target=&quot;_blank&quot;&gt;React on Rails&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=0aBv8dsZs84&quot; target=&quot;_blank&quot;&gt;Styling React components in JavaScript&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=YaZg8wg39QQ&quot; target=&quot;_blank&quot;&gt;React component patterns&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=ERB1TJBn32c&quot; target=&quot;_blank&quot;&gt;Inline Styles: themes, media queries, contexts, and when to just use CSS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These worked (several years ago) because there wasn’t a lot of material on the topic. These topics would get drown out today. But if you’re in the privileged position of working in uncharted territory. Use an obvious, SEO-able title.&lt;/p&gt;
&lt;h3&gt;Provocative titles&lt;a href=&quot;#provocative-titles&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;If your talk is more abstract, try to irritate people. You want a title that screams “WTF? How are these things related?” These are some I’ve used:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=Hpx3kOtPovk&quot; target=&quot;_blank&quot;&gt;Tame the UI multi-verse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=7ri10aE-Idc&quot; target=&quot;_blank&quot;&gt;Hot garbage: clean code is dead&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=1haxbZEl6vY&quot; target=&quot;_blank&quot;&gt;The world’s most expensive React component and how to stop writing it&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Take a concept people know and then punch a gaping whole into the middle of it. If they’re asking “why does this thing I thought I knew have a whole in it now?” they might actually attend your talk.&lt;/p&gt;
&lt;h2&gt;Be a nuisance on social&lt;a href=&quot;#be-a-nuisance-on-social&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I’m gonna repeat this. Conferences are measured in ticket sales. Ticket sales are generated by hype.&lt;/p&gt;
&lt;p&gt;It doesn’t matter how altruistic the event is. The life blood of a durable event is ticket sales.&lt;/p&gt;
&lt;p&gt;So sell tickets.&lt;/p&gt;
&lt;p&gt;Go to social and say you submitted a CFP. Share your title. Ask people what they’d like to see covered. Ask who’s in the area and what they’d like to do when you’re all together.&lt;/p&gt;
&lt;p&gt;Make yourself a critical part of the conference before you even get accepted. When they can envision you, at the event, throwing vibes, it gets harder to say no (regardless of your topic).&lt;/p&gt;
&lt;p&gt;Now, don’t be a jerk. This is a good way to augment the strategies above. If you haven’t demonstrated your interest in making a great event (to the organizers), you’ll turn the organizers off to you.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Ok. That’s probably enough on breaking into the speaker scene.&lt;/p&gt;
&lt;p&gt;Do you have any tips for me? What worked for you? {% bug-me-on-twitter, “Hit me on twitter.” %}&lt;/p&gt;</content:encoded><category>speaking</category><category>career</category></item><item><title>Play</title><link>https://chan.dev/play</link><guid isPermaLink="true">https://chan.dev/play</guid><description>Most rocks don&apos;t turn into diamonds under extreme pressure. Why am I pushing to be a hard diamond when I could be a happy rock?</description><pubDate>Fri, 28 Jan 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My theme for 2022 is &lt;strong&gt;play&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Yes, it’s almost February.
I take my time and I’m good with me 😊&lt;/p&gt;
&lt;p&gt;I’ve believed that pressure is what makes me produce work.
That belief is probably from my work-focused immigrant upbringing. Or maybe it’s from a pull-quote I read by a productive but unhappy designer. Wherever it came from, it’s a belief I’d like to challenge.&lt;/p&gt;
&lt;p&gt;I’m inspired by &lt;a href=&quot;https://sive.rs/relax&quot; target=&quot;_blank&quot;&gt;Derek Sivers, who learned that stress earned him a mere 4% gain in his regular bike rides&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I’m inspired by creative engineers &lt;a href=&quot;https://twitter.com/sarah_edo/&quot; target=&quot;_blank&quot;&gt;Sara Drasner&lt;/a&gt;, &lt;a href=&quot;https://twitter.com/cassidoo&quot; target=&quot;_blank&quot;&gt;Cassidy Williams&lt;/a&gt;, &lt;a href=&quot;https://twitter.com/lynnandtonic&quot; target=&quot;_blank&quot;&gt;Lynn Fisher&lt;/a&gt;, and &lt;a href=&quot;https://twitter.com/jlengstorf&quot; target=&quot;_blank&quot;&gt;Jason Lengstorf&lt;/a&gt;, who make play a fixture of their tech careers.&lt;/p&gt;
&lt;p&gt;But I’m inspired most by an article from Jonny Sun:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Most rocks, I assume, don’t turn into diamonds under extreme pressure. &lt;em&gt;— &lt;a href=&quot;https://jonnysun.bulletin.com/17-rock&quot; target=&quot;_blank&quot;&gt;#17. Rock (ordinary)&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Why am I pushing to be a hard diamond, when I could be a happy rock?&lt;/p&gt;
&lt;p&gt;Let’s play!&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Reduce, Reuse, Recycle</title><link>https://chan.dev/reduce-reuse-recycle</link><guid isPermaLink="true">https://chan.dev/reduce-reuse-recycle</guid><description>Do it with less effort. Don&apos;t start from scratch. Use content you&apos;ve made on different platforms.</description><pubDate>Fri, 31 Dec 2021 00:00:00 GMT</pubDate><content:encoded>&lt;h3&gt;Reduce&lt;a href=&quot;#reduce&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Do it with less effort and fewer tools.&lt;/p&gt;
&lt;h2&gt;Reuse&lt;a href=&quot;#reuse&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Don’t start from scratch; use the last thing as a starter.&lt;/p&gt;
&lt;h2&gt;Recycle&lt;a href=&quot;#recycle&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Use content you’ve made on different platforms.&lt;/p&gt;</content:encoded><category>content</category><category>life</category></item><item><title>Release: Reviewed</title><link>https://chan.dev/release-reviewed</link><guid isPermaLink="true">https://chan.dev/release-reviewed</guid><description>I got kneecapped then re-capped my knees.</description><pubDate>Fri, 31 Dec 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A man walks into a bar.&lt;br /&gt;
”I’ll have the regular but spice it up.” — he says.&lt;br /&gt;
The purveyor replied, “find a new bar.”&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(This isn’t a joke. It’s a feeling.)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I claimed “&lt;a href=&quot;../release&quot;&gt;release&lt;/a&gt;” as my annual theme for 2021.&lt;br /&gt;
I expected big things to remain the same. And I expected the little things to change a little.&lt;/p&gt;
&lt;p&gt;I wanted more ideas out of my head, more stuff out of my garage, and more papers off my floor.&lt;/p&gt;
&lt;p&gt;You know, “Marie Kondo that shit.”&lt;/p&gt;
&lt;p&gt;But the little stuff stayed the same, and the big stuff came down like an avalanche.&lt;/p&gt;
&lt;p&gt;My writing habit of 1 year fell.&lt;br /&gt;
My podcast of 3 years fell.&lt;br /&gt;
My health habits of 3 years fell.&lt;br /&gt;
My job of 8 years fell.&lt;br /&gt;
My friends of 8 years fell.&lt;br /&gt;
My marriage of 15 years didn’t fall. But it faltered.&lt;/p&gt;
&lt;p&gt;The pillars of my identity had rotted.
And I thought I’d be asking which 2018 doodles “spark joy.”&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Recap: I got kneecapped then recapped my knees.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can’t recap this year in a single post. But I believe “release” was a fitting theme — even if different than I planned.&lt;/p&gt;
&lt;p&gt;I released more than I thought I would, and it felt better than I’d imagined it could. But I needed time to hold the feeling close while the artifacts fell away.&lt;/p&gt;
&lt;p&gt;If 2021 was about letting go, 2022 is about walking away.&lt;/p&gt;
&lt;p&gt;Let’s go!&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Descale</title><link>https://chan.dev/descale</link><guid isPermaLink="true">https://chan.dev/descale</guid><description>Learn the value of mental &apos;descaling&apos; to tackle life&apos;s blockages, drawing inspiration from the upkeep of an espresso machine and the need for renewal.</description><pubDate>Sat, 04 Sep 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Every couple months, I have to “descale” the espresso machine.&lt;/p&gt;
&lt;p&gt;Apparently boiling water creates limescale. And, after a period of use, limescale deposits must be chemically removed. If not, they’ll build up until all waterways are blocked.&lt;/p&gt;
&lt;p&gt;Today, as I spent on hour descaling the machine, I realized that I’ve let my life get blocked. I stopped producing &lt;a href=&quot;https://chantastic.fm&quot; target=&quot;_blank&quot;&gt;React Podcast&lt;/a&gt;, I’ve stopped writing here, and I have a small course — nearly done — that I just can’t seem to share.&lt;/p&gt;
&lt;p&gt;Overnight, the limescale in my life — work politics, illness, injuries, relational hurts, Trump, COVID, inequality and injustice, money — built up to a point where I can’t push anything thru me.&lt;/p&gt;
&lt;p&gt;And it didn’t happen overnight. Like the espresso machine, I let the buildup go unchecked. I broke me by using me without supporting me. I pushed thru — pressed on — knowing I was headed toward a block.&lt;/p&gt;
&lt;p&gt;As time has gone on, and I’ve shared less and less, I feel the pressure to make an account for my time. Maybe a big announcement, a change, anything to communicate “Look at me, I was being productively unproductive.” But the truth is, I just stopped working. I played video games. I stared at my ceiling. I let texts go unread. I worried constantly about dying and wondered why we’re alive at all. And I honestly don’t know if it was time well spent.&lt;/p&gt;
&lt;p&gt;I’ve been here before, and I’m afraid to start doing the work again. Because living well is hard work. But I want to get back in it. So, it’s time to descale the machine of me.&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Concurrent Mode is Dead. Long live Concurrent…</title><link>https://chan.dev/concurrent-mode-is-dead</link><guid isPermaLink="true">https://chan.dev/concurrent-mode-is-dead</guid><description>React 18 killed Concurrent Mode and replaced it with concurrent features you opt into per-component. Here&apos;s the terminology rebase and what actually shipped.</description><pubDate>Wed, 09 Jun 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Three years ago &lt;a href=&quot;https://mobile.twitter.com/dan_abramov/&quot; target=&quot;_blank&quot;&gt;Dan Abramov&lt;/a&gt; introduced &lt;a href=&quot;https://www.youtube.com/watch?v=nLF0n9SACd4&quot; target=&quot;_blank&quot;&gt;Suspense and Async Rendering with React&lt;/a&gt; at &lt;a href=&quot;https://2018.jsconf.is/speakers/dan-abramov/&quot; target=&quot;_blank&quot;&gt;JSConf Iceland 2018&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In the three years since, terminology took some twists and turns.&lt;/p&gt;
&lt;p&gt;“Suspense” was limited to &lt;code&gt;React.lazy&lt;/code&gt; in versions 16 and 17.&lt;/p&gt;
&lt;p&gt;“Async React” became “Concurrent Mode” — a top-down rendering mode that could be enabled for &lt;code&gt;Strict Mode&lt;/code&gt;-compatible applications.&lt;/p&gt;
&lt;p&gt;React 18 has new-new language. And I’d like to start my tour of React 18 changes by rebasing on new terminology used in the &lt;a href=&quot;http://github.com/reactwg&quot; target=&quot;_blank&quot;&gt;ReactWG&lt;/a&gt; (React Working Group).&lt;/p&gt;
&lt;h2&gt;Concurrent Mode =&amp;gt; Concurrent everything&lt;a href=&quot;#concurrent-mode--concurrent-everything&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;“Concurrent Mode” is no more. Bye 👋. We barely knew ya!&lt;/p&gt;
&lt;p&gt;Instead of a concurrent mode, concurrency is possible in all React 18 apps.&lt;/p&gt;
&lt;p&gt;React 18 adds a set of new features, sometimes called “concurrent features” or “concurrent APIs”. These features rely on a new mechanism called “concurrent rendering” that weren’t possible before it.&lt;/p&gt;
&lt;p&gt;It’s a subtle but important change.
Concurrency is no longer something that you opt into at the root of your application. It’s an enrichment that happens as you use “Concurrent features and APIs” like &lt;code&gt;startTransition&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Concurrent rendering is not a mode.
Concurrent rendering is React.&lt;/p&gt;
&lt;h2&gt;New-new, React 18 terminology&lt;a href=&quot;#new-new-react-18-terminology&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here’s the state of React 18 terminology shifts I’ve seen in &lt;a href=&quot;https://github.com/reactwg/react-18/discussions&quot; target=&quot;_blank&quot;&gt;ReactWG discussions&lt;/a&gt;:&lt;/p&gt;
&lt;div&gt;

&lt;p&gt;Fired:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;❌ Concurrent Mode&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hired:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;✅ Concurrent React&lt;/li&gt;
&lt;li&gt;✅ Concurrent rendering&lt;/li&gt;
&lt;li&gt;✅ Concurrent features and APIs&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2&gt;Takeaway&lt;a href=&quot;#takeaway&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In React 18, Concurrent React is React. Concurrent features and APIs — like &lt;code&gt;startTransition&lt;/code&gt; — expose controls for opting into concurrent rendering.&lt;/p&gt;
&lt;h2&gt;Acknowledgements&lt;a href=&quot;#acknowledgements&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This post was reviewed and improved by the fantastic folks in the reactwg. Lessons learned while writing this post are available via the &lt;a href=&quot;https://github.com/reactwg/react-18/discussions/45#discussioncomment-848441&quot; target=&quot;_blank&quot;&gt;reactwg GitHub discussions&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Learn with me!&lt;a href=&quot;#learn-with-me&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I’m writing more posts like this on React 18.
Sign-up below to get React 18 articles as I write them.&lt;/p&gt;
</content:encoded><category>react</category><category>web</category></item><item><title>CSS-ing with Attribute Selectors</title><link>https://chan.dev/css-ing-with-attribute-selectors</link><guid isPermaLink="true">https://chan.dev/css-ing-with-attribute-selectors</guid><description>CSS attribute selector syntax and practical use cases: styling by value, substring matching, state-based styles, and custom data attributes.</description><pubDate>Thu, 22 Apr 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;mark&gt;&lt;em&gt;This post will be given as a &lt;a href=&quot;https://events.lunch.dev/lightning/&quot; target=&quot;_blank&quot;&gt;lightning talk with lunch.dev&lt;/a&gt;. It’s posted here so folks can read along.&lt;/em&gt;&lt;/mark&gt;&lt;/p&gt;
&lt;p&gt;Attribute selectors are my favorite selectors.&lt;/p&gt;
&lt;p&gt;Their specificity is as low as a class. But unlike class — which only supports space-delimited strings with escaped special characters — attribute selectors give you complete control of your selection.&lt;/p&gt;
&lt;p&gt;They’re so powerful, you can even use them to surgically dissect a class selector.&lt;/p&gt;
&lt;p&gt;In five minutes, I’ll show you five ways to make practical use of attribute selectors.&lt;/p&gt;
&lt;h2&gt;First, the syntax&lt;a href=&quot;#first-the-syntax&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Attribute selectors can target any attribute. &lt;code&gt;href&lt;/code&gt; from an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag, &lt;code&gt;src&lt;/code&gt; from an &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag, &lt;code&gt;aria-&lt;/code&gt; and &lt;code&gt;data-&lt;/code&gt; attributes, you name it!&lt;/p&gt;
&lt;p&gt;As syntax goes, attribute selectors wrap the name of the target attribute in brackets.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[href] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;color: red;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This line turns anything with an &lt;code&gt;href&lt;/code&gt; attribute red.&lt;/p&gt;
&lt;p&gt;We have to be careful because other elements like &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; also have an &lt;code&gt;href&lt;/code&gt; attribute. Combining attributes selectors with other selectors is a common for scoping intent.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;color: red;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;While &lt;code&gt;&amp;lt;links href&amp;gt;&lt;/code&gt; is &lt;code&gt;display:none&lt;/code&gt; by default, it’s a good practice to be explicit with attribute selectors.&lt;/p&gt;
&lt;h2&gt;Style attributes by value&lt;a href=&quot;#style-attributes-by-value&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;So how do we make attribute selectors useful?&lt;/p&gt;
&lt;p&gt;We can use them to identify placeholder links by scoping our &lt;code&gt;href&lt;/code&gt; selector to anchors with empty or ”#” href attributes.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&apos;#&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;color: red;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;=&lt;/code&gt; selects an exact match for the attribute value. As shown above, we need to add a case for every exact match we want.&lt;/p&gt;
&lt;p&gt;But there are other matching techniques.&lt;/p&gt;
&lt;p&gt;We can match the beginning of a value as well. Let’s add another case for insecure &lt;code&gt;http&lt;/code&gt; links:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&apos;&apos;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&apos;#&apos;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href^=&lt;/span&gt;&lt;span&gt;&apos;http:&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;color: red;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;^=&lt;/code&gt; matches any value that start with the provided string.&lt;/p&gt;
&lt;p&gt;Conversely, there’s a &lt;code&gt;$=&lt;/code&gt; matcher but I don’t find it terribly useful. There can be any manner of appendages at the end of a URL.&lt;/p&gt;
&lt;p&gt;Fortunately, there is a &lt;code&gt;*=&lt;/code&gt; matcher to match a character set anywhere in the attribute value.&lt;/p&gt;
&lt;p&gt;Let’s use it to turn urls with a fragment identifier green:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href^=&lt;/span&gt;&lt;span&gt;&quot;http:&quot;&lt;/span&gt;&lt;span&gt;] { color: red }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;a[href*=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;] { color: green }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Warning! This selector is inclusive of URLS that &lt;em&gt;only&lt;/em&gt; have a pound value, too! Meaning are placeholder links have also turned green.&lt;/p&gt;
&lt;p&gt;Not to fear, we can solve this by ensuring that the most specific rule is declared last:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;a[href*=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;] { color: green }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href^=&lt;/span&gt;&lt;span&gt;&quot;http:&quot;&lt;/span&gt;&lt;span&gt;] { color: red }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;a[href*=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;] { color: green }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Style by state&lt;a href=&quot;#style-by-state&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Styling by attribute means we can style by state as well. Consider the &lt;code&gt;disabled&lt;/code&gt; attribute on an input. We can use that to style &lt;code&gt;input[type=&quot;text&quot;][disabled]&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;We can take this approach even further, using &lt;code&gt;aria&lt;/code&gt; attributes. One aria label used for navs is &lt;code&gt;aria-current&lt;/code&gt;. Let’s use it to style mark and style the current page:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[aria-current=&lt;/span&gt;&lt;span&gt;&apos;true&apos;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[aria-current=&lt;/span&gt;&lt;span&gt;&apos;page&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;color: fuchsia;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Build your own language with data attributes&lt;a href=&quot;#build-your-own-language-with-data-attributes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Up to this point, we’ve only used standard element attributes. We can take that further with &lt;code&gt;data&lt;/code&gt; attributes.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;data&lt;/code&gt; is a an attribute prefix that may be used to safely create and utilize new attributes in your code.&lt;/p&gt;
&lt;p&gt;Let’s wrap all of our debugging selectors into a new &lt;code&gt;data&lt;/code&gt; attribute selector: &lt;code&gt;data-debug-links&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-debug-links] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href*=&quot;#&quot;] { color: green }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href=&lt;/span&gt;&lt;span&gt;&quot;#&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;a[href^=&lt;/span&gt;&lt;span&gt;&quot;http:&quot;&lt;/span&gt;&lt;span&gt;] { color: red }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now we can enable or disable this link debugging style by adding the &lt;code&gt;data-dubug-links&lt;/code&gt; selector to a descendent.&lt;/p&gt;
&lt;h2&gt;There’s so much more!&lt;a href=&quot;#theres-so-much-more&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Thanks for watching this quick intro to to data attribute selectors. There is so much more I wish I could share, but I can’t.&lt;/p&gt;
&lt;p&gt;If you’d like to learn how this can be used to build application stylesheets, checkout my post at &lt;a href=&quot;https://chan.dev/avo-a-bem-dialect-using-data-attributes/&quot; target=&quot;_blank&quot;&gt;chan.dev/avo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And if you’d like to see the CSS framework I’m building with it, checkout &lt;a href=&quot;https://chan.dev/colorway&quot; target=&quot;_blank&quot;&gt;chan.dev/colorway&lt;/a&gt;. And if you’d like to help me build it. Checkout my YouTube streaming channel at &lt;a href=&quot;https://chan.dev/youtube&quot; target=&quot;_blank&quot;&gt;chan.dev/youtube&lt;/a&gt;&lt;/p&gt;</content:encoded><category>css</category><category>web</category></item><item><title>A bargain mic for yellers</title><link>https://chan.dev/a-bargain-mic-for-yellers</link><guid isPermaLink="true">https://chan.dev/a-bargain-mic-for-yellers</guid><description>The Elgato Wave:3 has the only reliable USB mic limiter I&apos;ve tested. At $150, it&apos;s a bargain for yellers who clip their audio on stream.</description><pubDate>Sun, 21 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Kevin and Bobby started a new podcast: &lt;a href=&quot;https://www.youtube.com/channel/UCYSOVLrjLDr7m5LIJs876mw&quot; target=&quot;_blank&quot;&gt;Essentially Useless&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kevin hit me up for a mic recommendation — budget: $150/person.&lt;/p&gt;
&lt;h2&gt;Recommendation&lt;a href=&quot;#recommendation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/3qHr3RU&quot; target=&quot;_blank&quot;&gt;Elgato Wave:3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Bobby is a yeller. Yelling is a nightmare to mix. It’s also a big problem for streams — where platform compression can make digital peaks unlistenable.&lt;/p&gt;
&lt;p&gt;Elgato Wave has the only reliable (software limiter) I’ve tested. Limiting is something I’ve spent hundreds to solve with hardware. At $150, the Elgato Wave is a bargain mic for yellers looking to improve their stream.&lt;/p&gt;
&lt;h2&gt;Why it I recommend it&lt;a href=&quot;#why-it-i-recommend-it&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This mic is the pinnacle of USB-mic technology, sporting a classy design, in an affordable package.&lt;/p&gt;
&lt;h3&gt;Clipguard&lt;a href=&quot;#clipguard&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://help.elgato.com/hc/en-us/articles/360044558992-Wave-Link-Clipguard&quot; target=&quot;_blank&quot;&gt;Elgato Clipguard anti-distortion technology&lt;/a&gt; is the killer feature of Wave. I’ve never recommended a USB-only mic until the Elgato Wave announcement. That’s because USB-mics aren’t extensible.&lt;/p&gt;
&lt;p&gt;When I started podcasting and streaming, the first first piece of outboard gear I needed was a limiter/compressor. But that’s all I’ve needed.&lt;/p&gt;
&lt;p&gt;To keep a strong and peak-free audio signal, I tried the &lt;a href=&quot;https://amzn.to/3dM0kQH&quot; target=&quot;_blank&quot;&gt;DBX 286s ($229)&lt;/a&gt; — which I &lt;em&gt;do not&lt;/em&gt; recommend. I eventually landed on the &lt;a href=&quot;https://amzn.to/3pEGEQP&quot; target=&quot;_blank&quot;&gt;SoundDevices MixPre-3 ($899)&lt;/a&gt; — which I love.&lt;/p&gt;
&lt;p&gt;But, $229 is the entry point for solving this issue with hardware. And that’s outside of the $150 budget.&lt;/p&gt;
&lt;p&gt;Elgato to the rescue with the only software-powered clipping solution I’ve seen that works. I’m not sure how they do it but, in my tests, Clipguard is a reliables limiter. Making it well worth the $150 price-tag.&lt;/p&gt;
&lt;h3&gt;Lewitt inside&lt;a href=&quot;#lewitt-inside&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Wave was designed my Lewitt. If you don’t know much about audio, Lewitt makes incredible microphones. As an A/V nerd, this is what captured my attention.&lt;/p&gt;
&lt;p&gt;I trust them just as much as industry titans Shure, Rode, and Audio-Technica.&lt;/p&gt;
&lt;p&gt;The mic has an incredibly low self-noise, sounds great, and does an admirable job (for a condenser) at rejecting background noise.&lt;/p&gt;
&lt;h3&gt;Attractive&lt;a href=&quot;#attractive&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This thing looks nice and is small enough to disappear from the frame.&lt;/p&gt;
&lt;p&gt;I lke the old &lt;a href=&quot;https://www.google.com/search?q=rca+microphone&amp;amp;tbm=isch&amp;amp;chips=q:rca+microphone,g_1:antique:ZzHwV--NZ0g%3D&amp;amp;hl=en&amp;amp;sa=X&amp;amp;ved=2ahUKEwjy6_mp7fvuAhUYhp4KHZXAAcIQ4lYoAXoECAEQGw&amp;amp;biw=1386&amp;amp;bih=922&quot; target=&quot;_blank&quot;&gt;RCA-style&lt;/a&gt; look in a contemporary matte black.&lt;/p&gt;
&lt;h2&gt;The competition&lt;a href=&quot;#the-competition&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;There is no competition in this space.&lt;/p&gt;
&lt;h2&gt;Should I buy a Wave:1 or Wave:3?&lt;a href=&quot;#should-i-buy-a-wave1-or-wave3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The street price of the &lt;a href=&quot;https://amzn.to/3k9DC5Q&quot; target=&quot;_blank&quot;&gt;Wave:1&lt;/a&gt; is $130. The &lt;a href=&quot;https://amzn.to/3qHr3RU&quot; target=&quot;_blank&quot;&gt;Wave:3&lt;/a&gt; is regularly discounted to $145.&lt;/p&gt;
&lt;p&gt;At a $15 difference, absolutely get the Wave:3. But if you can only find the Wave:3 at retail ($159), and that $30 is a deal-breaker, &lt;a href=&quot;https://help.elgato.com/hc/en-us/articles/360044720472-Elgato-Wave-1-How-Does-It-Compare-To-Wave-3-&quot; target=&quot;_blank&quot;&gt;here’s what you need to know&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There are 3 major differences:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wave:1 lacks a capacitive mute button&lt;/li&gt;
&lt;li&gt;Wave:1’s hardware dial only controls headphone volume (not gain or mic/pc mix)&lt;/li&gt;
&lt;li&gt;Wave:1 has a max sample rate of 48kHz&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Other than that, it’s the same mic and all features can be controlled via &lt;a href=&quot;https://help.elgato.com/hc/en-us/articles/360051604911-Wave-Link-Using-Elgato-Wave-microphone-and-Wave-Link-with-NVIDA-Broadcast&quot; target=&quot;_blank&quot;&gt;Elgato WaveLink software&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Compromises&lt;a href=&quot;#compromises&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The compromise with this mic is that build quality.&lt;/p&gt;
&lt;p&gt;I think that’s a great compromise because folks can’t feel your mic thru the stream and you won’t be touching it a whole lot.&lt;/p&gt;
&lt;p&gt;Compare that to the &lt;a href=&quot;https://chan.dev/notes/shure-mv7/&quot; target=&quot;_blank&quot;&gt;Shure MV7&lt;/a&gt; which retains a high build quality but at the expense of shit sound.&lt;/p&gt;
&lt;h2&gt;Accessories&lt;a href=&quot;#accessories&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Elgato Wave Pop Filter&lt;a href=&quot;#elgato-wave-pop-filter&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/2ZzOYa3&quot; target=&quot;_blank&quot;&gt;Elgato Wave Pop Filter ($29)&lt;/a&gt; is an attractive design pop filter if you want to get right up on your mic. But I had no trouble with the build-in pop filter — with the mic placed about 6” from my face at a 45 degree angle.&lt;/p&gt;
&lt;h3&gt;Elgato Wave Shock Mount&lt;a href=&quot;#elgato-wave-shock-mount&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/2OYLGuW&quot; target=&quot;_blank&quot;&gt;Elgato Wave Shock Mount ($39)&lt;/a&gt; is in attractive minimal shock mount. I like it. But the included crap-plastic mount isn’t terrible either. Try it without and see how it does for you.&lt;/p&gt;
&lt;h2&gt;Bottom Line&lt;a href=&quot;#bottom-line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://amzn.to/3qHr3RU&quot; target=&quot;_blank&quot;&gt;Elgato Wave:3&lt;/a&gt; is the best microphone for streamers and podcasters on a budget. Clipguard is worth every penny, even if the mic didn’t sound great. But it does. At ~$150, it can’t be beat.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;As an Amazon affiliate, I may make a small portion of purchases made from the links on this page.&lt;/small&gt;&lt;/p&gt;</content:encoded><category>audio</category><category>gear</category></item><item><title>single-threaded notes, E1</title><link>https://chan.dev/single-threaded-episode-1-notes</link><guid isPermaLink="true">https://chan.dev/single-threaded-episode-1-notes</guid><description>Notes from Jenn Creighton&apos;s Single-Threaded podcast, Episode 1 with Erin Fox. Your first insight into a company&apos;s culture is their interview process.</description><pubDate>Wed, 17 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Today &lt;a href=&quot;https://twitter.com/gurlcode/&quot; target=&quot;_blank&quot;&gt;Jenn Creighton&lt;/a&gt; launched &lt;a href=&quot;https://anchor.fm/single-threaded&quot; target=&quot;_blank&quot;&gt;single-threaded podcast&lt;/a&gt;. I’m thrilled 🥳&lt;/p&gt;
&lt;p&gt;Jenn joined me &lt;a href=&quot;https://chantastic.fm/episodes/118&quot; target=&quot;_blank&quot;&gt;on React Podcast in November&lt;/a&gt; and her episode is fire. Listening to it with the &lt;a href=&quot;https://events.lunch.dev/discord&quot; target=&quot;_blank&quot;&gt;Discord&lt;/a&gt; crew unlocked new ways for us to talk about our feelings and experiences.&lt;/p&gt;
&lt;p&gt;So, we’re getting the crew together to learn even more from Jenn, with &lt;a href=&quot;https://discord.com/channels/105756917887950848/809132246169944076/811641220613931020&quot; target=&quot;_blank&quot;&gt;single-threaded episode parties&lt;/a&gt;, Wednesdays 10am PT.&lt;/p&gt;
&lt;p&gt;I’m amazed at how this first episode turned out. Jenn is a natural and &lt;a href=&quot;https://anchor.fm/single-threaded/episodes/Erin-Fox-on-Interviewing-eqg5nn&quot; target=&quot;_blank&quot;&gt;Erin Fox&lt;/a&gt; is an incredible first guest.&lt;/p&gt;
&lt;p&gt;Jenn and Erin brought the funny and I LOL’d hard. But they were remarkably candid about their career experiences.&lt;/p&gt;
&lt;p&gt;All-in-all a killer first episode.&lt;/p&gt;

&lt;h2&gt;Quote and notes&lt;a href=&quot;#quote-and-notes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;These are not direct quotes. They are summaries, as I heard them. Listen to the full episode for accurate quotes and requisite context. The provided timestamps should get you close.&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Your first insight into a company’s culture is their interview process.
— Erin @0:07&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;You’re testing for the wrong things, if your interview process tests only for high pressure situations.
— Jenn @0:08&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;A 5 year plan is nonsense. Ask if your [personal] aspirations match what the company is looking for — and vice-versa?
— Jenn @0:12&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Ask for a take-home “exception” for coding challenges. It’s almost always on option.
— Jenn @0:12&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Take-home challenges usually come with a time limit. Disregard it. They expect you to finish.
“Yeah. I Spent about 4 hours.” In reality it was 12 and I didn’t sleep.
— Erin @0:17&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Don’t interview with your favorite company first. Save them for later in the process to get your interview skill back up.
Erin @0:19&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Interview on Thursday or Friday. People feel better those days. Everyone is sad on Monday. No Monday interviews.
Erin @0:20&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Sometimes, when you get rejected it’s because the company can’t properly support you and someone is looking out for you.
Jenn @0:24&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;The more I interviewed the more I learned to not put all my eggs in one basket. It took awhile, to learn when to finally get excited, but in the end it’s worth it to wait.
Erin in Discord Chat, answering how to not get attached any one position.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;When you’re waiting, or handling a rejection, do a thing you’re good at. For me, that’s be baking.
Erin @0:28&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;publishDate lots of companies
@0:31&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Erin’s list of questions to ask companies:&lt;/p&gt;
&lt;p&gt;{% tweet ‘&lt;a href=&quot;https://twitter.com/erinfoox/status/1276647114009763840&quot; target=&quot;_blank&quot;&gt;https://twitter.com/erinfoox/status/1276647114009763840&lt;/a&gt;’ %}&lt;/p&gt;
&lt;p&gt;Erin’s post on &lt;a href=&quot;https://medium.com/@erinfoox/you-have-a-typo-in-one-of-your-github-repos-interview-red-flags-b4853671b156&quot; target=&quot;_blank&quot;&gt;interview red flags&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When you get positive feedback, keep it in a file for your future resume.
Erin @0:43&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Poppy (the things you like today) can change.
Erin @0:43&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Follow-up questions&lt;a href=&quot;#follow-up-questions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In our post-episode chat, I asked Erin how her experience as a baker has informed her coding career.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(personal summary, note quote)&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Recipes are usually paired with a story. Stories are just as important as recipes.&lt;/p&gt;
&lt;p&gt;Code stories don’t get passed down as much as they should. Solutions and patterns have a history that illustrates their value. It’s important to share solutions with the stories that inspired them.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Keep in touch&lt;a href=&quot;#keep-in-touch&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;br /&gt;
</content:encoded><category>career</category></item><item><title>Comprehending YAML</title><link>https://chan.dev/comprehending-yaml</link><guid isPermaLink="true">https://chan.dev/comprehending-yaml</guid><description>YAML for people who already know JSON. Data types, nested structures, anchors, and the gotchas that trip everyone up. With side-by-side comparisons.</description><pubDate>Thu, 11 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;YAML is a little clever for my taste but I’m starting to get it.&lt;/p&gt;
&lt;p&gt;Before &lt;a href=&quot;../a-non-comprehensive-guide-to-yaml-for-folks-who-like-json-just-fine&quot;&gt;yesterday’s post&lt;/a&gt;, I had no idea how it related to JSON. In that post I personalized a few examples from the YAML docs and manually converted them.&lt;/p&gt;
&lt;p&gt;And after sleeping on my exercise, I have a better picture of what’s going on.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#yaml-infers-complex-types&quot;&gt;YAML infers complex types&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#understanding-inference&quot;&gt;Understanding inference&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#yaml-infers-simple-types&quot;&gt;YAML infers simple types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#takeaways&quot;&gt;Takeaways&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#yaml-shorthand-can-be-confusing&quot;&gt;YAML shorthand can be confusing&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#takeaways-1&quot;&gt;Takeaways&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#yaml-patterns&quot;&gt;YAML patterns&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-arrays--sequence-of-sequences&quot;&gt;Array of arrays : sequence of sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-objects--sequence-of-mappings&quot;&gt;Array of objects : sequence of mappings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#object-of-arrays--mapping-of-sequences&quot;&gt;Object of arrays : mapping of sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#object-of-objects--mapping-of-mappings&quot;&gt;Object of objects : mapping of mappings&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#all-mixed-up&quot;&gt;All mixed up&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#conclusion&quot;&gt;Conclusion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#keep-in-touch&quot;&gt;Keep in touch&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;YAML infers complex types&lt;a href=&quot;#yaml-infers-complex-types&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As much as possible, YAML infers complex data structures by the data it composes.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This is a sequence and the containing Array structure is implied.
Here’s how it looks in JSON:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Love&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Compare this to a YAML mapping, where the root structure is implied to be an object.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Again, here’s what that looks like in JSON.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;: 2020,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;: 2020,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Lover&quot;&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;So what happens if we try to mix sequences and mappings at the root level?&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;-Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;It breaks:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;YAMLException: &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;of&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;the&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;stream&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;or&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;document&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;separator&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;is&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;expected&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;at&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;line&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;2,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;column&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;9:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Folklore:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This tracks because something can’t be both an object AND an array.&lt;/p&gt;
&lt;h3&gt;Understanding inference&lt;a href=&quot;#understanding-inference&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Indentifying when you’re describing an Array (sequence) and when you’re describing an Object (mapping) is critically important. And it’s not always clear.&lt;/p&gt;
&lt;p&gt;Can you guess what the JSON equivalent for this YAML is?&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The dashes &lt;code&gt;-&lt;/code&gt; indicate that the root structure is an array (sequence). But each array item comprises a descrete object (mapping) with a key-value pair. This is inferred from the colon &lt;code&gt;:&lt;/code&gt; between values in each array item.&lt;/p&gt;
&lt;p&gt;So the JSON output for the YAML above is this:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Lover&quot;&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;An array of objects (or “sequence of mappings”).&lt;/p&gt;
&lt;p&gt;Now that I understand it, I see the dash (&lt;code&gt;-&lt;/code&gt;) like list-items in Markdown.&lt;/p&gt;
&lt;h2&gt;YAML infers simple types&lt;a href=&quot;#yaml-infers-simple-types&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Let’s take an array (sequence) of objects (mappings).&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The keys are strings and the values are numbers.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Evermore&lt;/code&gt; becomes &lt;code&gt;&quot;Evermore&quot;&lt;/code&gt;.&lt;br /&gt;
&lt;code&gt;2020&lt;/code&gt; stays &lt;code&gt;2020&lt;/code&gt;.&lt;br /&gt;
&lt;code&gt;Taylor Swift&lt;/code&gt; becomes &lt;code&gt;&quot;Taylor Swift&quot;&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Takeaways&lt;a href=&quot;#takeaways&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;After looking at so much JavaScript and JSON, this is a little unsettling but — in simple examples like this — there’s a simplicity to the representation.&lt;/p&gt;
&lt;h2&gt;YAML shorthand can be confusing&lt;a href=&quot;#yaml-shorthand-can-be-confusing&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Below we have an array (sequence) of objects (mappings).&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;JSON looks like this.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;The National&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;What does it look like to add more properties to the these objects?&lt;/p&gt;
&lt;p&gt;YAML allows us to use JSON object syntax.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- {&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- {&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;But it’s not super YAML-y. So there’s an alternative that uses newlines.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This is challenging for me to interpret. Because the dash (&lt;code&gt;-&lt;/code&gt;) is separating discrete objects (mappings) in the array (sequence). So it &lt;em&gt;feels&lt;/em&gt; like the dash (&lt;code&gt;-&lt;/code&gt;) is a directive for the object (mapping). But it’s not, it’s communicating that the containing structure is an array.&lt;/p&gt;
&lt;p&gt;Pressing into the confusion, consider this array (sequence) containing a string, number, object, and array.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- 1989&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;nationality&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;American&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- - &lt;/span&gt;&lt;span&gt;Big Machine&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This is that same file in JSON.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;1989,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;: 9,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;nationality&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;American&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;Big Machine&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Republic&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Takeaways&lt;a href=&quot;#takeaways-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The presence of dash (&lt;code&gt;-&lt;/code&gt;) and colon (&lt;code&gt;:&lt;/code&gt;) describe the &lt;em&gt;surrounding&lt;/em&gt; structure.&lt;/p&gt;
&lt;p&gt;In the case of arrays (sequences) of objects (mappings), with multiple key-value pairs, this terseness can be unclear. At least until you’ve trained ourselves to see the invisble structures that (&lt;code&gt;-&lt;/code&gt;) and (&lt;code&gt;:&lt;/code&gt;) represent.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;For me, learning to interpret the above line as &lt;code&gt;an object in an array&lt;/code&gt; has made the biggest difference in my ability to quickly parse YAML.&lt;/p&gt;
&lt;h2&gt;YAML patterns&lt;a href=&quot;#yaml-patterns&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Identifying patterns is helpful.&lt;/p&gt;
&lt;p&gt;Here are a few complex handoffs that I had trouble with.&lt;/p&gt;
&lt;h3&gt;Array of arrays : sequence of sequences&lt;a href=&quot;#array-of-arrays--sequence-of-sequences&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- - &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- - &lt;/span&gt;&lt;span&gt;I Am Easy to Find&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Sleep Well Beast&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Trouble Will Find Me&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This YAML file is an array (sequence) containing two arrays (sequences) each with three strings (scalars).&lt;/p&gt;
&lt;h3&gt;Array of objects : sequence of mappings&lt;a href=&quot;#array-of-objects--sequence-of-mappings&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This YAML file is an array (sequence) referencing two objects (mappings) each with two key-value pairs.&lt;/p&gt;
&lt;h3&gt;Object of arrays : mapping of sequences&lt;a href=&quot;#object-of-arrays--mapping-of-sequences&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;I Am Easy to Find&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Sleep Well Beast&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Trouble Will Find Me&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This YAML file is an object (mapping) with two key-value pairs, each key referencing an array (sequence) of strings (scalars).&lt;/p&gt;
&lt;h3&gt;Object of objects : mapping of mappings&lt;a href=&quot;#object-of-objects--mapping-of-mappings&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;4AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This YAML file is an object (mapping) with two key-value pairs, each key referencing another object with two key-value pairs with mixed strings and numbers (scalars) as values.&lt;/p&gt;
&lt;h2&gt;All mixed up&lt;a href=&quot;#all-mixed-up&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Parse isolated patterns is a good start but the big game is reading entire YAML files.&lt;/p&gt;
&lt;p&gt;Look at this GitHub Actions workflow.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Netlify Rebuild&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;on:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;schedule&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;cron&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;0 21 * * MON-FRI&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;jobs&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Netlify Rebuild&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;runs-on&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;ubuntu-latest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;steps&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Curl request&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;curl -X POST -d {} https://api.netlify.com/build_hooks/601321b7879709a8b8874175&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Here’s what we can evaluate.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The root structure is an object with three properties&lt;/li&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt; references a string&lt;/li&gt;
&lt;li&gt;&lt;code&gt;on&lt;/code&gt; references an object with one property
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;schedule&lt;/code&gt; references an array with one object containing one property
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;cron&lt;/code&gt; references a string&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;jobs&lt;/code&gt; referencs an object with one property
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;build&lt;/code&gt; references an object with three properties
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt; references a string&lt;/li&gt;
&lt;li&gt;&lt;code&gt;runs-on&lt;/code&gt; references a string&lt;/li&gt;
&lt;li&gt;&lt;code&gt;steps&lt;/code&gt; references array with an object containing two properties
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;name&lt;/code&gt; references a string&lt;/li&gt;
&lt;li&gt;&lt;code&gt;run&lt;/code&gt; references a string&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Conclusion&lt;a href=&quot;#conclusion&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I think I understand YAML enough to move on with my life. I hope you feel the same way.&lt;/p&gt;
&lt;p&gt;Learning how to identify the implied structures has made all the difference.&lt;/p&gt;
&lt;h2&gt;Keep in touch&lt;a href=&quot;#keep-in-touch&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;br /&gt;
</content:encoded><category>yaml</category></item><item><title>A Non-Comprehensive Guide to YAML for Folks Who Like JSON Just Fine</title><link>https://chan.dev/a-non-comprehensive-guide-to-yaml-for-folks-who-like-json-just-fine</link><guid isPermaLink="true">https://chan.dev/a-non-comprehensive-guide-to-yaml-for-folks-who-like-json-just-fine</guid><description>Master YAML with this beginner-friendly guide for JSON lovers. Learn key differences, structures, and examples for GitHub Actions, and serverless configurations</description><pubDate>Wed, 10 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;YAML is a human friendly data serialization standard for all programming languages.
— &lt;a href=&quot;https://yaml.org&quot; target=&quot;_blank&quot;&gt;https://yaml.org&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I don’t know precisely which humans YAML is friendly to but I’m not one of them.&lt;/p&gt;
&lt;p&gt;And it looks like the people who run in my circles are also excluded.&lt;/p&gt;
&lt;p&gt;{% tweet ‘&lt;a href=&quot;https://twitter.com/chantastic/status/1359601176434544640?s=20&quot; target=&quot;_blank&quot;&gt;https://twitter.com/chantastic/status/1359601176434544640?s=20&lt;/a&gt;’ %}&lt;/p&gt;
&lt;h2&gt;Mapping to JSON&lt;a href=&quot;#mapping-to-json&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Between Eleventy, GitHub Actions, and a recent foray into serverless, I’m using a more YAML. And I don’t understand it.&lt;/p&gt;
&lt;p&gt;This is mapping for my JSON-acquainted brain.&lt;/p&gt;
&lt;h2&gt;Outline&lt;a href=&quot;#outline&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#comments&quot;&gt;Comments&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-strings&quot;&gt;Array of strings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-objects-single-value&quot;&gt;Array of objects — single value&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-objects-many-values&quot;&gt;Array of objects — many values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#object-of-keyed-arrays-of-strings&quot;&gt;Object of keyed arrays of strings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#object-of-keyed-objects-with-mixed-values&quot;&gt;Object of keyed objects with mixed values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#array-of-arrays-with-mixed-values&quot;&gt;Array of arrays with mixed values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#nodes&quot;&gt;Nodes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sample-github-action&quot;&gt;Sample GitHub Action&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#takeaways&quot;&gt;Takeaways&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#resources-and-further-reading&quot;&gt;Resources and further reading&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#keep-in-touch&quot;&gt;Keep in touch&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Comments&lt;a href=&quot;#comments&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# you can put these p much anywhere&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;JSON doesn’t support comments.&lt;/p&gt;
&lt;h2&gt;Array of strings&lt;a href=&quot;#array-of-strings&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Sequence of Scalars&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Love&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Array of objects — single value&lt;a href=&quot;#array-of-objects-single-value&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Mapping Scalars to Scalars&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;: 2020&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Lover&quot;&lt;/span&gt;&lt;span&gt;: 2019&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Array of objects — many values&lt;a href=&quot;#array-of-objects-many-values&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Sequence of Mappings&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;4AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;: 9,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;label&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Republic&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;The National&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;: 8,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;label&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;4AD&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This syntax confused the shit out of me.&lt;br /&gt;
This code is auto-formatted by prettier putting the dash and the first property on the same line.&lt;/p&gt;
&lt;p&gt;YAML docs show the dash and first property on different lines which is much more legible.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;4AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Object of keyed arrays of strings&lt;a href=&quot;#object-of-keyed-arrays-of-strings&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Mapping Scalars to Sequences&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Evermore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;I Am Easy to Find&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Sleep Well Beast&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Trouble Will Find Me&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;span&gt;&quot;Evermore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;Lover&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;The National&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;I Am Easy to Find&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Sleep Well Beast&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Trouble Will Find Me&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Object of keyed objects with mixed values&lt;a href=&quot;#object-of-keyed-objects-with-mixed-values&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Mapping of Mappings&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 9&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;: 8&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;4AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;: 9,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;label&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Republic&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;The National&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;: 8,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;label&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;4AD&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Array of arrays with mixed values&lt;a href=&quot;#array-of-arrays-with-mixed-values&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Sequence of Sequences&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- [&lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;album_count&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- [&lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;span&gt;, 9, &lt;/span&gt;&lt;span&gt;Republic&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- [&lt;/span&gt;&lt;span&gt;The National&lt;/span&gt;&lt;span&gt;, 8, &lt;/span&gt;&lt;span&gt;4AD&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;album_count&quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&quot;label&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;, 9, &lt;/span&gt;&lt;span&gt;&quot;Republic&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;&quot;The National&quot;&lt;/span&gt;&lt;span&gt;, 8, &lt;/span&gt;&lt;span&gt;&quot;4AD&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Nodes&lt;a href=&quot;#nodes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Folklore&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;# Following node labeled TS and AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &amp;amp;TS &lt;/span&gt;&lt;span&gt;Taylor Swift&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &amp;amp;AD &lt;/span&gt;&lt;span&gt;Aaron Dressner&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;Jack Antonoff&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Lover&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- *TS &lt;/span&gt;&lt;span&gt;# Subsequent occurrence&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;I Am Easy to Find&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- *AD&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;No JSON equivalent.&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;But this is the output from the above YAML.&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Folklore&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Aaron Dressner&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;Jack Antonoff&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;Lover&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;span&gt;&quot;Taylor Swift&quot;&lt;/span&gt;&lt;span&gt;],&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;I Am Easy to Find&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;span&gt;&quot;Aaron Dressner&quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Sample GitHub Action&lt;a href=&quot;#sample-github-action&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Netlify Rebuild&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;on:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;schedule&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;cron&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;0 21 * * MON-FRI&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;jobs&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Netlify Rebuild&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;runs-on&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;ubuntu-latest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;steps&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Curl request&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;curl -X POST -d {} https://api.netlify.com/build_hooks/601321b7879709a8b8874175&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;JSON&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Netlify Rebuild&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;on&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;schedule&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;&quot;cron&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;0 21 * * MON-FRI&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;},&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;&quot;jobs&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;&quot;build&quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Netlify Rebuild&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;runs-on&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;ubuntu-latest&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;&quot;steps&quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;          &lt;/span&gt;&lt;span&gt;&quot;name&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;Curl request&quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;          &lt;/span&gt;&lt;span&gt;&quot;run&quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;curl -X POST -d {} https://api.netlify.com/build_hooks/601321b7879709a8b8874175&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Takeaways&lt;a href=&quot;#takeaways&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Complex types are inferred&lt;a href=&quot;#complex-types-are-inferred&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The structures of complex types are hidden in YAML.&lt;br /&gt;
They get inferred by the structure of included data.&lt;/p&gt;
&lt;p&gt;Keep a look out for &lt;code&gt;-&lt;/code&gt; and &lt;code&gt;:&lt;/code&gt; which indicate the containing structure.&lt;/p&gt;
&lt;h3&gt;Dash &lt;code&gt;-&lt;/code&gt;&lt;a href=&quot;#dash--&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;If you see a dash &lt;code&gt;-&lt;/code&gt;, it means you’re describing a single array item.&lt;br /&gt;
This means you’re in an array.&lt;/p&gt;
&lt;h3&gt;Colon &lt;code&gt;:&lt;/code&gt;&lt;a href=&quot;#colon-&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;If you see a color &lt;code&gt;:&lt;/code&gt; separating two values, it means your describing a key-value pair.
This means you’re in an object.&lt;/p&gt;
&lt;h3&gt;In the wild&lt;a href=&quot;#in-the-wild&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Since YAML is used often for configuration, it’s likely that your root type is &lt;code&gt;object&lt;/code&gt;.&lt;br /&gt;
At least that’s the case for Markdown Frontmatter, GitHub Actions, and CloudFormation templates.&lt;/p&gt;
&lt;h3&gt;TODO&lt;a href=&quot;#todo&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Sections I’d like to add:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; Multi-line strings
&lt;ul&gt;
&lt;li&gt;Block scalar
&lt;ul&gt;
&lt;li&gt; &lt;code&gt;&amp;gt;&lt;/code&gt; &lt;a href=&quot;https://yaml.org/spec/1.2-old/spec.html#style/block/folded&quot; target=&quot;_blank&quot;&gt;folding style&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;code&gt;|&lt;/code&gt; &lt;a href=&quot;https://yaml.org/spec/1.2-old/spec.html#style/block/literal&quot; target=&quot;_blank&quot;&gt;literal style&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Block scalar, &lt;a href=&quot;https://yaml.org/spec/1.2-old/spec.html#chomping//&quot; target=&quot;_blank&quot;&gt;block chomping indicators&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;-&lt;/code&gt; strip&lt;/li&gt;
&lt;li&gt;&lt;code&gt;+&lt;/code&gt; keep&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/a/21699210&quot; target=&quot;_blank&quot;&gt;https://stackoverflow.com/a/21699210&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Resources and further reading&lt;a href=&quot;#resources-and-further-reading&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://yaml.org/spec/1.2/spec.html#Preview&quot; target=&quot;_blank&quot;&gt;Official YAML 1.2 Documentation at yaml.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;YAML to JSON web converters
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://jsonformatter.org/yaml-to-json&quot; target=&quot;_blank&quot;&gt;https://jsonformatter.org/yaml-to-json&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://onlineyamltools.com/convert-yaml-to-json&quot; target=&quot;_blank&quot;&gt;https://onlineyamltools.com/convert-yaml-to-json&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/a/21699210/754775&quot; target=&quot;_blank&quot;&gt;https://stackoverflow.com/a/21699210/754775&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Keep in touch&lt;a href=&quot;#keep-in-touch&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;br /&gt;
</content:encoded><category>yaml</category></item><item><title>AVO 🥑 — A BEM Dialect Using Data Attributes</title><link>https://chan.dev/avo-a-bem-dialect-using-data-attributes</link><guid isPermaLink="true">https://chan.dev/avo-a-bem-dialect-using-data-attributes</guid><description>AVO is a BEM dialect using data attributes instead of class names. Better legibility, less template repetition. Side-by-side comparison with standard BEM.</description><pubDate>Mon, 08 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;Attribute Value-Object&lt;a href=&quot;#attribute-value-object&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 is a syntactive varient of &lt;a href=&quot;https://en.bem.info/methodology/quick-start/&quot; target=&quot;_blank&quot;&gt;BEM’s Block, Element, Modifier constructs&lt;/a&gt;. AVO is an initialism for “Attribute Value-Objects”.&lt;/p&gt;
&lt;p&gt;As a BEM dialect, AVO observes the concepts of BEM but uses data attribute syntax that reduced (template) repetition and improves template legibility (particularly when used in legacy codebases or with utility class libraries).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Contents&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#attribute-value-object&quot;&gt;Attribute Value-Object&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#video&quot;&gt;Video&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#goals&quot;&gt;Goals&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#attribute&quot;&gt;Attribute&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#css&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#html&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#value-boolean&quot;&gt;Value (boolean)&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#css-1&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#html-1&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#value-object-enumerable&quot;&gt;Value-object (enumerable)&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#css-2&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#html-2&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#value-object-unbounded&quot;&gt;Value-object (unbounded)&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#css-3&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#html-3&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#warning&quot;&gt;Warning&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#relative&quot;&gt;Relative&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#css-4&quot;&gt;CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#html-4&quot;&gt;HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Video&lt;a href=&quot;#video&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Watch me demonstrate this syntax in a LIVE YouTube session.
{% youtube-video ‘&lt;a href=&quot;https://youtu.be/XoBZAc1d43Y?t=63&quot; target=&quot;_blank&quot;&gt;https://youtu.be/XoBZAc1d43Y?t=63&lt;/a&gt;’ %}&lt;/p&gt;
&lt;h2&gt;Goals&lt;a href=&quot;#goals&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 uses data attribute selectors to achieve 5 primary goals:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enable copy-paste of large code examples — from docs to code — in React/JSX or HTML template&lt;/li&gt;
&lt;li&gt;Improve legibility of view code by reducing, in-template, selector duplication&lt;/li&gt;
&lt;li&gt;Facilitate migration of code with automated tools like grep, find-and-replace, and jscodeshift — by providing first class attribute selectors over class name strings&lt;/li&gt;
&lt;li&gt;Eliminate (as much as possible) the likelihood of selector collision between new selectors and legacy codebases&lt;/li&gt;
&lt;li&gt;Clarify the relationship of composed elements by segmenting “modifier” selectors into attribute namespaces&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Attribute&lt;a href=&quot;#attribute&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 elements use empty &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#syntax&quot; target=&quot;_blank&quot;&gt;attribute selectors&lt;/a&gt; for &lt;a href=&quot;https://en.bem.info/methodology/quick-start/#block&quot; target=&quot;_blank&quot;&gt;BEM Blocks&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;CSS&lt;a href=&quot;#css&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;HTML&lt;a href=&quot;#html&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;data-avatar&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;https://placekitten.com/200/200&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;cute kitten&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Value (boolean)&lt;a href=&quot;#value-boolean&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 extensions use the &lt;code&gt;~=&lt;/code&gt; &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#syntax&quot; target=&quot;_blank&quot;&gt;attribute selector&lt;/a&gt; for &lt;a href=&quot;https://en.bem.info/methodology/quick-start/#boolean&quot; target=&quot;_blank&quot;&gt;booleans BEM Modifiers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Key-only values (like &lt;code&gt;mention&lt;/code&gt; above) are inferred to be &lt;code&gt;true&lt;/code&gt;, &lt;a href=&quot;https://en.bem.info/methodology/quick-start/#boolean&quot; target=&quot;_blank&quot;&gt;like in BEM&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;CSS&lt;a href=&quot;#css-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;mention&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--size: 1.25em;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--font-size: 1.5em;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;margin-right: 0.125em;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;transform: translateY(0.25em);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;HTML&lt;a href=&quot;#html-1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;data-avatar=&lt;/span&gt;&lt;span&gt;&quot;mention&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;https://placekitten.com/200/200&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;cute kitten&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Value-object (enumerable)&lt;a href=&quot;#value-object-enumerable&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 extensions also use the &lt;code&gt;~=&lt;/code&gt; &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#syntax&quot; target=&quot;_blank&quot;&gt;attribute selector&lt;/a&gt; for enumerable, &lt;a href=&quot;https://en.bem.info/methodology/quick-start/#key-value&quot; target=&quot;_blank&quot;&gt;key-value BEM Modifiers&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;CSS&lt;a href=&quot;#css-2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;size:sm&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--size: 3rem;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;size:md&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--size: 4rem;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;size:lg&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--size: 5rem;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;HTML&lt;a href=&quot;#html-2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;data-avatar=&lt;/span&gt;&lt;span&gt;&quot;size:sm&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;https://placekitten.com/200/200&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;cute kitten&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;data-avatar=&lt;/span&gt;&lt;span&gt;&quot;size:md&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;https://placekitten.com/200/200&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;cute kitten&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;data-avatar=&lt;/span&gt;&lt;span&gt;&quot;size:lg&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;src=&lt;/span&gt;&lt;span&gt;&quot;https://placekitten.com/200/200&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;alt=&lt;/span&gt;&lt;span&gt;&quot;cute kitten&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Value-object (unbounded)&lt;a href=&quot;#value-object-unbounded&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 extensions use the &lt;code&gt;*=&lt;/code&gt; &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#syntax&quot; target=&quot;_blank&quot;&gt;attribute selectors&lt;/a&gt; for keys with unkown values.&lt;/p&gt;
&lt;p&gt;This allows for indeterminate values &lt;code&gt;status:&amp;lt;undefined&amp;gt;&lt;/code&gt; to be extended with inline styles.&lt;/p&gt;
&lt;h4&gt;CSS&lt;a href=&quot;#css-3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar*=&lt;/span&gt;&lt;span&gt;&apos;status:&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--border: clamp(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;2px,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;calc(var(--avatar--size) * 0.1),&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;5px&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;) solid transparent;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;HTML&lt;a href=&quot;#html-3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img data-avatar=&lt;/span&gt;&lt;span&gt;&quot;status:&quot;&lt;/span&gt;&lt;span&gt; style=&lt;/span&gt;&lt;span&gt;&quot;border-color: purple&quot;&lt;/span&gt;&lt;span&gt; {...} /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;Warning&lt;a href=&quot;#warning&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;While available, this isn’t recommended. Using a fixed set of values is preferred.&lt;/p&gt;
&lt;p&gt;If you want to provide a default, consider instead providing an explicit &lt;code&gt;unknown&lt;/code&gt; selector:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;status:unkown&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;border-color: transparent;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Relative&lt;a href=&quot;#relative&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVO 🥑 extensions use a &lt;code&gt;--&lt;/code&gt; delimiter for &lt;a href=&quot;https://en.bem.info/methodology/quick-start/#element&quot; target=&quot;_blank&quot;&gt;BEM Elements&lt;/a&gt;.&lt;br /&gt;
&lt;code&gt;root-element--composed-element&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The example below introduces a header that includes avatar styles that are composed with the &lt;code&gt;data-avatar&lt;/code&gt; Block.0&lt;/p&gt;
&lt;h4&gt;CSS&lt;a href=&quot;#css-4&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-person-header] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;…&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-person-header--avatar] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;--avatar--size: 7rem;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h4&gt;HTML&lt;a href=&quot;#html-4&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;header data-person-header&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;img data-avatar data-person-header--avatar {...} /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;</content:encoded><category>css</category><category>web</category></item><item><title>Compare AVO 🥑 and standard BEM Conventions</title><link>https://chan.dev/compare-avo-and-standard-bem-conventions</link><guid isPermaLink="true">https://chan.dev/compare-avo-and-standard-bem-conventions</guid><description>Side-by-side comparison of AVO and standard BEM conventions for CSS blocks, elements, and modifiers. Data attributes vs class name selectors.</description><pubDate>Mon, 08 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;AVO 🥑 : BEM (standard) syntax comparison&lt;a href=&quot;#avo---bem-standard-syntax-comparison&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is a chart, mapping AVO 🥑 syntax to standard BEM verbiage.&lt;/p&gt;
&lt;p&gt;AVO 🥑 is a syntactive dialect of &lt;a href=&quot;https://en.bem.info/methodology/quick-start/&quot; target=&quot;_blank&quot;&gt;BEM’s Block, Element, Modifier constructs&lt;/a&gt;.&lt;br /&gt;
This reference describes AVO 🥑 naming conventions in BEM terms — as defined on &lt;a href=&quot;https://en.bem.info/methodology/quick-start/&quot; target=&quot;_blank&quot;&gt;bem.info&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#avo---bem-standard-syntax-comparison&quot;&gt;AVO 🥑 : BEM (standard) syntax comparison&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#block&quot;&gt;Block&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#element&quot;&gt;Element&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#modifier&quot;&gt;Modifier&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Block&lt;a href=&quot;#block&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;A functionally independent component that can be reused.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* BEM */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;.avatar {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* AVO 🥑 */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- BEM --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img class=&lt;/span&gt;&lt;span&gt;&quot;avatar&quot;&lt;/span&gt;&lt;span&gt; src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- AVO 🥑 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img data-avatar src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Element&lt;a href=&quot;#element&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;A composite part of a block that can’t be used separately from it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* BEM */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;.avatar {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;.avatar__img {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* AVO 🥑 */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar--img] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- BEM --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;span class=&lt;/span&gt;&lt;span&gt;&quot;avatar&quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;img class=&lt;/span&gt;&lt;span&gt;&quot;avatar__img&quot;&lt;/span&gt;&lt;span&gt; src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- AVO 🥑 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;span data-avatar&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;img data-avatar--img src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Modifier&lt;a href=&quot;#modifier&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;An entity that defines the appearance, state, or behavior of a block or an element.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* BEM */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;.avatar--status_ok {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;/* AVO 🥑 */&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;[data-avatar~=&lt;/span&gt;&lt;span&gt;&apos;status:ok&apos;&lt;/span&gt;&lt;span&gt;] {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- BEM --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img class=&lt;/span&gt;&lt;span&gt;&quot;avatar avatar--status_ok&quot;&lt;/span&gt;&lt;span&gt; src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;!-- AVO 🥑 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;img data-avatar=&lt;/span&gt;&lt;span&gt;&quot;status:ok&quot;&lt;/span&gt;&lt;span&gt; src=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; alt=&lt;/span&gt;&lt;span&gt;&quot;…&quot;&lt;/span&gt;&lt;span&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;</content:encoded><category>css</category><category>web</category></item><item><title>Import Both Default and Named Exports</title><link>https://chan.dev/import-both-default-and-named-exports</link><guid isPermaLink="true">https://chan.dev/import-both-default-and-named-exports</guid><description>How to efficiently import both default and named exports in JavaScript, keeping your code clean and well-organized by mixing these import styles</description><pubDate>Fri, 05 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We can mix and match import styles to keep code tidy and direct.&lt;/p&gt;
&lt;p&gt;The code below imports both the default export (as &lt;code&gt;cheesburger&lt;/code&gt;) as well as all named exports.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;default as cheeseburger,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;bun,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;cheese,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;patty,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&apos;./cheeseburger.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We can tidy it up a smidge by splitting the default export and named export import statements — using a comma.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;default as cheeseburger,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;bun,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;cheese,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;patty,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&quot;./cheeseburger.mjs&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import cheeseburger, { bun, cheese, patty } from &lt;/span&gt;&lt;span&gt;&quot;./cheeseburger.mjs&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This eliminates the need to rename the &lt;code&gt;default&lt;/code&gt; on import with &lt;code&gt;as&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;What mixed imports are not&lt;a href=&quot;#what-mixed-imports-are-not&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The import position of default and named exports cannot be swapped. When mixing the two, it’s always default first then named exports.&lt;/p&gt;
&lt;p&gt;When I first saw this syntax, I assumed that every comma was like a repeaet — a new opportunity to assign local variables. That’s not how it is. One comma, after the default, and before the named.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Import Default From Named Export</title><link>https://chan.dev/import-default-from-named-export</link><guid isPermaLink="true">https://chan.dev/import-default-from-named-export</guid><description>JavaScript&apos;s default export is actually a named export called &apos;default&apos;. You can import it by name using the as keyword.</description><pubDate>Wed, 03 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Importing &lt;code&gt;default&lt;/code&gt; can be nuanced. There are just so many ways to do it.&lt;/p&gt;
&lt;p&gt;I like to think of &lt;code&gt;default&lt;/code&gt; as a named export with a fixed (non-customizeable) name.&lt;/p&gt;
&lt;p&gt;Check out how we can import &lt;code&gt;default&lt;/code&gt; like a named export.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {default as Highlander} from &lt;/span&gt;&lt;span&gt;&apos;./highlander.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The lines below yield identical results.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import Highlander from &lt;/span&gt;&lt;span&gt;&quot;./highlander.js&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { default as Highlander } from &lt;/span&gt;&lt;span&gt;&quot;./highlander.js&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Unlike named exports, you can’t import &lt;code&gt;default&lt;/code&gt; and use it directly. It &lt;strong&gt;must&lt;/strong&gt; be remaned at import. This is why the more ergonomic option of &lt;code&gt;import MyAlias from &quot;…&quot;;&lt;/code&gt; exists.&lt;/p&gt;
&lt;h2&gt;Use default thru a module alias&lt;a href=&quot;#use-default-thru-a-module-alias&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We’ve discussed &lt;a href=&quot;../import-all-named-exports-into-one-variable/&quot;&gt;module aliases in past posts&lt;/a&gt;. And they have some overlap with the &lt;code&gt;default&lt;/code&gt; export.&lt;/p&gt;
&lt;p&gt;Check out this totally valid use of Module aliases and &lt;code&gt;default&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import * as Highlander from &lt;/span&gt;&lt;span&gt;&apos;./highlander.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;Highlander.default()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Technically, you’re not using the &lt;code&gt;default&lt;/code&gt; keyward because we’re accessing the reference as a property.&lt;/p&gt;
&lt;p&gt;Of course, this looks a little strange when used in frameworks like React.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;lt;Highlander.default&amp;gt;…&amp;lt;Highlander.default /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;My take&lt;a href=&quot;#my-take&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I don’t use &lt;code&gt;default as&lt;/code&gt; or &lt;code&gt;ModuleAlias.default()&lt;/code&gt; import styles in practice. I just find it helpful to remember how &lt;code&gt;default&lt;/code&gt; is exported from modules.&lt;/p&gt;
&lt;p&gt;In future posts, we’ll cover two, more ergonomic alternatives capturing both default and named exports.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Import Default Export</title><link>https://chan.dev/import-default-export</link><guid isPermaLink="true">https://chan.dev/import-default-export</guid><description>How JavaScript default exports work. There can be only one per module — like Highlander. When to use them alongside named exports.</description><pubDate>Tue, 02 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There can only be one &lt;code&gt;default&lt;/code&gt; export.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export default function Highlander() {}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;A JavaScript module is allowed any number of named exports. But default exports are in short supply. You get one and only one.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export default function Highlander() {}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export default function OtherHighlander() {}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// SyntaxError: Identifier &apos;.default&apos; has already been declared&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This limit on defaults empowers a sugary syntax on the import side.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import Highlander from &lt;/span&gt;&lt;span&gt;&apos;./highlander.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We can assign the default export to any variable name, without fuss.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import Highlander from &lt;/span&gt;&lt;span&gt;&quot;./highlander.js&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import LiterallyAnything from &lt;/span&gt;&lt;span&gt;&quot;./highlander.js&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;So, what should be the default?&lt;a href=&quot;#so-what-should-be-the-default&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;../import-all-named-exports-into-one-variable&quot;&gt;In my last post&lt;/a&gt;, I demonstrated how I use named exports to expose UI components that are designed to work together.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export List …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export ListItem …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Controller …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;With this structure, &lt;code&gt;default&lt;/code&gt; becomes a natural place to expose a, default composition of those components for drop-in use.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export List …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export ListItem …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Controller …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export default function EmailList() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;Controller&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;List&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;renderItem={item =&amp;gt; &amp;lt;ListItem item={item} /&amp;gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/Controller&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now, anywhere I want the default composition, I maximally renamable import.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// ./app.js&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import EmailList from &lt;/span&gt;&lt;span&gt;&apos;./email.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export default function App() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;main&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;EmailList /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/main&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;A note on exporting functions&lt;a href=&quot;#a-note-on-exporting-functions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Because default exports aren’t referenced by the provided name, there’s a tendency to leave off of functions names.&lt;/p&gt;
&lt;p&gt;“It’s cleaner!”&lt;/p&gt;
&lt;p&gt;Unfortunately, leaving the name off will impact your developer experience. DevTools will treat these references as anonymous functions.&lt;/p&gt;
&lt;p&gt;So, I recommend adding keeping a descriptive name.&lt;/p&gt;
&lt;h2&gt;My take&lt;a href=&quot;#my-take&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I love default exports — when used as intended.&lt;/p&gt;
&lt;p&gt;A lot of folks in frontend recommend using &lt;em&gt;only&lt;/em&gt; default exports and mandating one-component-per-file. This feels contrary to the design of JavaScript modules. And the practice has the secondary effect of requiring bespoke file structures to communicate components relationships and private components — something modules already do well.&lt;/p&gt;
&lt;p&gt;Use named exports and defaults — together — as intended.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Import All Named Exports into One Variable</title><link>https://chan.dev/import-all-named-exports-into-one-variable</link><guid isPermaLink="true">https://chan.dev/import-all-named-exports-into-one-variable</guid><description>Import all named exports into one variable with import * as. Namespaces your imports and prevents name collisions across modules.</description><pubDate>Mon, 01 Feb 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We can import all of a JavaScript module’s contents into a single variable with &lt;code&gt;* as&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import * as stringUtils from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Now &lt;code&gt;stringUtils&lt;/code&gt; can reference any exports in &lt;code&gt;string-utils.mjs&lt;/code&gt; using property access syntax.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import * as stringUtils from &lt;/span&gt;&lt;span&gt;&quot;./string-utils.mjs&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;stringUtils.chant(&lt;/span&gt;&lt;span&gt;&quot;we will&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;stringUtils.hype(&lt;/span&gt;&lt;span&gt;&quot;rock you&quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Where is this a good practice?&lt;a href=&quot;#where-is-this-a-good-practice&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Importing all named exports into a single variable is great feature for application code.&lt;/p&gt;
&lt;p&gt;Consider these UI modules that have a similar export signatur.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;email.js&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Item …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export List …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export ListItem …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Controller …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;contact.js&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Item …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export List …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export ListItem …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export Controller …;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;../import-and-rename-named-exports/&quot;&gt;Renaming all of these named exports&lt;/a&gt; is super irritating!&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;List as EmailList,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ListItem as EmailListItem,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Controller as EmailController,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&apos;./email.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;List as ContactList,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;ListItem as ContactListItem,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Controller as ContactController,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&apos;./contact.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;By reducing moduling imports to a single reference, we eliminate the need to rename the colliding exports.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import * as Email from &lt;/span&gt;&lt;span&gt;&apos;./email.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import * as Contact from &lt;/span&gt;&lt;span&gt;&apos;./contact.js&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// Email.List, Contact.List, Email.Item, Contact.Item, etc.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;And these namespaces guarantee that we never experience a collision between named exports.&lt;/p&gt;
&lt;h2&gt;My take&lt;a href=&quot;#my-take&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is my preferred way to import named exports. It has eliminated pointless hours spent justifying local references between modules I don’t control.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Schedule Netlify Builds with GitHub Actions, Cron, and Webhooks</title><link>https://chan.dev/schedule-netlify-builds-with-github-actions</link><guid isPermaLink="true">https://chan.dev/schedule-netlify-builds-with-github-actions</guid><description>Netlify build hooks are webhooks with one function: re-build your site when called. Any POST request to your Netlify build hook triggers a build. And you can POST to this hook right from your repo, using GitHub Actions…</description><pubDate>Thu, 28 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;h2&gt;Instructions&lt;a href=&quot;#instructions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Add this GitHub Action to your repo at
&lt;code&gt;.github/workflows/schedule-netlify-build.yml&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;# .github/workflows/schedule-netlify-build.yml&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Schedule Netlify Build&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;on:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;schedule&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;# Customize schedule expression at crontab.guru&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;# This one runs at 800 UTC daily&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;cron&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&apos;0 8 * * *&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;jobs&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Call Netlify build hook&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;runs-on&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;ubuntu-latest&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;steps&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;name&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;Curl request&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;curl -X POST -d {}&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;#YOUR_BUILD_HOOK_URL#&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Tailor your cron schedule&lt;a href=&quot;#tailor-your-cron-schedule&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Determine a build schedule and use &lt;a href=&quot;https://crontab.guru&quot; target=&quot;_blank&quot;&gt;crontab.guru&lt;/a&gt; to describe it as a cron schedule expression.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;# This one runs at 800 UTC daily&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;cron&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;0 8 * * *&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;# This one runs every 6 hours&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;- &lt;/span&gt;&lt;span&gt;cron&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;&quot;* */6 * * *&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Generate a Netlify build hook&lt;a href=&quot;#generate-a-netlify-build-hook&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Netlify build hooks are webhooks with one function: re-build your site when called. Any &lt;code&gt;POST&lt;/code&gt; request to your Netlify build hook triggers a build.&lt;/p&gt;
&lt;p&gt;Generate a new build hook here:
&lt;strong&gt;Site settings &amp;gt; Build &amp;amp; deploy &amp;gt; Continuous deployment &amp;gt; Build hooks&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://d33wubrfki0l68.cloudfront.net/51b3c2b9b2cb2eb70fd9631385a2b0d2bc60b1ea/45997/images/configure-builds-build-hooks.png&quot; alt=&quot;Settings path: Site settings &amp;gt; Build &amp;amp; deploy &amp;gt; Continuous deployment &amp;gt; Build hooks&quot; /&gt;
&lt;small&gt;Image from &lt;a href=&quot;https://docs.netlify.com/configure-builds/build-hooks/&quot; target=&quot;_blank&quot;&gt;Netlify build hooks documentation&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;You have to name your hook. The name doesn’t make much difference as long as it’s unique and descriptive to you.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Paste your build hook into the GitHub Action&lt;a href=&quot;#paste-your-build-hook-into-the-github-action&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;curl -X POST -d {}&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;#YOUR_BUILD_HOOK_URL#&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;curl -X POST -d {} https://api.netlify.com/build_hooks/#GENERATED_BUILD_HOOK_URL&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Push!&lt;a href=&quot;#push&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Push your new workflow up to your repository and watch the &lt;strong&gt;Actions&lt;/strong&gt; tab. You’ll seeing scheduled jobs show up, according to your schedule.&lt;/p&gt;
&lt;p&gt;Here’s what to expect: &lt;a href=&quot;https://github.com/LunchDevCommunity/community-calendar/actions&quot; target=&quot;_blank&quot;&gt;https://github.com/LunchDevCommunity/community-calendar/actions&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Extra credit&lt;a href=&quot;#extra-credit&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Get fancy and ensure that nobody spams your build hook with a &lt;a href=&quot;https://docs.github.com/en/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow&quot; target=&quot;_blank&quot;&gt;GitHub Action secrets&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;A Story&lt;a href=&quot;#a-story&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Dynamic Site; Static Builds&lt;a href=&quot;#dynamic-site-static-builds&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Over at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;, we’ve built a &lt;a href=&quot;https://events.lunch.dev&quot; target=&quot;_blank&quot;&gt;calendar of events&lt;/a&gt; in &lt;a href=&quot;https://www.11ty.dev&quot; target=&quot;_blank&quot;&gt;Eleventy&lt;/a&gt; (a slick static site generator).&lt;/p&gt;
&lt;p&gt;Events are listed under &lt;strong&gt;Upcoming&lt;/strong&gt; and &lt;strong&gt;Past&lt;/strong&gt; event headings based on their publishDate. Because Eleventy generates static sites, that deterimation happens at build time.&lt;/p&gt;
&lt;p&gt;If we want to keep data fresh, &lt;strong&gt;we have to manually re-build the site at least once per day&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Using Netlify build hooks, we can automate those builds on a schedule!&lt;/p&gt;
&lt;p&gt;There are plenty of services that will run a cron job. What I like about a GitHub Actions based solution is that everything is kept in the repo. The source can be maintained and documented with the rest of the project!&lt;/p&gt;
&lt;h2&gt;Resources&lt;a href=&quot;#resources&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events&quot; target=&quot;_blank&quot;&gt;GitHub Workflow: &lt;code&gt;schedule&lt;/code&gt; event&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://crontab.guru&quot; target=&quot;_blank&quot;&gt;crontab.guru&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.netlify.com/configure-builds/build-hooks/&quot; target=&quot;_blank&quot;&gt;Netlify build hooks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/LunchDevCommunity/community-calendar/blob/main/.github/workflows/main.yml&quot; target=&quot;_blank&quot;&gt;lunch.dev community-calendar GitHub Actions source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://time.is/UTC&quot; target=&quot;_blank&quot;&gt;time.is/UTC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ericjinks.com/blog/2019/netlify-scheduled-build/&quot; target=&quot;_blank&quot;&gt;Schedule Your Netlify Build with GitHub Actions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ronaldsvilcins.com/2020/12/23/schedule-netlify-builds-with-github-actions/&quot; target=&quot;_blank&quot;&gt;Schedule Netlify builds with GitHub Actions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Watch me and the lunch.dev crew struggle thru this the first time&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;{% youtube-video “&lt;a href=&quot;https://youtu.be/155Q4gDU1Uo&quot; target=&quot;_blank&quot;&gt;https://youtu.be/155Q4gDU1Uo&lt;/a&gt;” %}&lt;/p&gt;
</content:encoded><category>web</category><category>ci</category></item><item><title>Import and Rename Named Exports</title><link>https://chan.dev/import-and-rename-named-exports</link><guid isPermaLink="true">https://chan.dev/import-and-rename-named-exports</guid><description>Learn how to import and rename named exports in JavaScript. Avoid naming collisions and maintain control in your modules, using the as keyword.</description><pubDate>Wed, 27 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;JavaScript Modules have a syntax for remaning named exports, at import.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {exportedName as localName} from &lt;/span&gt;&lt;span&gt;&apos;…&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;I think about this as “given name” and “nickname”. &lt;em&gt;Michael Chan&lt;/em&gt; is the name my creators gave me but — on this site — I go by &lt;em&gt;chantastic&lt;/em&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {michaelChan as chantastic} from &lt;/span&gt;&lt;span&gt;&apos;./michael-chan.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;This is one of two tools we have for avoiding naming collisions between modules.&lt;/p&gt;
&lt;h2&gt;Rename named exports to avoid a collision&lt;a href=&quot;#rename-named-exports-to-avoid-a-collision&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In my last post — &lt;a href=&quot;../import-named-exports/&quot;&gt;Import Named Exports&lt;/a&gt; — we imported two functions from the &lt;code&gt;string-utils&lt;/code&gt; module: &lt;code&gt;hype&lt;/code&gt; and &lt;code&gt;chant&lt;/code&gt;.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {hype, chant} from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;What if the modules we’re working in already has a &lt;code&gt;hype&lt;/code&gt; function? Are we stuck stuck? Do we have to refactor our code to consider the new module?&lt;/p&gt;
&lt;p&gt;Nope!&lt;/p&gt;
&lt;p&gt;We use the &lt;code&gt;as&lt;/code&gt; keyword to rename named exports locally.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import { hype, chant } from &lt;/span&gt;&lt;span&gt;&quot;./string-utils.mjs&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;hype as hypeText,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;chant&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&quot;./string-utils.mjs&quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;With &lt;code&gt;as&lt;/code&gt;, we have full control of the module we’re working in.&lt;br /&gt;
We can assign named exports to any free, local identifier.&lt;/p&gt;
&lt;h2&gt;My take&lt;a href=&quot;#my-take&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;as&lt;/code&gt; keyword gives us a way to avoid naming collisions, or use a name that’s more contextually accurate. This is great for working with modules in a codebase &lt;em&gt;and&lt;/em&gt; the larger npm ecosystem.&lt;/p&gt;
&lt;p&gt;However, I find this to be a less ideal form collision avoidance than importing all of a module’s contents into a single variable.&lt;/p&gt;
&lt;p&gt;But we’ll cover that in a future post 😅.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Import Modules for Side Effects</title><link>https://chan.dev/import-a-module-for-side-effects</link><guid isPermaLink="true">https://chan.dev/import-a-module-for-side-effects</guid><description>Import a JavaScript module without using any of its exports. Useful for polyfills, CSS, and setup scripts. Includes conditional side effects with dynamic import().</description><pubDate>Tue, 26 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Modules — in JavaScript — can be imported strictly for their side effects.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Notice.
We’re not making any local assignments.&lt;br /&gt;
We aren’t importing functions or constants for later use.&lt;br /&gt;
We’re simply importing the global effects of the module, as if the code lived in this file.&lt;/p&gt;
&lt;p&gt;On the module side, simply write code with effects.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// file: ./string-utils.mjs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.info(&lt;/span&gt;&lt;span&gt;&apos;string-utils loaded.&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Conditional side effects with dynamic imports&lt;a href=&quot;#conditional-side-effects-with-dynamic-imports&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We can load modules with side effects conditionally, with an immediately invoked async function.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;;(async () =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (true &lt;/span&gt;&lt;span&gt;/* maybe some environment var */&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;await import(&lt;/span&gt;&lt;span&gt;&apos;/modules/my-module.js&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;})()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Here, you can imagine checking an environment variable before importing side effects.&lt;/p&gt;
&lt;h2&gt;Don’t mix side effects and exports&lt;a href=&quot;#dont-mix-side-effects-and-exports&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Modules can contain a mix of exports and effects.&lt;br /&gt;
While there may be a good reason to do this, it also make your imports unpredictable.&lt;/p&gt;
&lt;p&gt;Here’s why I recommend avoiding the mix:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import hype from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// loads both exports AND side effects&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(hype(&lt;/span&gt;&lt;span&gt;&apos;moduuuuuules&apos;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// =&amp;gt; string-utils loaded.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// =&amp;gt; MODUUUUUULES!!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Module effects &lt;em&gt;always&lt;/em&gt; run at import.&lt;/p&gt;
&lt;p&gt;In a mixed module, you &lt;em&gt;can&lt;/em&gt; import only the effects but you &lt;em&gt;can not&lt;/em&gt; import only the exports.&lt;/p&gt;
&lt;h2&gt;Side effect imports in the wild…&lt;a href=&quot;#side-effect-imports-in-the-wild&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I see this style of import used with Webpack to import stylesheets.&lt;/p&gt;
&lt;p&gt;In this case, Webpack is packaging up CSS as JavaScript and appending it to the browser’s &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model&quot; target=&quot;_blank&quot;&gt;CSSOM&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>code</category></item><item><title>Import Named Exports</title><link>https://chan.dev/import-named-exports</link><guid isPermaLink="true">https://chan.dev/import-named-exports</guid><description>How JavaScript named exports work, why name collisions are the main downside, and how to handle them with renaming.</description><pubDate>Tue, 26 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;By default, expressions and assignments declared inside a module aren’t available outside of that module.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// file: string-utils.mjs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function hype(message) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;message.toUpperCase()&lt;/span&gt;&lt;span&gt;}!!!`&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Here, &lt;code&gt;hype&lt;/code&gt; is only available to other functions inside &lt;code&gt;string-utils.mjs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;We can expose &lt;code&gt;hype&lt;/code&gt; to other modules by prepending the &lt;code&gt;export&lt;/code&gt; keyword.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// file: string-utils.mjs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;function hype(message) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;mark&gt;&lt;span&gt;export&lt;/span&gt;&lt;/mark&gt;&lt;span&gt; function hype(message) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;message.toUpperCase()&lt;/span&gt;&lt;span&gt;}!!!`&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;&lt;code&gt;hype&lt;/code&gt; is now a &lt;em&gt;named export&lt;/em&gt; from the &lt;code&gt;string-utils&lt;/code&gt; module.&lt;/p&gt;
&lt;p&gt;Keep in mind that &lt;code&gt;export&lt;/code&gt;-ing something doesn’t mean it is automatically available throughout the codebase. Every &lt;code&gt;export&lt;/code&gt; requires an &lt;code&gt;import&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Import named exports&lt;a href=&quot;#import-named-exports&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Anything one module exports can be imported and used by another module.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {hype} from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(hype(&lt;/span&gt;&lt;span&gt;&apos;moduuuules&apos;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// =&amp;gt; MODUUUULES!!!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;The syntax we use to access named exports is similar to object destructuring assignment.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let person = {name: &lt;/span&gt;&lt;span&gt;&apos;chantastic&apos;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;let {name} = person&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;We can only import what we can access by name.&lt;/p&gt;
&lt;p&gt;So, the import statement below would fail (with our current module):&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;hype,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;chant &lt;/span&gt;&lt;span&gt;/* oops. no chant */&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;} from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// SyntaxError:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// The requested module &apos;./string-utils.mjs&apos; does not provide an export named &apos;chant&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;Import multiple named modules&lt;a href=&quot;#import-multiple-named-modules&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We can import as many named exports as we like!&lt;/p&gt;
&lt;p&gt;Let’s implement and export a &lt;code&gt;chant&lt;/code&gt; function:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// file: string-utils.mjs&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;export function hype(message) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return &lt;/span&gt;&lt;span&gt;`${&lt;/span&gt;&lt;span&gt;message.toUpperCase()&lt;/span&gt;&lt;span&gt;}!!!`&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;export function chant(message) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return [...Array(3)].map(() =&amp;gt; message).join(&lt;/span&gt;&lt;span&gt;&quot;! &quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import {hype, chant} from &lt;/span&gt;&lt;span&gt;&apos;./string-utils.mjs&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;console.log(chant(&lt;/span&gt;&lt;span&gt;&apos;M&apos;&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;// =&amp;gt; Modules! Modules! Modules!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2&gt;My take&lt;a href=&quot;#my-take&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Named exports are the module feature I use most.&lt;/p&gt;
&lt;p&gt;The major downside of named exports is naming collisions with other modules.&lt;br /&gt;
In future posts I’ll share a handful of strategies to compensate for and avoid naming collisions of named exports.&lt;/p&gt;
&lt;h2&gt;Go pro&lt;a href=&quot;#go-pro&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This is part of a course I’m build on modules at &lt;a href=&quot;https://www.lunch.dev&quot; target=&quot;_blank&quot;&gt;lunch.dev&lt;/a&gt;.&lt;br /&gt;
When live, members get access to this and other courses on React.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.lunch.dev/member&quot;&gt;Join lunch.dev for this course&lt;/a&gt;&lt;/p&gt;</content:encoded><category>javascript</category><category>web</category></item><item><title>React Server Components Announcement Notes</title><link>https://chan.dev/react-server-components-announcement-notes</link><guid isPermaLink="true">https://chan.dev/react-server-components-announcement-notes</guid><description>Notes from watching the React Server Components announcement with friends. New packages (react-fetch, react-fs, react-pg), demo app setup, and first impressions.</description><pubDate>Thu, 14 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Three weeks after the announcement of React Server Components, I finally sat down &lt;a href=&quot;https://twitter.com/chantastic/status/1349710359049940992?s=20&quot; target=&quot;_blank&quot;&gt;with friends&lt;/a&gt; to watch the event.&lt;/p&gt;
&lt;p&gt;These notes are just a few ideas and links I’d like to hold onto for my next pass thru the demo app.&lt;/p&gt;
&lt;h2&gt;Announcement&lt;a href=&quot;#announcement&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html&quot; target=&quot;_blank&quot;&gt;Announcement Post&lt;/a&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/reactjs/server-components-demo&quot; target=&quot;_blank&quot;&gt;server-components-demo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;{% youtube-video “&lt;a href=&quot;https://youtu.be/TQQPAU21ZUw&quot; target=&quot;_blank&quot;&gt;https://youtu.be/TQQPAU21ZUw&lt;/a&gt;” %}&lt;/p&gt;
&lt;h2&gt;Discussion&lt;a href=&quot;#discussion&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Real-time &lt;a href=&quot;https://discord.com/channels/105756917887950848/755466593261322301/799335521787838494&quot; target=&quot;_blank&quot;&gt;discussion in Discord&lt;/a&gt; with the React Podcast community.&lt;/p&gt;
&lt;h2&gt;New packages&lt;a href=&quot;#new-packages&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;





























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Use&lt;/th&gt;&lt;th&gt;Source&lt;/th&gt;&lt;th&gt;Package&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;react-fetch&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;fetch&lt;/code&gt; wrapper&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/facebook/react/tree/master/packages/react-fetch&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://www.npmjs.com/package/react-fetch&quot; target=&quot;_blank&quot;&gt;npm&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;react-fs&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;Postgres&lt;/code&gt; wrapper&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://www.npmjs.com/package/react-fs&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/facebook/react/tree/master/packages/react-fs&quot; target=&quot;_blank&quot;&gt;npm&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;react-pg&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Node.js &lt;code&gt;fs&lt;/code&gt; wrapper&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://www.npmjs.com/package/react-pg&quot; target=&quot;_blank&quot;&gt;GitHub&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://github.com/facebook/react/tree/master/packages/react-pg&quot; target=&quot;_blank&quot;&gt;npm&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;Demo App Notes&lt;a href=&quot;#demo-app-notes&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://gist.github.com/msutkowski&quot; target=&quot;_blank&quot;&gt;Matt Sutkowski&lt;/a&gt; lead our Discord discussion group thru the demo.&lt;br /&gt;
He documented his findings and first impressions &lt;a href=&quot;https://gist.github.com/msutkowski/90c90d04474ce51d0e56e96bb21e980d&quot; target=&quot;_blank&quot;&gt;in this gist&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Complications&lt;a href=&quot;#complications&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;When exploring this demo, remember that it has two goals:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Introduce folks to an experimental feature&lt;/li&gt;
&lt;li&gt;Illuminate areas where framework builders (&lt;a href=&quot;https://nextjs.org&quot; target=&quot;_blank&quot;&gt;Next.js&lt;/a&gt;, &lt;a href=&quot;https://remix.run&quot; target=&quot;_blank&quot;&gt;Remix&lt;/a&gt;, etc…) can start integrating&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I’m in that first group of people.&lt;br /&gt;
If you’re also in that group, stick to the &lt;a href=&quot;https://github.com/reactjs/server-components-demo#interesting-things-to-try&quot; target=&quot;_blank&quot;&gt;Interesting Things to Try&lt;/a&gt; section of the README.&lt;br /&gt;
This section gently introduces you to the proposed developer workflow.&lt;/p&gt;
&lt;p&gt;If you go too far off course, you’ll notice quickly that there is no Router.&lt;br /&gt;
This is where frameworks will pick up.&lt;/p&gt;
&lt;h3&gt;Setup&lt;a href=&quot;#setup&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Because this is a full stack app, you’ll need to setup a full stack environment.&lt;br /&gt;
The steps are detailed in the &lt;a href=&quot;https://github.com/reactjs/server-components-demo#setup&quot; target=&quot;_blank&quot;&gt;Setup&lt;/a&gt; and &lt;a href=&quot;https://github.com/reactjs/server-components-demo#db-setup&quot; target=&quot;_blank&quot;&gt;DB Setup&lt;/a&gt; sections of the &lt;a href=&quot;https://github.com/reactjs/server-components-demo&quot; target=&quot;_blank&quot;&gt;README&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I’ll re-iterate a comple points with some added practical details.&lt;/p&gt;
&lt;h4&gt;Node&lt;a href=&quot;#node&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;You need &lt;code&gt;node &amp;gt;= 14.9.0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you need to manage different versions of Node.js, consider &lt;a href=&quot;https://github.com/nvm-sh/nvm&quot; target=&quot;_blank&quot;&gt;nvm&lt;/a&gt;.&lt;br /&gt;
It’s what I use to jump between projects with different &lt;code&gt;node&lt;/code&gt; requirements.&lt;/p&gt;
&lt;p&gt;With nvm, run &lt;code&gt;nvm install 14&lt;/code&gt; in the project root and you’re good to go.&lt;/p&gt;
&lt;h4&gt;Docker (optional)&lt;a href=&quot;#docker-optional&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;UPpublishDate: Docker is optional. It’s available for folks who prefer to run Postgres in a cointainer. The &lt;a href=&quot;https://github.com/reactjs/server-components-demo/commit/2b9eddd49b9648468ddeab9aee0e06eaf3edce5f&quot; target=&quot;_blank&quot;&gt;README has been uppublishDated&lt;/a&gt; to make this even clearer.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you prefer not to install Postgres globally, you can use &lt;code&gt;docker-compose&lt;/code&gt; to run the &lt;code&gt;server-components-demo&lt;/code&gt;.&lt;br /&gt;
Find &lt;a href=&quot;https://docs.docker.com/compose/install/&quot; target=&quot;_blank&quot;&gt;platform-specific instructions here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On a mac, the quickest path to a demo is installing the &lt;a href=&quot;https://docs.docker.com/docker-for-mac/install/&quot; target=&quot;_blank&quot;&gt;Docker Desktop Mac App&lt;/a&gt; — which includes &lt;code&gt;docker-compose&lt;/code&gt;.&lt;/p&gt;
&lt;h4&gt;Postgres Setup (only necessary if you didn’t use Docker)&lt;a href=&quot;#postgres-setup-only-necessary-if-you-didnt-use-docker&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;(if you don’t want to endure this step, &lt;a href=&quot;https://twitter.com/pomber&quot; target=&quot;_blank&quot;&gt;Rodrigo Pombo&lt;/a&gt; has a &lt;a href=&quot;https://github.com/pomber/server-components-demo/&quot; target=&quot;_blank&quot;&gt;DB-less fork of &lt;code&gt;server-components-demo&lt;/code&gt;&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;DB Setup instructions are &lt;a href=&quot;https://github.com/reactjs/server-components-demo#db-setup&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://wiki.postgresql.org/wiki/Detailed_installation_guides&quot; target=&quot;_blank&quot;&gt;Platform-specefic installation instructions here&lt;/a&gt;.&lt;br /&gt;
On a mac, the quickest path to a demo is installing &lt;a href=&quot;https://postgresapp.com&quot; target=&quot;_blank&quot;&gt;Postgress.app&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Personally, I manage a Postgres installation with &lt;a href=&quot;https://brew.sh&quot; target=&quot;_blank&quot;&gt;Homebrew&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;(with &lt;code&gt;brew&lt;/code&gt; command available)
— installed Postgres with &lt;code&gt;brew install postgresql&lt;/code&gt;
— run &lt;code&gt;brew services start postgres&lt;/code&gt; to start the Postgres daemon
— run &lt;code&gt;brew services stop postgres&lt;/code&gt; to stop the Postgres daemon&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With Postgres setup, follow the &lt;a href=&quot;https://github.com/reactjs/server-components-demo#db-setup&quot; target=&quot;_blank&quot;&gt;remaining istructions&lt;/a&gt; to setup and seed a database for you demo app.&lt;/p&gt;
&lt;h2&gt;Location oddities&lt;a href=&quot;#location-oddities&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Something to keep in mind is that &lt;code&gt;navigate&lt;/code&gt; and &lt;code&gt;location&lt;/code&gt; have nothing to do with url.&lt;/p&gt;
&lt;p&gt;The user’s “location” in the app is held in state and communicated as a query parameter to server-side requests — to provide the correct data.&lt;/p&gt;
&lt;p&gt;This clearly a void that would be filled by a meta-framework and the implementation in the DEMO is a mimimum-required effort to prove the concept.&lt;br /&gt;
This is not what real code would look like.
Same sentiment for inline Postgres queries in &lt;code&gt;.server.js&lt;/code&gt; components.&lt;/p&gt;
&lt;h2&gt;Deployable demos&lt;a href=&quot;#deployable-demos&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/vercel/next-server-components&quot; target=&quot;_blank&quot;&gt;verces/react-server-components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/netlify/react-server-components-demo&quot; target=&quot;_blank&quot;&gt;netlify/server-components-demo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/prisma/server-components-demo&quot; target=&quot;_blank&quot;&gt;prisma/server-component-demo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Other references&lt;a href=&quot;#other-references&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://addyosmani.com/blog/react-server-components/&quot; target=&quot;_blank&quot;&gt;React Server Components by Addi Osmani&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;First impressions&lt;a href=&quot;#first-impressions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;All things considered, this is an enjoyable experiment.&lt;br /&gt;
If you stick to the &lt;a href=&quot;https://github.com/reactjs/server-components-demo#interesting-things-to-try&quot; target=&quot;_blank&quot;&gt;Interesting Things to Try&lt;/a&gt; section, there’s a lot to be learned.
I’m grateful to the React Team for openly sharing these experiments with a workable public demo.&lt;/p&gt;</content:encoded><category>react</category><category>web</category></item><item><title>An off-camera mic for non-nerds</title><link>https://chan.dev/an-off-camera-mic-for-non-nerds</link><guid isPermaLink="true">https://chan.dev/an-off-camera-mic-for-non-nerds</guid><description>Recommending the Rode VideoMic NTG for someone who wants to ditch the headset mic without falling into A/V nerdery. USB-C, shock mount, $200.</description><pubDate>Sat, 02 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My friend &lt;a href=&quot;https://www.danott.co&quot; target=&quot;_blank&quot;&gt;Dan&lt;/a&gt; asked me for a mic recommendation.&lt;br /&gt;
A friend of his wants to “ditch the headset mic” for their online coaching sessions.&lt;/p&gt;
&lt;p&gt;I interpret this as a desire to eliminate anything cold and impersonal from the call — important for tele-coaching.&lt;/p&gt;
&lt;p&gt;So, we’re looking for an off-camera mic.&lt;/p&gt;
&lt;p&gt;Off-camera mics are a bundle of trade-offs. For the best possible sound, you want to be within 9 inches of your microphone. Every inch adds more background noise and echo — reducing presence.&lt;/p&gt;
&lt;p&gt;I have plenty of $$$ solutions that could work. But, it sounds like this person doesn’t want to fall into the pit of A/V nerdery. They just want cozier conversations. Fair enough.&lt;/p&gt;
&lt;h2&gt;Recommendation&lt;a href=&quot;#recommendation&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;For everything above, I like the &lt;a href=&quot;https://www.amazon.com/Rode-VideoMic-Camera-Shotgun-Microphone/dp/B081S9BCHF/ref=sr_1_3?dchild=1&amp;amp;keywords=rode+videomic+ntg&amp;amp;qid=1609624982&amp;amp;sr=8-3&quot; target=&quot;_blank&quot;&gt;Rode VideoMic NTG&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I like it for a bunch of reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;No-fuss, integrate USB-C interface&lt;/li&gt;
&lt;li&gt;Headphone out (when used as an interface)&lt;/li&gt;
&lt;li&gt;Good sound isolation (for an inexpensive distance, condenser mic)&lt;/li&gt;
&lt;li&gt;Hardware gain nob&lt;/li&gt;
&lt;li&gt;Included shock mount&lt;/li&gt;
&lt;li&gt;3.5mm audio out for use with a DSLR/mirrorless camera&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Other stuff you’ll need&lt;a href=&quot;#other-stuff-youll-need&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You’ll need a stand and a cold shoe adapter for this mic.&lt;/p&gt;
&lt;p&gt;I like the &lt;a href=&quot;https://amzn.to/3hC2GRL&quot; target=&quot;_blank&quot;&gt;SmallRig Multi-Functional Cold Shoe Mount with Safety Release&lt;/a&gt;. It’ll work with any 1/4”-20 (or adapted) stand.&lt;/p&gt;
&lt;p&gt;As a desk stand, I like the &lt;a href=&quot;https://amzn.to/2LjH9By&quot; target=&quot;_blank&quot;&gt;Oben TT-100 Table Top Tripod&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Make it sound great&lt;a href=&quot;#make-it-sound-great&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3&gt;Get the mic as close as possible&lt;a href=&quot;#get-the-mic-as-close-as-possible&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Off-camera doesn’t mean far away.&lt;br /&gt;
Get the mic as close as you can before it appears on camera.&lt;/p&gt;
&lt;h3&gt;Eliminate unwanted noise&lt;a href=&quot;#eliminate-unwanted-noise&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Turn off anything that makes noise.&lt;br /&gt;
Close your doors and windows.&lt;/p&gt;
&lt;h3&gt;Cover hard surfaces with soft ones&lt;a href=&quot;#cover-hard-surfaces-with-soft-ones&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Couches, carpets, rugs, books, and wall art help absorb sound in an unobtrusive way.
Work on the walls and corners behind you first. These are the worst offenders for echo. Then work on the surfaces to your left and right. This mic is already insensitive to sounds at its rear.&lt;/p&gt;
&lt;h2&gt;Go forth!&lt;a href=&quot;#go-forth&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This non-nerd, off-camera mic will serve you well.
And it’ll grow with you, should you decide to up your video game with a DSLR/mirrorless camera.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;Disclosure: if you purchase anything from Amazon, I make a small commission.&lt;/small&gt;&lt;/p&gt;</content:encoded><category>audio</category><category>gear</category></item><item><title>Release</title><link>https://chan.dev/release</link><guid isPermaLink="true">https://chan.dev/release</guid><description>Release. Some things lift, others pull. Let go of things that pull…</description><pubDate>Fri, 01 Jan 2021 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Release.&lt;br /&gt;
Some things lift, others pull.&lt;br /&gt;
Let go of things that pull.&lt;br /&gt;
Thank them or throw them out but get rid of them fast.&lt;br /&gt;
Everything you hold is something you also carry.&lt;br /&gt;
Carry less to move quickly.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;At the end of my journals, I write my discovery as an imperative. That’s the bit above. But here’s the unadulterated journal entry for context.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;Entry: Clarity&lt;a href=&quot;#entry-clarity&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;With pride, we keep every failure in.
And with pride, hold onto the sinking.
— Clarity, Jimmy Eat World&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;My musical education took place washing dishes at a coffee shop. On occasion, I’d close with a young indie gal — who’s name I’ve since forgotten.&lt;/p&gt;
&lt;p&gt;She was maybe 19 and I remember getting lost in watching her quietly and cooly tolerate the world. Her one delight was locking the door, playing an under-celebrated album, and enjoying it with whoever happened to be around. Many nights, that was me. I crushed on her in that impossible way that one might crush on a best-friend’s older sibling.&lt;/p&gt;
&lt;p&gt;Her musical taste informs mine to this day.
Amid that glut of albums was Clarity by Jimmy Eat World*. I have never and will never again experience an album that transformative.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;And with pride, we hold every failure in&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I went to bed on new year’s eve with this lyric shaking the corners of my brain. I want 2021 to be about clarity, focus, and freedom from clutter of years past. In rushed this song from the start of my adult journey.&lt;/p&gt;
&lt;p&gt;Progress hides behind failure.&lt;br /&gt;
It’s birthed from failure.&lt;br /&gt;
We can’t separate one from the other.&lt;br /&gt;
Jekyll always comes with Hyde and our efforts to separate them only amplify their presentations.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;And with pride, we hold onto the sinking&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The older I become, the more I retain.&lt;br /&gt;
More weight, more insurance, more cables, receipts, proofs of purchase, tactics in surviving work amid a sea trying personalities…&lt;/p&gt;
&lt;p&gt;I was free when I heard this song.&lt;br /&gt;
I owned literally nothing.&lt;br /&gt;
So it hadn’t occurred to me that 20 years in the future I’d be drowning in all that stuff I retained.&lt;/p&gt;
&lt;p&gt;If you can’t take it with you, what is worth keeping? What should I remove now? What around me represents only the shadow me — the one that didn’t survive? Do I hold onto hopes of those shadow? What aspirations have I placed in new things that will become new, faithless artifacts?&lt;/p&gt;
&lt;p&gt;It’s time to let go and let go of the sinking.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;* It was actually Keith that introduced me to Clarity. But that’s a less sexy story. The nameless introduced me to The Anniversary — my favorite band, with the greatest sound of all time.&lt;/em&gt;&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Gammy&apos;s 85th</title><link>https://chan.dev/gammys-85th</link><guid isPermaLink="true">https://chan.dev/gammys-85th</guid><description>80 minutes of history, memories, and wisdom from my grandmother on her 85th birthday. Full audio recording and transcript.</description><pubDate>Sun, 25 Oct 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For her 85th birthday, I interview my grandma — Carol “Gammy” Claypool.&lt;/p&gt;
&lt;p&gt;My aunts threw a great party and asked if I’d provide the night’s entertainment — an interview with the matriarch of our family tree.&lt;/p&gt;
&lt;p&gt;I’m glad they did.&lt;/p&gt;
&lt;p&gt;I’ve loved conversation my entire life.&lt;br /&gt;
And from the moment I saw the &lt;a href=&quot;https://www.youtube.com/watch?v=ePrAxox-sq0&quot; target=&quot;_blank&quot;&gt;Talkboy in Home Alone 2&lt;/a&gt; I’ve been obsessed with what comes out of people when the little red light is on.&lt;/p&gt;
&lt;p&gt;Below are 80 minutes of history, memories, and wisdom from Gammy on her 85th birthday.&lt;/p&gt;

  
  &lt;p&gt;
    Your browser does not support the audio tag. a &lt;a href=&quot;https://media.chan.dev/gammy-85-interview.mp3&quot;&gt;link to the audio&lt;/a&gt; instead.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://media.chan.dev/gammy-85-interview.mp3&quot; target=&quot;_blank&quot;&gt;Dowload audio here.&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Transcript&lt;a href=&quot;#transcript&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: All right. We’re ready?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We’re ready.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I am so ready. [laughs] This is going to be fun. We have a bunch of premade questions from people, but I’m just going to ask you some questions, just the two of us. Just you and me. Forget these jokers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They’re not there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah, they are not there. As I was talking with a bunch of people, today, a theme that came up a lot was just your creativity. Just this mad scientist well of creativity that’s inside of you. I’m curious, what was the first time you felt that overtake you? What’s the thing that you remember being the first thing that you’re obsessed with and wanted to figure out?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can tell you that in my young years at school I was fully aware, suddenly, that I had math roaming around in my head. Didn’t need books, everything just [makes sound] . [laughs] It was very strange, and I enjoyed it. I tutored lots of kids and used that whatever way I could.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How did that manifest as you started to do more and more creative endeavors? You have the math going on in your head, but that manifests itself into more like creative expression. The one that I’m most familiar with is the puppets. All that stuff came out, but this isn’t the only thing. You’ve had so many interests. What are some of the ones that sparked the most in you?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: When I was about 11, I gathered a bunch of girls together that were about that age, and I had them writing books. Then, I’d have them acting them out.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I started a bunch of groups. I can’t even recall what the other ones were. That was the main one I can remember having done that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Was it always something community? That’s how I remember experiencing a lot of the puppets and whatnot. It was a group activity. Was it always a group-based thing?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Why so? What is it that entices you to the group dynamic?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: When I was 11, I went to a girls’ school. There were a bunch of us at my age that lived upstairs on one flat place up there, and then kids all over. They talked about stuff. I could see that they were interested.&lt;/p&gt;
&lt;p&gt;Although I was the youngest one, but I could see what they were interested in, so I just encouraged them to keep writing. Then, we’d act them out and have a good time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love that. Were there some people that were resistant?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, nobody was overly encouraged if they didn’t want to do that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The thing is the majority of the group did because they thought that seemed like a fun thing to do.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’m curious. This is something that I’m super fascinated by in you and in other people that I know is this ability to draw things out of people. You’d mentioned not having to encourage people too much to get involved and to be excited.&lt;/p&gt;
&lt;p&gt;For a lot of people, it can be really difficult to bring them in and get them on board and whatnot. Is this just a super natural talent that you have, or do you have kind of a process, where it means of bringing people into this world?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know how in the world I would answer that because I have no…I mean, I was 11, 12, 13. I only reached out to them because they seemed like they were interested in stuff, and I was interested in stuff, so I encouraged them.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: What did you guys do?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love that. I love it. Did you always think that you would have a big family? Talking about clans and groups and doing everything like that, did you always think that you’d have a big crew?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know is I could answer. Then, my family was…There were seven of us, so I was used to being in a group.&lt;/p&gt;
&lt;p&gt;Audience Member: They wanted 12 children.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Shush!&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My goodness. What are you saying?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: We don’t talk about the failures here.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The odd thing was, when I married my marine, he came back from war. I got on a Greyhound bus and came out to California from Ohio. Every girl walking around there was pregnant.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Not me. It took me three years before I had that, the first one.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was shocking. Every girl in the area had a baby, and I didn’t. Then another three years, there was Sherrie. Another three years, there was Colleen and then Cindy. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You had to warm up the machine.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It took a while to get going, but it was very productive after that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, that was still always three years apart…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …but not quite that much on the last couple.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Tell me about your marine, as you put it. How did you meet, and then what was it that made you realize that he was the one?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s an interesting question.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had gotten older. I was 14, so my schooling was indifferent. My best friend and I had a bedroom downstairs, and I’d heard of the scoundrel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was warned about the scoundrel. Twice, he did put leaves under the window and set them on fire.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: In front of your window?&lt;/p&gt;
&lt;p&gt;Audience Member: To get your attention.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah, to have my attention.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, wow. That’s a move.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: That’s a move.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Didn’t do him any good with me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] I can’t imagine so. That’s arson.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had nothing to do with him. Then my girlfriend lived up above [inaudible 7:40] . He came in there, and that was kind of a different story. He came in there. My girlfriend knew him. I didn’t have anything to do with him.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then he joined the Marine Corps, and when he came back in his blues, that was it.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It was the looks then. That’s what…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Not really.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was something about him. He had…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Changed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …grown up. He was somebody to make your head turn.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: This is true.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting. He seemed pretty determined to get your attention though. Setting two fires in front of your house is a thing. He had his eye on you…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Apparently.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: …for a while.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Maybe, partly, it was because I wouldn’t pay him any attention.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I would say that’s where that came to. “All these other girls I’m dating here, so I don’t know.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: He had his eye on the prize, it sounds like. [laughs]&lt;/p&gt;
&lt;p&gt;Audience Member: He did.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: He comes back. He’s looking sharp in his blues. How did things progress after that?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then he had to, of course, go back to the base, but he hung around for a while. We got more acquainted and started writing letters. Can’t remember the name of the cruise that Marines go on back then.&lt;/p&gt;
&lt;p&gt;Audience: The Med cruise.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Med cruise. Got it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I got letters and a proposal.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How was he as a writer?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Probably pretty average.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Pretty average?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: He was very mushy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Very mushy. You’re right.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s awesome.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was romantic. He was romantic all the way through this thing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting. Good at setting fires. Good at looking good. Average at writing.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No. As he’s proposing and stuff, he’s doing a very good job.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know you mentioned that you’d been waiting for a while to get pregnant and have a child. What did that waiting feel like? Did it make you more excited for the moment that you would start your family or were you getting worried?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was getting worried. It seemed very odd to be two years and something, and then baby takes one, two, three years.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: They take some time. They don’t come out right away.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They don’t.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah. God did a number on that one.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Everyone around us was having one kid after another.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] What was it like having your first, starting that family?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was just amazing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Really, yeah. I can’t think anything better.&lt;/p&gt;
&lt;p&gt;Audience: Aww.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Hey baby girl. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] Then you had a perfect one right from the start obviously.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: This is true because I raised her.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What were those first few years like as you started your own little brood, your little family?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was very fun. We won’t even go into that. When we went down to North Carolina and lived on the base there, it was weird because it had so many rows of houses where there’s, I don’t know, maybe six in one. There were two individual houses in the center of the playground, that area.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, nice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That was really nice.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Anyhow, it was a really good spot for Kathy to pull her wagon, her dolls, and all that good stuff.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What was your favorite thing about being a mom then and has it changed? You’ve had many years now of being a mom. What was your favorite thing then? Is it the same now or has it changed?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I really liked being a mom and I think I did a pretty good job. Those are good kids.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;[applause]&lt;/p&gt;
&lt;p&gt;Audience Member: [inaudible 13:12] .&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: We think very highly of ourselves as well.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: No self-esteem issues.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then there’s the grandkids and then there’s the great-grandkids. It’s all wonderful.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Pretend nobody else is here.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Are you more delighted about being a mom, a grandma, or a great-grandma?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s hard.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s all right. You can be honest.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, I am all those.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Seriously, that’s what I am, all those.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Which brings you the most delight though?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: When you think about it and you’re like…&lt;/p&gt;
&lt;p&gt;Audience Member: Remember who you’re talking to.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: We already know the truth. Don’t worry. We know we’re not it.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You were when you were little.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Whatever the generation is, it’s the newest? That’s your favorite? That’s where your heart’s at?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know. I can’t say that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I really can’t say that. I love this whole family.&lt;/p&gt;
&lt;p&gt;Audience: Aww.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I got more than anybody should deserve.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Which of your grandchildren is not living up to their potential the most?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’m just kidding.&lt;/p&gt;
&lt;p&gt;Audience Member: Say what?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, it’s got to be…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, now she’s ready to answer that one.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Because I’m not sure yet, Milo.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He’s like three months old but he’s adorable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Get tons of tickles every month. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, is he cute? Oh, my goodness. He’s pretty perfect.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You have so many grandkids now and great-grandkids and whatnot. Were you just over the moon when you found out you were going to be a grandma?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, my gosh, yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, yeah. Every time. Melody just had another baby. Yeah, every time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You’re just doing your happy dance every announcement.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes, I am. I am, indeed.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They’re all adorable. Perfect. I thought you should know that [inaudible 15:46] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, thank you.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Just in case.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I appreciate you bringing me into the confidence fold that we’ve…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: What I do appreciate about you…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, thank you. I’m ready.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …is that you’re married.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’ve got a lot of boys out there and they aren’t.&lt;/p&gt;
&lt;p&gt;Audience: Ooh!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Here’s a concern for me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah, I was thinking for a second that it was going to be about me. The fact that it’s about Nelly, I’m good with that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Congratulations, buddy. I’m excited about that too.&lt;/p&gt;
&lt;p&gt;Audience Member: [inaudible 16:37] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: There is some questions in here about some of your houses. I have only ever been aware of the Grapevine House. All of my memories are there. Tell me about some of the other places that you’ve lived. Obviously, you’ve had to move around quite a bit. Do you have a memory of your favorite place?&lt;/p&gt;
&lt;p&gt;Audience Member: That’ll be Marvin Street.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes. Actually, the first house we ever bought was on Marvin Street in Oceanside. We really enjoyed it but we had to leave a lot behind. When we came back to this adorable little house, how many kids did we have then?&lt;/p&gt;
&lt;p&gt;Audience Member: Five.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We had one bathroom.&lt;/p&gt;
&lt;p&gt;Audience Member: Five girls.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had a high schooler that had to get in the morning first. Then the junior higher that had to get in and out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then a husband after that to get in and out. Then the little guys had to go to school. We thought it was probably time, as much as we loved that house, to get something a little bit bigger with two bathrooms.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Two bathrooms is big. Not that this is about me, but I remember we did the one bathroom thing for a while. I don’t remember, it was around Valentine’s Day or our anniversary or something.&lt;/p&gt;
&lt;p&gt;We went out to dinner and we got food poisoning and we were both sick at the same time in one bathroom. That was it. I had papers on a loan drafted up that week.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It was too much marriage.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Too much throwing up.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Marvis, that was your favorite house before you had to grow out of it into a larger place.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yep.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Was it Grapevine right after that?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah. We were shown a lot of houses, but Guff drove the church bus and he had gone past that…They were setting out the post. We went and saw them and we bought it. [laughs] As quick as that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How much was it?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think it was 28.&lt;/p&gt;
&lt;p&gt;Audience Member: Less than a car. 28…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: 28 thousand? Unbelievable.&lt;/p&gt;
&lt;p&gt;Audience Member: How much was your first house?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How much was your first house?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Marvin Street. It was such a little house. $12,000, that’s what it was.&lt;/p&gt;
&lt;p&gt;Audience Member: Can I interject something about that Marvin Street house?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;Audience Member: We met Dawn at that Marvin Street house.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, OK. This is why you were so excited about the Marvin Street house.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;Audience Member: She lived three doors down.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: She was like part of our family. She and her brother. Then, when we moved on Marvin, they’d come over and hang out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Nice. What was it that enraptured you about this house as it was going on sale? You said that you saw a lot of houses, but this one you just snapped up. What was it?&lt;/p&gt;
&lt;p&gt;Audience Member: The Grapevine house.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: The Grapevine house, yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know, I just really like the house. It was half-acre. That’s nice. Can do with that. It was just quiet and it was right down the school, down the street. There weren’t very many houses back then, and you could look out my side window towards Oceanside, and the only thing you could see is orange groves, no houses.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Really?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yep.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s wild, because there’s tons of houses there now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs] Then it dipped down, remember?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah. I mean, I don’t remember, but believe the vision.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It dipped down there on our side. There was no houses on that side. Then it was when you had your baby I came back. They had built it all up, so the houses are way above…&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That was the prosperity coming to meet me, and greet me.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Paving a path. It was surely disappointed, but it was coming for me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, I still have my house and my piece of property.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s wild.&lt;/p&gt;
&lt;p&gt;Audience Member: That’s a lot of ATVs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, Cliff was always on that thing trying to kill himself.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’m sure.&lt;/p&gt;
&lt;p&gt;Audience Member: And me?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: And you.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’m curious at the time, my memory of this is…Look, all that I remember is your house, neighborhood, there’s the Quonset hut and the pool, and all that kind of stuff. Did you build all of that?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The Quonset hut was there for workers. The guy had owned more property down below originally, and he raised beams and stuff so his workers were in the Quonset hut.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Got you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That was there, yeah.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then the pool we put in. Cliff said, “Do you want a volleyball court or a pool?” [laughs] We put the pool in.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We got too much money out of that other house that we had enough money to put a really nice pool out back there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh nice. That’s so wild. First house was $12,000. Do you remember what you turned it for?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Do you remember what you sold it for?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: 57?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Wait, 57?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Something. It was a lot.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You bought it for 12. You bought the next place for 28 and you sold the first one for 57?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was shocked that we got that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Dang. Nice work.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My husband…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It was the math in your head. That’s good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs] My husband was a smart guy.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Was he working at Credit Union then?&lt;/p&gt;
&lt;p&gt;Audience Member: Not yet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Anyhow…&lt;/p&gt;
&lt;p&gt;Audience Member: He would have came back when you bought that house.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;Audience Member: I had turned 16 when you bought it and he was already out of [inaudible 23:57] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was vice president at Navy Fit. No not Navy Fit. I’m in love with Navy Fit.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: He was with the Marine Corps. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He worked his way up at that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Now we’ll have a lot of memories about that house. Sorry, rewinding a bit. One of the things that was asked a bunch and I lost my place which is really discouraging because it was such a top notch tie in that I would’ve been proud of myself but I’m OK with not being proud of myself.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You’ll be proud now.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: One of the questions that we had was when this…I remember what it was. You have a lot of things that you studied and I was curious. I know you have a number of degrees and things. What was your favorite thing to have studied?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know if I’d say that I have a degree.&lt;/p&gt;
&lt;p&gt;Audience Member: Certificates.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah, certificates. Sorry.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was offered to go to college for free [inaudible 25:14] married that marine and have kids.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Anyhow, I don’t know. I don’t remember how to answer that question.&lt;/p&gt;
&lt;p&gt;Audience Member: Can we hear what you just said, because this is cool. She chose to get married but she had been offered a scholarship to study science and pretty much school for college but you said, “No, I’m good.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting. Tell me a little bit about that decision. What was the scholarship for?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Science.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Science. Broad science?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I guess because the family had this…My grandfather, all his daughters way back then all went to college. Which is unusual but he had enough money to do it too. Anyhow, I said, “No thank you.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Why so?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Because I was going to go meet my husband or I got married here. When he came back but no, I had already decided what I was doing with my life. It was a good one. A good choice&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Absolutely. I agree wholeheartedly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You wouldn’t be here.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know. Just poof. That whole thing kind of goes. There’s some tangential universe where you’re doing science and I’m not around.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: This is true.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know that you did study a lot of things at MiraCosta and I know…&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I liked MiraCosta. I took a lot of those classes after papa had passed away. I like taking classes over there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What were some of your favorite things to have studied over there?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The brilliant one that you love.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Hit me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was taking many other classes. Her mother came with me and we took a drama class, and then after that drama class was over the drama teacher had a puppeteer come in to teach us how to make puppets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: There we were. It was all good there and the other part that I liked was writing the scripts and stuff. Not that I ever knew I could write but I did.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That brings an obsession into your life from that point forward.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: A little. They had to fall in.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It’s like they were good puppeteers all along.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: This is the coercion thing that I was fascinated in a little bit earlier, but we’ll cover that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They didn’t have any choice.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: If you made them, then they had to.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: If I was in there with the puppet stage, and there were kids, I think they loved it, they were very good at it there was not a one that couldn’t do that and they take on the personnel of the puppet.&lt;/p&gt;
&lt;p&gt;Audience Member: There was one. One [inaudible 28:43] . She was at college.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: She was at college. It’s what I heard.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, that college kid. She invited us to come up and do puppets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: If you hadn’t gone to college, maybe there would be another better me.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: As we’ve learned, it’s very important there should’ve been more me, I think.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Or maybe, if you’d have come over, you did do puppets all good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I got in on that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I know you were there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I was coerced. I was coerced into the puppetry. What was it that enraptured you about the puppet, when you took the class, because when someone comes in and shows you how to this thing, but it doesn’t wash over you. You’re just like, “What?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, that was it. I was all for that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes, your calling.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah, because it had have had everything in it, you’d write scripts. I really liked to sew on stuff, so making puppets was a blast. Then the kids liked the puppets, and then, we made the walking puppets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I was talking with Jessica about those earlier.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: She soiled herself, with one those coming out of closet on her.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Little frightening.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Almost human, but not quite.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: There is a lot there. I guess that’s what I’m interested in, is you have puppets and it seems to pull in a bunch of your interests, the ability to write a narrative and a story, and to work collaboratively with a lot of people and all of these things.&lt;/p&gt;
&lt;p&gt;I know what I’m like, when I get obsessed with something…What did your space look like as you start going deep into puppeteering?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It looked like a cyclone when we were making puppets.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Fortunately, puppet was all courage and he did the sound and stuff because he did like those things. Everybody seemed to be interested and it was all fun.&lt;/p&gt;
&lt;p&gt;Audience Member: How did you convince Dad to be so obsessed, how did this whole thing go down?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: OK, now think about the fact that if I was doing something, would your dad support me in every way he possibly could.&lt;/p&gt;
&lt;p&gt;Audience Member: And you guys had taken a speech…&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was good with…&lt;/p&gt;
&lt;p&gt;Audience Member: You guys had taken a speech class together right, you and dad? You got the book for standard…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: …for writing, because I remember, you at the time you were doing a lot of work with church and churches in the neighborhood and you were working with youth groups and just sharing stories through this script writing process and whatnot. Can you tell me how you got in to that and what that looked like during this time?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It seemed an awful lot of fun and it’s with the wonders, they would invite me to come down with my troop, which I thought was a lot of fun I don’t know if they were annoyed or not, but it was fun. Anyhow, so much went into that and we worked with the youth group. That’s funny, I’ve got to go back to that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah, please.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The first puppets…Kids had some puppets. We had junior high and I decided that, instead of doing little skits I decided I’d have them do puppets. It was a fun.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was just kids’ puppets. There always had to be some skit coming. They did with the puppets, instead of just staying behind the stage. Anyhow, that was another funny thing to have done but we did that too.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: One thing that I can’t remember, who was it I was talking with, they mentioned this — I think it was with my mom — we talked about how when we were in Brazil and we are working with the kids down there and the puppets, that was the first time that I remember seeing people really catch on to your excitement for this.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: People in Brazil were fantastic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, my gosh they were nuts about it. Yeah, absolutely.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I guess there was one group that was way out. You probably know more about that now but I remember that they were so excited about this and they got their puppets and they were out in the fireplaces with those and they continued doing that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Like you were saying, they were amazing. What do you get excited to see when you take something like puppeteering to kids?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can tell you my best thing I’ve done recently.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had all my grandchildren come over and they all made puppets.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That was the coolest thing to have them…Your kids too.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Have all those kids over there and they were just excited about puppets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: There’s the puppet but is there something really excites you about what it means for people. Is it because certain people are able to get into it in a way that they weren’t able to, maybe, express themselves before, is it the creativity in the design of the puppet, that you get excited about? What’s the spark that you like seeing when you share puppet creation with people?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’ve got a lot of schools and taught the kids to do puppets. I really enjoyed that, because it’s something they’ve never had any association with. They did go home with their puppets, and that’s all good. I like doing that for a while but…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] I remember thinking how funny it was. Especially in Brazil, how funny it was…There was some people who wanted to get themselves into the puppet, and there were some people who just went the opposite direction. It was like they have the alter ego that was waiting in them to come out as manifested by this puppet.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s funny.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Do you have a favorite alter ego in the puppets that you’ve created?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: Oh, my gosh, yes. I think we know, so we’ll say, “One, two, three, Herc.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Herc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Herc? [laughs] Tell me about Herc.&lt;/p&gt;
&lt;p&gt;Audience Member: [inaudible 36:33] .&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: Is that a Lion?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;Audience Member: A lion?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: A lion.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Because you got…I don’t…OK. Describe Herc to me physically. Then we’ll talk about his characteristics.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Thank you, think I’m waiting. I think it was very big, really big. Big mouth. Looked like a lion.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: I think you took both of your hands to work it. [inaudible 37:09] It was a stuffed animal that you [inaudible 37:12] .&lt;/p&gt;
&lt;p&gt;Audience Member: It was.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I did.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s a stuff. OK.&lt;/p&gt;
&lt;p&gt;Audience Member: I won it. It’s not very fun for them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s right. You are so right.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Maybe you should come up and I should ask you how you feel about Herc.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You and the stuff on Colin’s.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I forgot about that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I could not [inaudible 37:40] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Tell me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colleen&lt;/strong&gt;: I won this giant lion at Knott’s Berry Farm. Our house is small. There is not room for a lion. This is big, it’s big as a human. It took a little bit, but she kept sneaking out of my room a little bit at a time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: One Piece of stuffing.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colleen&lt;/strong&gt;: Exactly. Why this is stink? Am so stink and skinny. Then all of a sudden, she’s by the puppet stage, and she’s got her hand in it, and she is telling the dumbest one-liners. She can’t even remember even…&lt;/p&gt;
&lt;p&gt;[off-mic comments]&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: “I’m just a lion lying around.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: How can you be mad at a mom for stealing your stuffed animal, unstuffing it, and then giving it that voice?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colleen&lt;/strong&gt;:: Oh, yes, “I’m not lying.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: “And I’m not lying.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Amazing.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: There you go.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colleen&lt;/strong&gt;: I’m brilliant, and to know that that sound intelligent…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colleen&lt;/strong&gt;: When I’m 85, you can interview me, and I’ll have a bigger story.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Bigger story about…&lt;/p&gt;
&lt;p&gt;[background conversations]&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What was it about Herc that you liked voicing so much? Was it that you had an opportunity to tell silly jokes, and be goofy and totally looney?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Exactly. It was just goofy. Should’ve named it Goofy.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I liked the lion. It was a funny lion, made me laugh. It did get all the jokes.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I like this idea that you’re puppeteering a lion, but it sounds almost like it’s possessing you.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then I wouldn’t have to write out the jokes.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: They wrote themselves?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, I said I had to write out the jokes. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, you did?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You can’t give that lion credit.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Do you have a joke or a puppet that you were most possessive about, like, “Nobody can touch this one. That one’s mine”?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can’t imagine.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: No?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No.&lt;/p&gt;
&lt;p&gt;Audience Member: Can’t imagine that.&lt;/p&gt;
&lt;p&gt;Audience Member: I never used Herc. Did anybody else?&lt;/p&gt;
&lt;p&gt;[background conversations]&lt;/p&gt;
&lt;p&gt;Audience Member: That’s true. None of us ever…&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Maybe you were embarrassed.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You were worried about what would happen if you used Herc, the jokes that would come out. It sounds like a very terrifying experience.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Maybe your quote’s my favorite. I don’t remember.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Seriously, I don’t remember, but I might’ve…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Herc was your…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …It was unique enough.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love that. [laughs] I love the simpatico of you and Herc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You were the author, of course. They have your name on it, but you co-writing these amazing dad jokes together…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Was with Herc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: With Herc, yeah.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We were working on it together.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: All right.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We’re all serious here now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] We got to rein it back in. This was a professional thing we were doing, and I don’t want to…&lt;/p&gt;
&lt;p&gt;Audience Member: Can you have her tell us about her coding experience?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, yeah. Mom would like to know about your coding experience. That was one of the things that you studied at MiraCosta, I understand.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes. It was interesting. There was one seriously big building that was the guts of the thing. You had to work in another building to do your typing in, and you’d send it over to the building. It was bizarre.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: The computer building?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah. That’s where they poke the…I don’t know what you call it now, poke the holes. Anyhow, it was weird.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I remember so much of my interest in the actual use of computers was guided by you and your fascination with computers. I remember ruining our first computer…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: …and you coming and trying to fix it. My dad didn’t know anything about computers, and you were trying to help us out and fix that. All the games that you would have, and you’d have printer, like the dot matrix. You’re always printing out “Happy birthday” banners for people.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was a nerd. What are you going to do?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love it. Those are very formative memories for me about the joy of computer science, the creativity that came from being able to make this tool do something that you felt expressed you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I like being able to do that. I didn’t have to try to write it out. You could get on the computer.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can do that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I want to make sure that we get to some of these questions. I’m going to shift gears a little bit. These are in no particular order, but we’re going to knock them out as best we can. Your son, Cliff, asks what your earliest memory is.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My earliest [laughs] memory…&lt;/p&gt;
&lt;p&gt;Audience: [inaudible 43:26] chicken coop…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Pardon?&lt;/p&gt;
&lt;p&gt;Audience: …being run over by bikes, being run over by car…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Being run over by bikes, being run over by cars but younger than…&lt;/p&gt;
&lt;p&gt;Audience Member: Electrocuting yourself?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;Audience Member: Peeing on something and electrocuting yourself?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: All those things.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Wait, hold up.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You electrocuted yourself by peeing on something?&lt;/p&gt;
&lt;p&gt;Audience: Barbed wire.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Barbed wire.&lt;/p&gt;
&lt;p&gt;Audience: Not barbed wire, electric wire.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Electric wire.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It would have had to been a bad cord.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Wait. How does this happen?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know. I was a baby running around in my diaper.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You were a baby.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: This wasn’t like, “I wonder what would happen if I peed on electrical wire?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No. I’m sorry. I was very not that.&lt;/p&gt;
&lt;p&gt;Audience Member: Do you remember that, or is that something you were told?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Remember, it’s a story that I know. It’s probably always been in there.&lt;/p&gt;
&lt;p&gt;Audience Member: She and her brothers were known as the spring brats.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: The spring brats?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh yeah.&lt;/p&gt;
&lt;p&gt;Audience Member: They used to ride over her with their bicycles because they dared her to lay on the street. She always would take a dare.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’d take the dare.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Always.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Always.&lt;/p&gt;
&lt;p&gt;Audience Member: Always.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Not anymore.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Really? Just in case it didn’t get picked up. You always had to take a dare. [laughs] What were some of the most ridiculous dares that you had to say yes to?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Nothing much more than getting ridden over by bike. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Nothing much worse than getting ridden over by a bike.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, I’m saying, nothing more dramatic than that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s funny. l wonder…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I didn’t put up with anything from anybody.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I believe it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was a mean, tough kid. I seriously was.&lt;/p&gt;
&lt;p&gt;Audience Member: Please tell us more about that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Thank you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s funny because I, up until recently, after maybe putting my health at risk, could not say no to a dare either.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’m curious. If I dared you right now…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Go ahead.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Now your obstinance has shifted gears, like, “I don’t have to prove anything to you.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It’s true. When I was a kid, I was terrible brat.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I shouldn’t go on with that.&lt;/p&gt;
&lt;p&gt;Audience Member: No, you shouldn’t.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You could. What were…?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Here’s the deal.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: There we go. That’s it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My brother had asthma very bad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s a great story.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The next brother…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Wait. The next brother was a nice kid.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Weak.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was the youngest.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: If they dared me to do something, I was going to do it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We had many a scraps on the way to school, in the snow, whatever. I would take them down.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It’s always boys. I certainly wouldn’t deal with a girl. The biggest purpose for that…My littlest brother, we were coming home from the movies and this big kid tried to hit him with a bat. There I was, in the snow, waiting for him to go to school.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was pretty big, but I beat him pretty bad. Ended up waiting for the principal. He got [inaudible 47:18] and terrible happened to him.&lt;/p&gt;
&lt;p&gt;Audience Member: Your little brother was actually bigger than you, was older than you?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, no, no. This is David, Little David. Anyhow, he didn’t do anything. I was a little teeny girl killing this kid. I needed it. [laughs] It was all right. It was cool. That was my reputation.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: If they needed to be taken out, because I was a girl, I would take them out. If they needed it. Only if they did something like that, like they did with my brother.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How many people would you estimate you took out?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Innumerable. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Innumerable?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: A lot.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Wow. That’s cool. You’re the enforcer. This is a daily thing, then.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, not that. Probably once a week, maybe.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Once a week.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Maybe every other week. Only if somebody did something way out of line.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: Once a week.&lt;/p&gt;
&lt;p&gt;Audience Member: They actually take them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You take them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Wow.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Maybe you all missed this. My father, because it was the years when there was no work, he became a boxer. I wanted to be a boxer. I followed in his steps and learned from him how to do these things.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Street boxing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What’s the worst thing that you ever did to one of these kids?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t think I ever did anything that they didn’t deserve.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That doesn’t answer the question, though. Let me rephrase. What offense deemed the worst punishment?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Like the kid that hurt my brother? I get down in the snow and pound them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;Audience Member: What was that? You get down in the snow and what?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Pounded them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Pounded them out. Kneaded them like bread.&lt;/p&gt;
&lt;p&gt;Audience Member: I was asking her the other day what she liked to do when she was a child. She did say she [laughs] liked to fight. I’m pretty sure, every offense — it didn’t matter what the offense was — it was the same result of…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: …punishable by death.&lt;/p&gt;
&lt;p&gt;Audience Member: …take them out.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: It was all…&lt;/p&gt;
&lt;p&gt;Audience Member: She’s a girl. There was no punishment.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Like a vigilante, you’re like the Dark Knight.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had the encouragement of my brothers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, I’m sure. They were like, “Watch my sister. She’s going to take out so many people. It’s amazing.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Here’s the beauty of this. My brother Tommy was a big buff. He looked like a football player. He had asthma so bad, he couldn’t do anything. That was convenient. They have him stand by because they had a second fear.&lt;/p&gt;
&lt;p&gt;Audience: Oh.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah, which is great because then he doesn’t have to risk the asthma and then get beat up the next time. That’s awesome.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He wouldn’t have let them hurt me. It was OK.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It sounds real OK.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I had a lot of fun. I was mean. I’m sorry.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s good. Some things are coming into perspective, though.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’m sitting here. I’m like, “OK. Maybe it comes from that side of the tree.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: It’s a funny story. [inaudible 51:37] . One time, Cliff was at the house. He came upon them, and she didn’t know he was there. He loves the story because she immediately took this strong stance, like, “I’m going to take you out.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I didn’t know who it was. What was he doing in my house anyhow?&lt;/p&gt;
&lt;p&gt;Audience Member: Probably 20 years ago, so it was a long time ago.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;Audience Member: She didn’t get scared that there was a man in the house. She stepped back, and her hands went up.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: About to pound you out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know if I have the energy anymore. Who’s going to support me?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I have asthma. I’m just here to watch.&lt;/p&gt;
&lt;p&gt;Audience Member: Explains why you were so brave taking the bus from Ohio to Sacramento.&lt;/p&gt;
&lt;p&gt;Audience Member: That’s true.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Pardon me?&lt;/p&gt;
&lt;p&gt;Audience Member: You took the bus from Ohio to Sacramento.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Why not?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’ll tell you, I could have pounded somebody out on that trip.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: Was there someone?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The bus driver.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: What did he do?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was done with his thing new one whatnot, and he wanted me to stay and go to the whatever the heck was going on there. I had to pound him out.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah. Better pound him out. That’s getting a T shirt.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Just wearing those for sure. We’re going to make them look like those gaming kids’ ones except they just say, “Better pound him out.”&lt;/p&gt;
&lt;p&gt;Audience Member: Or the grey pants. I’ve to wear them.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Good stuff. So many questions, so we’re going to carry on. Cliff also asks, “What do you remember of your parents when they worked together?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My mother was a hot-headed redhead. My dad [inaudible 54:17] . She would [laughs] take a cover.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Anyhow, she was overprotective of us and under-protective of my dad.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Nobody was supposed to touch us ever. We were perfect. Do you believe? [laughs]&lt;/p&gt;
&lt;p&gt;Audience Member: …which leads into the story of kindergarten.&lt;/p&gt;
&lt;p&gt;Audience Member: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I went to kindergarten, and somebody behind me cut my hair.&lt;/p&gt;
&lt;p&gt;Audience Member: No, pulled your hair.&lt;/p&gt;
&lt;p&gt;Audience Member: No.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: What was the other one?&lt;/p&gt;
&lt;p&gt;Audience: Dipped your hair…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …in the ink. I knew it was my hair.&lt;/p&gt;
&lt;p&gt;Audience Member: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Someone dipped your hair in ink.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My mother was appalled, red-headed Irishwoman.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Did she pound that kiddo?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t have to go to school.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: You didn’t go back to school? What, you didn’t go to kindergarten ever again?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Nice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I didn’t need it. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You already have the math in your head. It was good. Natalie asks, “What are your favorite places that you’ve traveled?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We were talking about that day. I loved up in New Hampshire.&lt;/p&gt;
&lt;p&gt;Audience Member: New England.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;Audience Member: The New England area.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The New England area, that whole area. I don’t know whether it was one or two different trips that were so nice. I don’t know. Anyhow…&lt;/p&gt;
&lt;p&gt;Audience Member: They were both nice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was lovely. Beautiful.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: We’ve answered this one, but Anaya asks, which I feel like this is a good corollary, what you were like as a kid.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Don’t answer that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Do not answer that to her.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’ll send the last section to her.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;[background conversations]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s what I was thinking, that that little girl can take anybody out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] Hartley asks when you first drove a car, and what that car was.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It was annoying.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know. I might’ve had three kids by then, but…&lt;/p&gt;
&lt;p&gt;Audience Member: I was with you [inaudible 56:44] . [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Which one?&lt;/p&gt;
&lt;p&gt;Audience Member: When you had to get somebody from school and you didn’t know how to drive a stick, that’s all there was. I remember getting in the car with you…&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Silly little girl.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: What, I was probably nine?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Possibly, but that was probably the right story.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I shouldn’t be driving.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] Mom asks, “You’ve made a lot of meals in your time as a mother. What was your favorite thing to make?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That is so hard to think of. So many things. I don’t know if I can think of one particular thing. We were talking about that flank steak with the stuffing in it in the pan, and then I’d take the bell…&lt;/p&gt;
&lt;p&gt;Audience Member: Round steak and red gravy. You called it round steak and red gravy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then, we’d have bell peppers — unfortunately, they only had yellow back then, or the green — and stuffed those with the rice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can’t remember what else. Anyhow, that was good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Round steak and red gravy, you said? That sounds good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That was all in the pan, and then that stuff was pretty good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I love it more now that you got the other color of bell pepper.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] The other color peppers?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I love the bell peppers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s not going to be round steak and orange gravy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I only eat the rice out, because I didn’t like the peppers.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Mom continues you and Dad were super young and didn’t have much when you started out. You told me stories about you eating ketchup for dinner and washing your hair with dish soap or something like that. You two love birds were survivors. What were some creative ways you stretch a dollar?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know we were talking about that. Fortunately, we lived on Camp Hamilton and they had a truck that came by that would credit you. Of course we were careful about that runover or you would have to be paying it off with your income. We were very thrifty with that.&lt;/p&gt;
&lt;p&gt;Pop, could’ve gone to the basement and eaten it anytime. I mean that was his privilege. If we didn’t have stuff at home he would not let me sit there I would have just ketchup.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It didn’t happen that often, we were careful, but it would happen.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What do you think was the most important aspect of your relationship together that made it all work?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I put him first he put me first simple as that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Love it. A hundred percent both ways?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yep.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s good, that’s good stuff. Mom asked, she says you and dad were always a good team. What were your favorite projects that you guys worked on together?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The kids.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh wait no, she actually continues, “Besides raising your awesome kids of course.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: OK. Read the whole thing again.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: OK, you and Dad were always a great team. What was your favorite project you worked on together besides raising your awesome kids of course?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, I see that’s different [inaudible 60:44] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know, I skipped the first part because I just thought maybe that wouldn’t be your answer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The only time that I could…The few competitions there, but the time that I could think of that was really boring was… Where were we stationed in the desert?&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [inaudible 61:07] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They did have a place where you can paint pottery and stuff. We loved doing that. Ceramics and stuff.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Clay and latte type of thing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: She’s got the other answer because, then I painted something and then he never painted either. He painted something and then I painted something and I’ve got some of those at the house.&lt;/p&gt;
&lt;p&gt;Audience Member: Very cool. Also [inaudible 61:41] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, yeah. He’d win. He never made a crust in his life and he made a crust. It was like, “OK, this is enough of this. You got to make the crust. You can’t get credit for that.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, you would make pies together but he would never help with the crust.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Right. He would put them in with the men’s competition and he always won because he had delicious pies.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: This would be like Herc taking credit for your jokes.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, I didn’t think the crust was that important it just there came a time where he learned to make the crust.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You’re a grown ass man.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Exactly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know what you’re talking about. Yeah, make the crust man.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You just do it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He did and he won.&lt;/p&gt;
&lt;p&gt;Audience Member: How did you help dad with fixing cars?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: With what?&lt;/p&gt;
&lt;p&gt;Audience Member: Fixing cars.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: How did you help Dad with fixing cars?&lt;/p&gt;
&lt;p&gt;Audience Member: You had one particular job whenever you helped dad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I can’t remember what it is.&lt;/p&gt;
&lt;p&gt;Audience Member: You were the grunter.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What’s a grunter?&lt;/p&gt;
&lt;p&gt;Audience Member: I would say he held the flash light.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: All right, so Brian asks what was your favorite activity to do as a child? I think we answered this one already, but…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: …if you have a different answer…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Getting into trouble.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Pounding them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Being naughty.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I just put, “pounding ‘em out” down here.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Do you have a favorite age and stage of life?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think when I was raising my kids.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Raising the kids? When you had all of them are before John?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You’re bad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I know, but now I know where I get it from.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Without John, there wouldn’t have been any challenge. Look at him now, come on.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You just had to pound them out.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: No, he was busy pumping.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You always have had great hair and skin. Do you have a secret?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Say that again?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: You’ve always had a great hair and skin. Is there a secret to this or just comes naturally like math.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: There you go.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Math, hair, and skin.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’ve done very little, to do anything about it, except I wash. That’s good. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: What else do I do? I don’t…&lt;/p&gt;
&lt;p&gt;Audience Member: What do you always wash with?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Caress.&lt;/p&gt;
&lt;p&gt;Audience Member: [inaudible 65:02] caress?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Caress. White caress. Now I remember, yours is the only house I’ve ever seen Caress in, but it’s everywhere.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The thing is, my hands would crack and be yucky and Caress seems to be the answer. How many years have I been using Caress without any problems?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I think you’re keeping them in business.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’m trying hard.&lt;/p&gt;
&lt;p&gt;[background noise]&lt;/p&gt;
&lt;p&gt;Audience Member: No sponsor.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: She would just put on some lipstick and she was good to go.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Lipstick and good. Uncle Linus. When did you know you were in love with Pap and how did he win your heart?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I hate to tell you this. This is so shallow. That blue uniform, man.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: He was one good looking Marine. I got to tell you that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: If you got to use it. Right?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I got him.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I like it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: We did a lot of writing in between. It wasn’t…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Average writer, right?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Average writer.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’m just saying there was time between to communicate rather than just the blue uniform.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Was there a point where you wrote the letter real, “Look dummy, you’re going to have to make another appearance because I need to see you in the suit. If we’re going to keep this thing going?”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You’re silly.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I had to ask. Just trying to be thorough, is all. Do you have a favorite movie that you remember?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah, but what could I think of?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I did have a lot of favorite movies.&lt;/p&gt;
&lt;p&gt;Audience Member: You loved Joe Versus the Volcano.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t remember Joe.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Why would I like Joe Versus…&lt;/p&gt;
&lt;p&gt;Audience Member: Is there a movie star you were in love with as a teenager?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t remember.&lt;/p&gt;
&lt;p&gt;Audience Member: John Wayne.&lt;/p&gt;
&lt;p&gt;Audience Member: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: John Wayne.&lt;/p&gt;
&lt;p&gt;Audience Member: Paul Newman was really a heart throb of hers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Paul Newman, he’s good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That was a little later and I was a little more very much into my husband, and not into Paul Newman. I think John Wayne was just something else.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: John Wayne and a blue uniform that would have…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They wouldn’t let him in.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’d be too much.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I hear you. I’m modifying this question a little bit, but I have so many memories of, the giant burrito, the giant chocolate bar, what is it about the giant?&lt;/p&gt;
&lt;p&gt;Audience Member: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: If you have as many kids at your house all the time, you need the giant burrito.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I remember the giant chocolate bar being for you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t remember the giant. I don’t remember a giant bar.&lt;/p&gt;
&lt;p&gt;[off-mic comments]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh, yeah. Thanks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I was gaining weight. I always just weighed what I weighed and then I would ski and you get to this huge chocolate bar.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That’s sweet.&lt;/p&gt;
&lt;p&gt;Audience Member: What did I say to you, mom?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs] Since am not eating it.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’ve got enough trouble. Then I did eat the chocolate bar.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Of course, you can’t have chocolate in the house and not eat it&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I love chocolate.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Do you have a favorite chocolate or just if there’s chocolate in it, “I’m game.”&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Pretty much. I would go with…Sometimes I just love pure chocolate, but the other way too. Anything that’s chocolate.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] “I’m good. Bring them my way.” Mom says you had a ton of creative endeavors making a lot of dresses, outfits, gardening, all kinds of things. Did you have an item that was the biggest challenge in your creation? In seams of string or puppetry or whatnot, that you had to overcome?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think puppetry came easy. I’m more of those…&lt;/p&gt;
&lt;p&gt;Audience Member: You made a suit for dad.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Huh?&lt;/p&gt;
&lt;p&gt;Audience Member: You made a suit for dad. That seemed like a challenge.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Did I?&lt;/p&gt;
&lt;p&gt;Audience Member: Yes. [laughs] [inaudible 70:15]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I am good.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Oh my goodness.&lt;/p&gt;
&lt;p&gt;Audience Member: It was a really nice suit.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;Audience Member: What about the turkey?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs]&lt;/p&gt;
&lt;p&gt;Audience Member: We really struggled with the turkey.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The Turkey. We had a puppet that…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: The Turkey puppet was the one that almost did you in.&lt;/p&gt;
&lt;p&gt;Audience Member: Somebody commissioned it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: OK.&lt;/p&gt;
&lt;p&gt;Audience Member: Somebody commissioned the Turkey. They wanted you to build them a turkey.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I said, “Too much money has gone in here, you can’t really afford this turkey.”&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I would let him use it whenever he wanted. I couldn’t see…&lt;/p&gt;
&lt;p&gt;Audience Member: It was…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …him having to pay that much money for…&lt;/p&gt;
&lt;p&gt;Audience Member: …very elaborate. They’d let him see it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I still got it.&lt;/p&gt;
&lt;p&gt;Audience Member: You have it and what did you do with it?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It’s in the little trailer.&lt;/p&gt;
&lt;p&gt;Audience Member: Huh?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: It’s in the trailer?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think it’s in the little…&lt;/p&gt;
&lt;p&gt;Audience Member: What did you…&lt;/p&gt;
&lt;p&gt;Audience Member: You made Colleen wear it.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;Audience Member: …wear it.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, this is a Colleen-size turkey.&lt;/p&gt;
&lt;p&gt;Audience Member: Oh, it’s a whole person…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I have some forbidden memories around the turkey.&lt;/p&gt;
&lt;p&gt;Audience Member: My new technique is to use the turkey to win costume contests.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, nice. Nice.&lt;/p&gt;
&lt;p&gt;Audience Member: [inaudible 71:38] me who wore the turkey for Halloween a few years back.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Oh, it’s still around?&lt;/p&gt;
&lt;p&gt;Audience Member: Yeah.&lt;/p&gt;
&lt;p&gt;Audience Member: Yeah.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Excellent. That’s not scary at all.&lt;/p&gt;
&lt;p&gt;Audience Member: No, not terribly.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: We have a few questions.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: They won’t eat them up. They’d gobble, gobble. They’re safe.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: We have a few questions left. What is your favorite Bible verse and why?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Hard question.&lt;/p&gt;
&lt;p&gt;Audience Member: Remember, you told me when we were blocking for this?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah, that was on that…I prayed for John all the time.&lt;/p&gt;
&lt;p&gt;Audience Member: Yes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Jeremiah 29:11.&lt;/p&gt;
&lt;p&gt;Audience Member: Yes. What is it?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know, say a word, just a minute.&lt;/p&gt;
&lt;p&gt;Audience Member: Something about plans.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I know the plans I have for you, plans to prosper, not to harm you. It was for Cliff, and look at him now. It’s a miracle.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yeah. [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Cool.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What was the hardest thing for you in going through that transition and having to depend on God to raise Cliff up?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: What was the first part of that question?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: What was the hardest part for you in actually going through this transition and living Jeremiah 29:11?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I believed he was going to come through. I would go visit him, and take the kids with him. That really worked for him, because he loved babies.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: That hope?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: The hope and the belief that God could make that happen, and he did. [laughs] Now, he’s preaching to me.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: With 85 years on the board, what do you think is the most important thing for someone to find to have a good life?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You’re saying an 85-year-old, how do they find…?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: No.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I hope that you’ve found it.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: With 85 years of life, I’m curious, for someone who’s trying to figure life out right now, what’s your recommendation on how to get the good life? How to find happiness. How to get the things that you’re after in life.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I’m pretty content with what I got.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Contentment?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Yeah.&lt;/p&gt;
&lt;p&gt;Audience Member: Somebody’s asking if you have advice for all of us, being older and wiser than the rest of us. You’re saying find contentment?&lt;/p&gt;
&lt;p&gt;Audience Member: Be content?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Be content, yeah.&lt;/p&gt;
&lt;p&gt;[background conversations]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I said be content. The way I approach life is to be content. I know that God’s going to take care of it, and I try not to make it seem like, “Ugh, misery.” [laughs]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Whether it’s the…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I enjoy life, mostly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Just have fun with it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I don’t know, I could live another 10 years, another two minutes. I don’t know.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I have one last question, and this one’s for me. I saved my question for last. What is it that you get most excited by in other people? Whether it be someone that you just met or someone that you’ve known for a long time, what’s something that you see in other people that gets you going?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: A lot of instances, it’s if they’re not a Christian and become one. That would be the main thing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: A belief in God?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Uh-huh, because then, they’d have the peace that I have. Although sometimes, I’m Screwy Louie, but…&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: …I do have peace, and I would like to see other people to be sure of what life is like.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I like that. Finding the common ground that you like to find with people is that contentment. The only place that you’ve found it is hope and God, because life can just be too nutty.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: It is too nutty sometimes.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I love that. Is there anything that you want to say that I didn’t ask about that you’d like to share before we end?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: [laughs] I don’t know. We had a good time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: We had a great time.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think you covered as much as I think I could cover.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] Good. Awesome. I like to hear that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I enjoyed you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Thank you. I enjoyed chatting with you. Thank you for this time.&lt;/p&gt;
&lt;p&gt;[applause]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You’re welcome. [inaudible 77:20] .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: [laughs] Happy birthday.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Thank you.&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;Audience Member: …has a question. She wants to know what’s your favorite animal is, and your favorite color?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: My favorite color is green. My favorite animal? I like drawing horses.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Horses? OK.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I did. I can’t draw anymore.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s the thing. I like drawing trees and horses.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I will ask one follow up to the animal thing. Ruby asked me this today when I was getting all this stuff set up. Would you rather be an animal or a robot?&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s interesting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: I’d agree.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I think she’s adorable.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Then I would rather be an animal.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: An animal?&lt;/p&gt;
&lt;p&gt;Audience Member: A nice animal. Maybe a puppy dog.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: OK puppy. Does it have a breed, or?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I tend to like German Shepherds. I have one.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: A nice German Shepherd. I like that.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: All right. I think we covered it all. Thanks, Jamie. Happy birthday.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: I thought that was going to be horrible.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;[crosstalk]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: You laughed with me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Of course.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: That’s what did it. Like somebody’s going to come and drill you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: No. I don’t drill. I just like to talk with people.&lt;/p&gt;
&lt;p&gt;[laughter]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Thank you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Of course. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: Excellent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Excellent. I agree.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gammy&lt;/strong&gt;: A little silly at first.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Michael&lt;/strong&gt;: Yes. I enjoyed getting to hear so many stories. That was…&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Chan Spot</title><link>https://chan.dev/chan-spot</link><guid isPermaLink="true">https://chan.dev/chan-spot</guid><description>He spent 15 minutes circling for a parking spot 3 lines from a blue line. My dad wasn&apos;t in a hurry. He just had to get ahead.</description><pubDate>Mon, 19 Oct 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;He spent 15 minutes circling the parking lot for a “Chan Spot” — a space within 3 lines of a blue line.&lt;/p&gt;
&lt;p&gt;Now it’s time to check out out and he distributes his three children across the open lanes — where they wait for judgement on the eternal question:&lt;/p&gt;
&lt;p&gt;Which lane moves fastest?&lt;/p&gt;
&lt;p&gt;It’s a complex formula.
Age,&lt;br /&gt;
Payment method,&lt;br /&gt;
Cashier fluency,&lt;br /&gt;
Number of items,&lt;br /&gt;
Variation in items…&lt;br /&gt;
But with the kids — well — those factors dissolve.&lt;br /&gt;
Just stick one in and see how it rolls.&lt;/p&gt;
&lt;p&gt;As “those kids,” my brothers and I prayed for the ideal outcome: wait in awkward silence as two sets of strangers decide if you’re lost. Get the all clear. Then run back to dad’s lane.&lt;/p&gt;
&lt;p&gt;The other case was less pleasant. Dad drifts the corner with a full cart of groceries and shimmies between the strangers before and behind you. You unload as the mood falls from concern to outrage.&lt;/p&gt;
&lt;p&gt;Don’t get me started on on air travel…&lt;/p&gt;
&lt;p&gt;My dad wasn’t in a hurry.
He’d say he was but wasn’t.
If he had been, he’d have saved time on “Chan Spot” — parking an unfathomable 10 spaces from a blue line and getting into the store 12 minutes faster.&lt;/p&gt;
&lt;p&gt;He just had to get ahead.&lt;/p&gt;
&lt;p&gt;He loved creating a scenario where the outcome — however banal — made him feel like a champ.&lt;/p&gt;
&lt;p&gt;I have more important battles to battle than those against unwitting strangers at the supermarket.&lt;/p&gt;
&lt;p&gt;You do to.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;This memory, inspired by &lt;a href=&quot;https://amzn.to/3keerys&quot; target=&quot;_blank&quot;&gt;The Art of the Good Life&lt;/a&gt; (AmazonAffiliate).
&lt;a href=&quot;https://chan.dev/the-art-of-the-good-life/#1-mental-accounting&quot; target=&quot;_blank&quot;&gt;Chapter 1: Mental Accounting — How to Turn a Loss Into a Win&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Would You Mind?</title><link>https://chan.dev/would-you-mind</link><guid isPermaLink="true">https://chan.dev/would-you-mind</guid><description>Negative confirmation questions can be confusing. Use clear language, even if overly polite, for better understanding in communication.</description><pubDate>Wed, 09 Sep 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;“Would you mind opening the door?” — asks a walking box&lt;/p&gt;
&lt;p&gt;“Yeah. I mean, no… Yes, I will open the door and no, I don’t mind doing it” — I stammer back an a panic as the box waddles past — indifferent to my struggle&lt;/p&gt;
&lt;p&gt;I hate negative confirmation questions
I feel like it creates two jobs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the door&lt;/li&gt;
&lt;li&gt;Solve this verbal riddle&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Who’s happy with this?
I’m not
The walking box doesn’t seem bothered&lt;/p&gt;
&lt;p&gt;I can’t deal
So I say obnoxious shit like “could I trouble you to hold the door?” — which feels like an assault of unnecessary politeness
But folks know how to answer concisely
And I like that&lt;/p&gt;
&lt;p&gt;💬 chan&lt;/p&gt;
&lt;p&gt;What’s something you do that’s shrouded in awkward intentionality?&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Listen</title><link>https://chan.dev/listen</link><guid isPermaLink="true">https://chan.dev/listen</guid><description>Amplify Black voices and take action; now is the time to listen, learn, and contribute to the fight against systemic racism and injustice. #blacklivesmatter</description><pubDate>Wed, 03 Jun 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I started this letter the way I started every letter — with something honest about me&lt;/p&gt;
&lt;p&gt;I tried to relate my experience of growing up with an immigrant dad to what’s going on today&lt;/p&gt;
&lt;p&gt;It was a stupid exercise&lt;/p&gt;
&lt;p&gt;I can’t understand the depth of Black suffering&lt;br /&gt;
I don’t see half-Asians regularly murdered by police&lt;br /&gt;
I don’t have to daily overcome centuries of systemic racism&lt;/p&gt;
&lt;p&gt;So — this week — my job isn’t to be relatable.&lt;br /&gt;
My job is to listen, trust lived experiences, and respond with compassion and partnership&lt;/p&gt;
&lt;p&gt;I encourage you to listen to Black voices,&lt;br /&gt;
&lt;a href=&quot;https://twitter.com/saronyitbarek/status/1266558160338325504&quot; target=&quot;_blank&quot;&gt;Check in with and support Black friends&lt;/a&gt;,&lt;br /&gt;
&lt;a href=&quot;https://bookshop.org/lists/antiracist-reading-recs&quot; target=&quot;_blank&quot;&gt;Buy antiracist literature&lt;/a&gt;,&lt;br /&gt;
And Donate to &lt;a href=&quot;https://support.eji.org/give/153413/#!/donation/checkout&quot; target=&quot;_blank&quot;&gt;Equal Justice Initiative&lt;/a&gt;, &lt;a href=&quot;https://secure.actblue.com/donate/ms_blm_homepage_2019&quot; target=&quot;_blank&quot;&gt;Black Lives Matter&lt;/a&gt;, and the &lt;a href=&quot;https://www.gofundme.com/f/georgefloyd&quot; target=&quot;_blank&quot;&gt;George Floyd Memorial Fund&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;#blacklivesmatter&lt;/p&gt;
&lt;p&gt;✊ chan&lt;/p&gt;
&lt;p&gt;PS
Let me know what you donate and I’ll match.&lt;br /&gt;
I have about $1000 left to give this month and will handle any remaining matches in the coming months&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Coordination</title><link>https://chan.dev/coordination</link><guid isPermaLink="true">https://chan.dev/coordination</guid><description>Reflect on coordination in teamwork, its importance, challenges in software development, and the value of past experiences in shaping one&apos;s career.</description><pubDate>Wed, 27 May 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I outed myself as a choir kid on &lt;a href=&quot;https://kentcdodds.com/chats-with-kent-podcast/seasons/03/episodes/michael-chan-teaches-you-how-to-break-into-the-industry&quot; target=&quot;_blank&quot;&gt;Chats with Kent&lt;/a&gt; this month&lt;/p&gt;
&lt;p&gt;With nervous honesty, I confessed that my favorite human achievement is coordination and that I’ve never experienced it in software development.&lt;/p&gt;
&lt;p&gt;Choir, orchestra, The Rolling Stones, Beyoncé’s Single Ladies, a Destiny fire team where players lead, follow, partner, and sacrifice themselves at in unity…&lt;/p&gt;
&lt;p&gt;I love teams for their ability to hit harder, go farther, and be more than an individual&lt;br /&gt;
But that more requires humility, partnership, and trust&lt;/p&gt;
&lt;p&gt;I made a big mistake in my transition to software development.
I overestimated the software engineer’s natural ability to coordinate.
I underestimated the their ability to identify the sabotage of self-interest and I overestimated the technical manager’s ability to coach away outbursts of unhelpful self-expression.&lt;/p&gt;
&lt;p&gt;As someone who believes in team,&lt;br /&gt;
I thought coordination was something engineers just needed to see more of to understand.
But I was wrong; I don’t think it’s in the archetype.
And I’m wondering if it’s time for something new.&lt;/p&gt;
&lt;p&gt;🤔 Chan&lt;/p&gt;
&lt;p&gt;What experiences did you have in your former lives that you miss in your current career?
Think you can find it?&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Teach Your Kids Mixology</title><link>https://chan.dev/teach-your-kids-mixology</link><guid isPermaLink="true">https://chan.dev/teach-your-kids-mixology</guid><description>Teach kids to make mixed drinks. Start with a citrus tradition, add bubbly, and let them create a celebratory drink for Mother&apos;s Day. Enjoy responsibly!</description><pubDate>Wed, 13 May 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I taught my kids to make mixed drinks for Mother’s Day
If you have kids and want the same, here’s what I did:&lt;/p&gt;
&lt;h2&gt;Start a citrus tradition&lt;a href=&quot;#start-a-citrus-tradition&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Make orange juice a Sunday morning todo
Fresh squeeze it. Store buy it. It doesn’t matter
Just have it&lt;/p&gt;
&lt;h2&gt;Add bubbly on special occasions&lt;a href=&quot;#add-bubbly-on-special-occasions&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For birthdays and milestone events, add bubbly to this Sunday citrus tradition&lt;/p&gt;
&lt;p&gt;Use proper glassware&lt;/p&gt;
&lt;p&gt;Kids get sweet bubbles
Adults get dry bubbles&lt;/p&gt;
&lt;h2&gt;Seed the question for Mother’s Day&lt;a href=&quot;#seed-the-question-for-mothers-day&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Hey kids, tomorrow is a special occasion — Mother’s Day&lt;br /&gt;
What drink can we make to celebrate mom?&lt;/p&gt;
&lt;p&gt;You’re off to the races now
Citrus and alcohol is the start of every great mixed drink&lt;/p&gt;
&lt;p&gt;🍾 chan&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Disclosure:
This is terrible advice where substance abuse is a concern
Be your own responsible adult&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Mentions</title><link>https://chan.dev/mentions</link><guid isPermaLink="true">https://chan.dev/mentions</guid><description>I&apos;m watching Rise of Skywalker with my 9yo and he&apos;s freaking out that Chewie got his medal and I&apos;m thinking about Twitter mentions.</description><pubDate>Sun, 10 May 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m stressing out about mentions&lt;/p&gt;
&lt;p&gt;I’m watching Rise of Skywalker with my 9yo&lt;br /&gt;
He’s freaking out that — after 6 movies — Chewie “finally got his medal” and I’m thinking about twitter mentions&lt;/p&gt;
&lt;p&gt;I’ve heard that “once you pass 10k followers, you lose control over mentions”&lt;br /&gt;
You mentions join the timeline as a stream of information that’s constantly running by you&lt;/p&gt;
&lt;p&gt;It sure feels true&lt;/p&gt;
&lt;p&gt;I’m no social influencer&lt;br /&gt;
If you saw my mentions for a day you’d probably think “yo, I could knock these out over lunch”&lt;/p&gt;
&lt;p&gt;I’m sure you could&lt;br /&gt;
But I can’t — I like lunch&lt;/p&gt;
&lt;p&gt;I like leaving my phone in the car when out to dinner&lt;br /&gt;
And most nights, I turn my phone (literally) off between 9pm and 9am
I enjoy the full spectrum of in-person interaction and I hate what social has done to that&lt;/p&gt;
&lt;p&gt;So, why am I stressing out about mentions?&lt;/p&gt;
&lt;p&gt;I promised myself that I’d be the guy who responds earnestly as positively to everything I could&lt;br /&gt;
If some is kind enough to engage, I should be kind enough to reply&lt;/p&gt;
&lt;p&gt;I still believe that&lt;br /&gt;
But this silent rule has been hurting me for months&lt;br /&gt;
It’s keeping me from writing what I want to write, sharing things I that believe are helpful, and giving my full attention to life’s great moments (Chewie’s medal)&lt;/p&gt;
&lt;p&gt;Nothing good last forever&lt;br /&gt;
We had a good run, mentions
But I’m letting you go&lt;/p&gt;
&lt;p&gt;I’m sorry if my silence makes you feel snubbed — That’s never my intention&lt;br /&gt;
I just have things to create and moments to savor&lt;/p&gt;</content:encoded><category>life</category><category>content</category></item><item><title>But that shit ain&apos;t the truth</title><link>https://chan.dev/but-that-shit-aint-the-truth</link><guid isPermaLink="true">https://chan.dev/but-that-shit-aint-the-truth</guid><description>Jules reevaluates his identity in Pulp Fiction, admitting he&apos;s the tyranny of evil men, striving to change and become the shepherd.</description><pubDate>Wed, 06 May 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;It’s my favorite cinematic transformation…&lt;/p&gt;
&lt;p&gt;Ringo hands over the Bad Mother Fucker wallet, drained of cash&lt;/p&gt;
&lt;p&gt;Jules — held at gunpoint by his own demands — unravels the mystery of the cold-blooded murder monologue he shouted at the beginning of the film&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness, for he is truly his brother’s keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is The Lord when I lay my vengeance upon thee.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It’s a passage from the 1970s movie Karate Kiba — which Jules attributes to Ezekial 25:17&lt;/p&gt;
&lt;p&gt;He shares his interpretation and how he justifies himself as the righteous man but — in his reflection — takes a sharp turn&lt;/p&gt;
&lt;p&gt;”…I’d like that. But that shit ain’t the truth.”&lt;/p&gt;
&lt;p&gt;I depend on my permanent status as the hero
I read myself into stories as the righteous man or charitable shepherd
And I see my enemies as the selfish or the tyranny of evil men&lt;/p&gt;
&lt;p&gt;I’d like that
But that shit ain’t the truth&lt;/p&gt;
&lt;p&gt;“The truth is […] I’m the tyranny of evil men. But I’m trying, Ringo. I’m trying real hard to be the shepherd.”&lt;/p&gt;
&lt;p&gt;🐑 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Dad&apos;s Clever</title><link>https://chan.dev/dads-clever</link><guid isPermaLink="true">https://chan.dev/dads-clever</guid><description>When dad died, I wanted only one of his things: a $9 Chinese market cleaver. My kids won&apos;t fight over my laptops. But they&apos;ll fight over a $50 carbon steel pan.</description><pubDate>Wed, 29 Apr 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When dad died, I wanted only one of his things:
A $9 Chinese market clever.&lt;/p&gt;
&lt;p&gt;The $9 clever is a fixture of Chinese homes and restaurants —
Dishwasher safe, end-to-end stainless steel, 4”x 8 1/2” blade.&lt;/p&gt;
&lt;p&gt;Imagine a butter knife the size of an iPad.&lt;/p&gt;
&lt;p&gt;Using it, I remember him chopping burgundy boulders of char siu pork and peking duck hanging in windows next to B and C placards at “the only place to get real Chinese food”.&lt;/p&gt;
&lt;p&gt;It’s got me thinking about the products I put value in…&lt;/p&gt;
&lt;p&gt;The things we pass along are things we have shared, positive memories with.&lt;/p&gt;
&lt;p&gt;My kids won’t care about my 13th $3000 laptop and the numbers of pixels, processors, and mAhs it used to steal my available time and attention.&lt;/p&gt;
&lt;p&gt;But they’ll probably fight over a $50 carbon steel pan that made countless fried eggs, pancakes, grilled cheese, and crispy salmon skins.&lt;/p&gt;
&lt;p&gt;So I have a question:
What are the tools you use to create memories.&lt;/p&gt;
&lt;p&gt;🪓 chan&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Abstract more, better</title><link>https://chan.dev/abstract-more-better</link><guid isPermaLink="true">https://chan.dev/abstract-more-better</guid><description>One rule when abstracting code: one abstraction per problem. If you say &apos;and&apos; when describing it, you aren&apos;t done abstracting.</description><pubDate>Thu, 16 Apr 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I have one rule when abstracting code: create one abstraction per problem.&lt;/p&gt;
&lt;p&gt;If you say “and” when describing an abstraction, you aren’t done abstracting.&lt;/p&gt;
&lt;p&gt;Unfortunately, people are sneaky with “and”.&lt;br /&gt;
They use “with” instead.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This is a dropdown component with accessibility and style baked in. Aren’t you so lucky that I made it so easy?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Don’t fall for it.&lt;/p&gt;
&lt;p&gt;Repeat it with “and”…&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dropdown &lt;em&gt;and&lt;/em&gt; accessibility &lt;em&gt;and&lt;/em&gt; styling huh? Sounds overreach-y.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes, it’s hard to separate abstractions well.&lt;br /&gt;
No, it’s not impossible.&lt;br /&gt;
No, separating at “and”s doesn’t preclude you from exporting a standard composition.&lt;/p&gt;
&lt;p&gt;While it might sound sweet to avoid understanding the individual complexities of all three problems &lt;em&gt;and&lt;/em&gt; their intersection, accepting overreaching abstractions exchanges the momentary discomfort of learning something with a long-term dependency on a personality or preference.&lt;/p&gt;
&lt;p&gt;Do you trust this personality?&lt;br /&gt;
Will they be a fair collaborator?&lt;br /&gt;
Will they intelligently add capabilities as you need them?&lt;br /&gt;
Can they be trusted with the keys to all the “and”s?&lt;/p&gt;
&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;The salesperson puts all their energy into the sale, not support.&lt;/p&gt;
&lt;p&gt;Stable abstractions are those with personalities removed.&lt;br /&gt;
They should live and die by their utility.&lt;/p&gt;
&lt;p&gt;Solutions that are properly separated by “and”s can compose, recompose, and decompose gracefully.&lt;/p&gt;
&lt;p&gt;Like evolution, useless abstractions fade away while useful ones replicate and extend their reach.&lt;/p&gt;
&lt;p&gt;Isolated accessibility tools can be remixed into new, unanticipated expressions of dropdowns.&lt;br /&gt;
Isolated styles can be partially applied to default browser elements and reach beyond the zeitgeist of framework.&lt;/p&gt;
&lt;p&gt;Mark might have you believe that I’m &lt;a href=&quot;https://twitter.com/markdalgleish/status/1250625893891891200&quot; target=&quot;_blank&quot;&gt;anti-abstraction&lt;/a&gt;, I’m not.&lt;br /&gt;
The problem is that we don’t make enough, cleanly isolated abstractions.&lt;/p&gt;
&lt;p&gt;I want abstractions — with standard interfaces — that can compose, recompose, and decompose gracefully over time.
And I want lots of them so that product is never beholden to personality or preference.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(A &lt;a href=&quot;https://www.youtube.com/watch?v=7ri10aE-Idc&quot; target=&quot;_blank&quot;&gt;less popular version of “Hot Garbage: Clean Code is Dead”&lt;/a&gt; covers this with code.)&lt;/em&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;em&gt;UppublishDate: &lt;a href=&quot;https://twitter.com/markdalgleish/status/1250913016587018242&quot; target=&quot;_blank&quot;&gt;Mark and I agreed all along&lt;/a&gt;. &lt;a href=&quot;https://twitter.com/chantastic/status/1250568765839863809&quot; target=&quot;_blank&quot;&gt;My favorite kind of fight&lt;/a&gt;.&lt;/em&gt; 😂&lt;/p&gt;</content:encoded><category>code</category><category>career</category></item><item><title>Stop making dents</title><link>https://chan.dev/stop-making-dents</link><guid isPermaLink="true">https://chan.dev/stop-making-dents</guid><description>Most religions agree you&apos;re cosmically unimportant. So why be so intent to make a dent? Be grateful and pass it on. There&apos;s nothing you can keep.</description><pubDate>Wed, 15 Apr 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Something most religions agree on is how cosmically unimportant an individual is.&lt;/p&gt;
&lt;p&gt;They differ in the specifics but — in general — most religions tell you to think of yourself and your circumstances less.&lt;/p&gt;
&lt;p&gt;Because you are momentary.&lt;br /&gt;
You are the universe before you and the universe after you.&lt;/p&gt;
&lt;p&gt;So why be so intent to “make a dent”?&lt;/p&gt;
&lt;p&gt;Instead, be at peace — receive truth from the past, enrich it with insight from the present, and — in doing so — prepare it for the future.&lt;/p&gt;
&lt;p&gt;Don’t withhold anything;&lt;br /&gt;
There’s nothing you can keep.&lt;br /&gt;
Be grateful and pass it on.&lt;/p&gt;
&lt;p&gt;What can you give away today?&lt;/p&gt;
&lt;p&gt;🌷&lt;/p&gt;</content:encoded><category>life</category><category>faith</category></item><item><title>Share your by-products</title><link>https://chan.dev/share-your-by-products</link><guid isPermaLink="true">https://chan.dev/share-your-by-products</guid><description>Share your by-products: As knowledge workers, we produce a lot of &apos;creative exhaust.&apos; If you can&apos;t sell your by-products, consider sharing them with others.</description><pubDate>Wed, 08 Apr 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There’s a chapter in Rework titled “Sell Your By-products”.&lt;/p&gt;
&lt;p&gt;The TL;DR? You can’t make any process 100% efficient but — if you’re creative — you can sell both product and waste.&lt;/p&gt;
&lt;p&gt;I think it’s good advice.&lt;br /&gt;
So good, I’d intended to share it with you today.&lt;br /&gt;
But the truth is — it’s advice that’s made me really tired.&lt;/p&gt;
&lt;p&gt;As knowledge workers, we produce a lot of waste.&lt;br /&gt;
Brad Frost calls this “creative exhaust”.&lt;br /&gt;
It’s formed from all the stuff we learn and discern but use only once.&lt;br /&gt;
And it’s this ether that makes modern creatives so fixated on sharing.&lt;br /&gt;
We know the wastefulness of our work and sharing is our attempt to redeem or dignify it.&lt;/p&gt;
&lt;p&gt;But I’ve learned that selling and sharing are different.&lt;/p&gt;
&lt;p&gt;I’ve tried selling my by-products and failed.&lt;br /&gt;
The products were fine.&lt;br /&gt;
They made a little money.&lt;br /&gt;
But I felt shitty about selling something I couldn’t provide service and support for.&lt;/p&gt;
&lt;p&gt;So, is the advice bad?&lt;br /&gt;
Should I feel shame for sucking at selling?&lt;br /&gt;
Am I just thinking too much about it?&lt;/p&gt;
&lt;p&gt;Maybe all of the above but today I put something together:&lt;br /&gt;
That chapter wasn’t written for me.&lt;br /&gt;
It was written for businesses.&lt;/p&gt;
&lt;p&gt;I remain employed to avoid responsibilities of running a business&lt;br /&gt;
But selling anything means being employed and running a business.&lt;/p&gt;
&lt;p&gt;So…
Sell your by-products — if you can.
If you can’t, share them.&lt;/p&gt;
&lt;p&gt;🤲&lt;/p&gt;</content:encoded><category>content</category><category>career</category></item><item><title>The man and the monster</title><link>https://chan.dev/the-man-and-the-monster</link><guid isPermaLink="true">https://chan.dev/the-man-and-the-monster</guid><description>Find balance between your inner creator and critic. Learn from successful creatives&apos; tactics, overcome struggles, and achieve harmony in your work.</description><pubDate>Wed, 01 Apr 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We have to achieve what Dr Jekyll couldn’t.&lt;/p&gt;
&lt;p&gt;In every person lives creator and critic.&lt;br /&gt;
For a lucky few, those are in near balance.&lt;br /&gt;
But for the rest of us, we trend woefully toward one end of the continuum.&lt;/p&gt;
&lt;p&gt;Too critical to publish or to creative to progress.&lt;/p&gt;
&lt;p&gt;Your work requires that you build a boundary between the man and the monster.&lt;br /&gt;
But how will you succeed where the doctor failed?&lt;/p&gt;
&lt;p&gt;You’ll be better prepared.&lt;/p&gt;
&lt;p&gt;My favorite creatives have fight this battle and shared their tactics:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://stevenpressfield.com/2017/02/you-inc/&quot; target=&quot;_blank&quot;&gt;You and You, Inc.&lt;/a&gt; — Steven Pressfield&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ted.com/talks/elizabeth_gilbert_your_elusive_creative_genius&quot; target=&quot;_blank&quot;&gt;Muse and Mule&lt;/a&gt; — Elizabeth Gilbert&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.paulgraham.com/makersschedule.html&quot; target=&quot;_blank&quot;&gt;Maker and Manager&lt;/a&gt; — Paul Graham&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each of these thoughts guides me thru different struggles.&lt;br /&gt;
&lt;strong&gt;Maker and Manager&lt;/strong&gt; is a framework of dividing a day into distinct modes.&lt;br /&gt;
&lt;strong&gt;You and You Inc&lt;/strong&gt; is a defense against imposter syndrome.
And &lt;strong&gt;Muse and Mule&lt;/strong&gt; is a comfort when luck doesn’t show.&lt;/p&gt;
&lt;p&gt;🐴 chan&lt;br /&gt;
Romans 7:23&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Unemployment</title><link>https://chan.dev/unemployment</link><guid isPermaLink="true">https://chan.dev/unemployment</guid><description>Unemployment can bring shame and panic, but it&apos;s important to be grateful for those who help guide us through. Share your knowledge and support others in need</description><pubDate>Wed, 18 Mar 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;On unemployment, you get a paper check.
Attached is a form you send back for your next check. Miss the return window and there’s no next check.&lt;/p&gt;
&lt;p&gt;I missed one and felt properly fucked.&lt;/p&gt;
&lt;p&gt;You can’t call unemployment in the middle of a recession.
I’d try, when the office opened, and I’d sit on hold until they dropped the line.&lt;/p&gt;
&lt;p&gt;I gave up.&lt;/p&gt;
&lt;p&gt;I’ve never felt shame like being on unemployment. Every day my heart broke as employment applications went unanswered and open positions closed.&lt;/p&gt;
&lt;p&gt;That panic is with me, still.
I was born from it.
All my decisions have roots in it.
So, my heart breaks to see people in it now.&lt;/p&gt;
&lt;p&gt;I’m not gonna be a dick and enumerate the ways it was good for me. That isn’t helpful.
I will say how grateful I am for people like &lt;a href=&quot;https://twitter.com/jeffrey_way&quot; target=&quot;_blank&quot;&gt;Jeffery Way&lt;/a&gt;, &lt;a href=&quot;https://twitter.com/topfunky&quot; target=&quot;_blank&quot;&gt;Geoffrey Grosenbach&lt;/a&gt;, and &lt;a href=&quot;https://twitter.com/danbenjamin&quot; target=&quot;_blank&quot;&gt;Dan Benjamin&lt;/a&gt; who showed me a new path by sharing what they knew.
They didn’t know me but their sharing gave me direction.&lt;/p&gt;
&lt;p&gt;I couldn’t have made it thru without them and I feel a huge responsibility to share what I know in response.&lt;/p&gt;
&lt;p&gt;I hope you will too, creators.
People need you right now.&lt;/p&gt;
&lt;p&gt;👨‍🏫 Chan&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Make a Foul</title><link>https://chan.dev/make-a-foul</link><guid isPermaLink="true">https://chan.dev/make-a-foul</guid><description>Sometimes, success means taking risks and making mistakes; embrace the process, learn from your fouls, and grow into a better version of yourself.</description><pubDate>Wed, 26 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;“I want to see you make a foul!”&lt;/p&gt;
&lt;p&gt;I yell that at Rock every time he runs onto the soccer field.&lt;/p&gt;
&lt;p&gt;Truth is, he’s incapable of it.
He lacks the killer instinct required for competitive sports.
It’s like me asking him to punch a friend in the face.&lt;/p&gt;
&lt;p&gt;I was the same way
But — in the 28 year between us — I’ve learned that success often requires something that we’re unwilling to give.&lt;/p&gt;
&lt;p&gt;For me, that’s wasting people’s time and attention.&lt;/p&gt;
&lt;p&gt;This morning, I woke up to a flood of emails with largely identical text:
“hey, did you mean to send this? It seems unfinished…”&lt;/p&gt;
&lt;p&gt;Hundreds of people got a placeholder email from me because I took a class on email marketing, created a landing page, wrote part of an email sequence, and never finished emails 3-5.&lt;/p&gt;
&lt;p&gt;Of course, I scheduled all of them — as a means of forcing myself to finish — and they went out unfinished.&lt;/p&gt;
&lt;p&gt;In my book, spam is always a foul.
And I feel ashamed to have made that foul.
But I’m glad I took the risk and I trust the process.&lt;/p&gt;
&lt;p&gt;Looks like I have a few emails and apologetic responses to write…&lt;/p&gt;
&lt;p&gt;⚽️ chan&lt;/p&gt;
&lt;p&gt;Make any fouls this week?
Hit reply. I’d love the company 😅&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Good things go bad</title><link>https://chan.dev/good-things-go-bad</link><guid isPermaLink="true">https://chan.dev/good-things-go-bad</guid><description>There&apos;s no good time to eat an avocado. Same with jobs. They ripen, then they rot. And there&apos;s no prize for stomaching rotten ones.</description><pubDate>Mon, 24 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There’s no good time to eat an avocado.&lt;/p&gt;
&lt;p&gt;Rather, the right time to eat an avocado is a one-hour window in the middle of the night. Every second after that is a developing missed opportunity.&lt;/p&gt;
&lt;p&gt;Everything good goes bad.&lt;/p&gt;
&lt;p&gt;One minute, life is soft, sweet, and savory. The next minute, gross avocado.
Once a good thing goes bad, we try hard to keep it. We remove the brown, add the salt, and dump in the lime. Because it was — once — all that we waited for it to be.&lt;/p&gt;
&lt;p&gt;This happened to me at my last job. In the beginning, it was an incredible blessing. It was rotten by year three. And I stayed for 8. Because “Wasn’t this what I wanted? Wasn’t it once great? If I waited this long for it to ripen, is it too rotten to enjoy now?”&lt;/p&gt;
&lt;p&gt;I’ve learned the hard way that jobs aren’t commitments. They’re temporary partnerships — momentary alignments. They ripen; then they rot. And there’s no prize for stomaching rotten ones.&lt;/p&gt;
&lt;p&gt;I’m a naturally committed person. So this hurts to admit. But it also gives me the power to trust myself more and ask what I’m looking for — to eat as many ripe avocados as I can before I die.&lt;/p&gt;
&lt;p&gt;Is the work you’re doing now ripe or rotten?&lt;/p&gt;
&lt;p&gt;🥑 chan&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Snap to Focus</title><link>https://chan.dev/snap-to-focus</link><guid isPermaLink="true">https://chan.dev/snap-to-focus</guid><description>Nellie told me: you&apos;re not always angry but you Snap to Focus on things that make you angry. She ruined my favorite camera feature. But she was right.</description><pubDate>Wed, 19 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;It’s hard to make a great photo on a phone.&lt;/p&gt;
&lt;p&gt;I still buy pro compact cameras and
My favorite is the Ricoh GR.
It’s about the size of a wallet and takes SLR-quality photos.&lt;/p&gt;
&lt;p&gt;A good pro compact has a feature called Snap to Focus.
It jumps to a preset focus as soon as the trigger is pulled.
In practice, it means missing fewer shots of my wily children.&lt;/p&gt;
&lt;p&gt;It’s a great feature but even a better metaphor…&lt;/p&gt;
&lt;p&gt;As I was complaining to Nellie about some workplace politics,
she hit me with a perfect technical corollary:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You’re not always angry but you Snap to Focus on things that make you angry. Regardless of your mood, you can jump to the exact level of angry you were the last time you were there.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Admittedly, it ruined the feature.
I couldn’t use it without being reminded of my sad humanity.
But I recovered and remembered that Snap to Focus is configurable.&lt;/p&gt;
&lt;p&gt;Right now, my Snap to Focus is set on something that isn’t happy, healthy, or powerful.
But I choose where I Snap to Focus.&lt;/p&gt;
&lt;p&gt;I can Snap to Focus on things I hate or I can Snap to Focus on things I love.
If — like my favorite camera — Snap to Focus is a feature of my humanity, how can I make it a useful one?&lt;/p&gt;
&lt;p&gt;Where do you Snap to Focus?&lt;/p&gt;
&lt;p&gt;📸 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Hey</title><link>https://chan.dev/hey</link><guid isPermaLink="true">https://chan.dev/hey</guid><description>Nellie and I relegated the big stuff to email early in our relationship. It gave us time to think. 14 years later, we don&apos;t email much anymore.</description><pubDate>Wed, 12 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This week, Basecamp announced &lt;a href=&quot;https://hey.com&quot; target=&quot;_blank&quot;&gt;HEY&lt;/a&gt; — a new email service.
To get an invite, you have to send a story about email.&lt;/p&gt;
&lt;p&gt;I thought mine was cute-ish.
So here it is:&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Nellie and I were serious about each other from the start.
We had baggage — everyone does.&lt;/p&gt;
&lt;p&gt;We knew we couldn’t be casual about the details.
But we didn’t want to overwhelm our young relationship with “the big stuff”.&lt;/p&gt;
&lt;p&gt;So, we committed to enjoying each other in person — calm, fun, positive dates only.
We relegated “the big stuff” to email.&lt;/p&gt;
&lt;p&gt;Email gave us time to think about big things…
Would we find a new church together?
Had I wrapped up my previous relationships up well?
Had we voted and for whom?
Would we both keep working as kids came?
Did we want kids?&lt;/p&gt;
&lt;p&gt;Email gave us a space to calmly discuss the foundation of our future relationship,
While enjoying the moment of our present relations.
As our relationship got stronger, fewer conversations felt “too big” to have in person.&lt;/p&gt;
&lt;p&gt;We’re 14 years in love, now.
We don’t email much anymore but I’m glad we had that space.
Email helped us foster a habit of communicating thru “the big stuff”.&lt;/p&gt;
&lt;h2&gt;💌 chan&lt;a href=&quot;#-chan&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;What’s your email story?&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Do What You Can&apos;t</title><link>https://chan.dev/do-what-you-cant</link><guid isPermaLink="true">https://chan.dev/do-what-you-cant</guid><description>Last week I said earn your imposter syndrome. It was a half truth. Imposter syndrome is a thief and a cancer. You don&apos;t comfort it. You fight it.</description><pubDate>Wed, 05 Feb 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Last week I said you should “earn your imposter syndrome.”
It was a half truth.&lt;/p&gt;
&lt;p&gt;I don’t want you to experience imposter syndrome.
But it’ll find you.
When it does, I want you to know what you’re fighting.&lt;/p&gt;
&lt;p&gt;Imposter syndrome is a thief.
It says “you can’t.”
It tells you that you aren’t enough,
That you’re experience isn’t valid,
That you can’t rise to a challenge.&lt;/p&gt;
&lt;p&gt;You are enough.
You experience is valid.
You will rise.&lt;/p&gt;
&lt;p&gt;But you won’t be able to convince yourself of that.
You need others to do it.
Life is team sport.&lt;/p&gt;
&lt;p&gt;I tell people to “earn your imposter syndrome” because there’s no compassion in comforting fear.
Imposter syndrome is a cancer.
You don’t comfort it.
You don’t appease it.
You don’t learn to live with it.
You kill it.&lt;/p&gt;
&lt;p&gt;You kill it by proving it wrong.
Casey Neistat says it best:
Do what you can’t.&lt;/p&gt;
&lt;p&gt;🚷 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Earn Your Imposter Syndrome</title><link>https://chan.dev/earn-your-imposter-syndrome</link><guid isPermaLink="true">https://chan.dev/earn-your-imposter-syndrome</guid><description>Earn imposter syndrome by being bold and achieving success. Transform your fear into courage and let your achievements prove your worth.</description><pubDate>Wed, 29 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;“I’m getting into the field, how do I overcome my imposter syndrome?”&lt;/p&gt;
&lt;p&gt;I get this question a lot and my response is pretty tough:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You can’t have imposter syndrome; you have to work first.
You have to be objectively qualified before you can be incorrect in feeling unqualified.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Too harsh?
Maybe; I just see it as math.&lt;/p&gt;
&lt;p&gt;Imposter syndrome is for people who have a proven track record but can’t escape the nagging belief that they’ll be discredited as a fraud.&lt;/p&gt;
&lt;p&gt;If you aren’t winning, who cares that you cheated?&lt;/p&gt;
&lt;p&gt;Being afraid to fail isn’t imposter syndrome, it’s just fear.&lt;/p&gt;
&lt;p&gt;“Fortune favors the bold” — Virgil&lt;/p&gt;
&lt;p&gt;You earn imposter syndrome by failing so fiercely that repeated success feels like an unconscionable fluke.
Imposter syndrome the reward of the courageous.&lt;/p&gt;
&lt;p&gt;Don’t coddle yourself.
Win and earn your imposter syndrome.&lt;/p&gt;
&lt;p&gt;🎭 chan&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Do What Others Won&apos;t</title><link>https://chan.dev/do-what-others-wont</link><guid isPermaLink="true">https://chan.dev/do-what-others-wont</guid><description>Tackle tasks others won&apos;t to build dependability, boosting career capital and earning trust, opening doors to growth and new opportunities.</description><pubDate>Wed, 22 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When I was interviewing contractors to refinish the wood &lt;strong&gt;floors&lt;/strong&gt; of my 70 year old house, they told me:&lt;br /&gt;
“This job is too dangerous.&lt;br /&gt;
Here’s a card for the only guy crazy enough to do it.”&lt;br /&gt;
I hired that guy and paid him twice as much as the others estimated.&lt;/p&gt;
&lt;p&gt;When I was changing careers, I followed that contractor’s lead:&lt;br /&gt;
Do what others won’t.&lt;/p&gt;
&lt;p&gt;“Shit work” is low-stakes way to showcase your dependability.&lt;br /&gt;
If things go well, you’re a savior.&lt;br /&gt;
If things go sideways, well, you were the last hope anyway.&lt;/p&gt;
&lt;p&gt;Career capital is measured in dependability.&lt;br /&gt;
It takes a lifetime to be trusted with work everyone wants.&lt;br /&gt;
But it only takes a few wins to be trusted with work nobody wants.&lt;/p&gt;
&lt;p&gt;In my career, that leverage was CSS.&lt;br /&gt;
Nobody wanted to own CSS in 2010.&lt;br /&gt;
By becoming dependable, in a job nobody wanted, it was only a few months before I was in planning meetings with developers 10 years my senior.&lt;/p&gt;
&lt;p&gt;There’s always work to be found “beneath” others.&lt;br /&gt;
If you do your job right, you won’t be “beneath” anyone for long.&lt;/p&gt;
&lt;p&gt;🤴 chan
(Proverbs 22:29)[&lt;a href=&quot;https://www.biblegateway.com/passage/?search=Proverbs+22:29&amp;amp;version=ESV&quot; target=&quot;_blank&quot;&gt;https://www.biblegateway.com/passage/?search=Proverbs+22:29&amp;amp;version=ESV&lt;/a&gt;]&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Say What You See</title><link>https://chan.dev/say-what-you-see</link><guid isPermaLink="true">https://chan.dev/say-what-you-see</guid><description>Pamela Stambaugh&apos;s insight into an individual&apos;s potential led to a career change. Recognizing unrealized potential in others can be transformative.</description><pubDate>Wed, 15 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Pamela Stambaugh changed my life.&lt;/p&gt;
&lt;p&gt;I met her while filling an employment gap.&lt;br /&gt;
I was picking up bookkeeping odd jobs after being laid off.&lt;/p&gt;
&lt;p&gt;Pamela required that I take an aptitude test as part of the interview — she’s a career consultant.&lt;/p&gt;
&lt;p&gt;She called me with the results and said:&lt;br /&gt;
“Michael, I’d never trust someone of your personality with my books. I’ve already hired someone else. But is accounting really you? I doubt it. I need someone to organize my business and build me a website. I’d be happy to hire you for those things.”&lt;/p&gt;
&lt;p&gt;That was my first web development job.&lt;/p&gt;
&lt;p&gt;It shocks me — to this day — that an absolute stranger changed my life.&lt;/p&gt;
&lt;p&gt;I’d been toying with the dream of programming for years.&lt;br /&gt;
But during that period, I was surround by people encouraging me to “stick with what you know” and “play it safe”.&lt;/p&gt;
&lt;p&gt;Pamela just said what was obvious.&lt;br /&gt;
She changed my life by saying what she saw and making a small investment in that unrealized potential.&lt;/p&gt;
&lt;p&gt;“You’re doing the wrong work. Do this instead.”&lt;/p&gt;
&lt;p&gt;I’ve worked hard to Say What I See in others —&lt;br /&gt;
Bearing witness to the obvious.
I’m always amazed at what the can do for people.&lt;/p&gt;
&lt;p&gt;🗣 chan&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Stride Your Limp</title><link>https://chan.dev/stride-your-limp</link><guid isPermaLink="true">https://chan.dev/stride-your-limp</guid><description>I don&apos;t trust anyone who doesn&apos;t walk with a limp. Pain is non-negotiable. Suffering is optional. Punch up, take your losses, stride your limp.</description><pubDate>Wed, 08 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I don’t trust anyone who doesn’t walk with a limp — metaphorically, of course.&lt;/p&gt;
&lt;p&gt;Losing leaves a mark.&lt;/p&gt;
&lt;p&gt;You don’t lose, fighting winnable fights;&lt;br /&gt;
You lose punching above your weight class.&lt;/p&gt;
&lt;p&gt;That’s a lot of bad sports analogies for a nerd.&lt;br /&gt;
Let’s bring it home…&lt;/p&gt;
&lt;p&gt;Mindfulness teachers have a formula: Pain ⨉ Resistance = Suffering.&lt;/p&gt;
&lt;p&gt;Pain is non-negotiable.&lt;br /&gt;
Suffering is optional.&lt;/p&gt;
&lt;p&gt;Do you take pain and turn it into suffering?&lt;br /&gt;
Or do you accept it as a part of learning?&lt;/p&gt;
&lt;p&gt;A limp can be a lesson learned.&lt;br /&gt;
And an indifference to pain has long been my prized indicator of how far someone will go to learn.&lt;/p&gt;
&lt;p&gt;Punch up.&lt;br /&gt;
Take your losses.&lt;br /&gt;
Stride your limp with pride.&lt;/p&gt;
&lt;p&gt;🥊 Chan&lt;br /&gt;
&lt;a href=&quot;https://www.biblegateway.com/passage/?search=genesis+32%3A22-32&amp;amp;version=ESV&quot; target=&quot;_blank&quot;&gt;Genesis 32:22-30&lt;/a&gt;&lt;/p&gt;</content:encoded><category>life</category><category>faith</category></item><item><title>You</title><link>https://chan.dev/you</link><guid isPermaLink="true">https://chan.dev/you</guid><description>Thank you for being part of my journey last year. Sharing our experiences and growth made it special. Excited to see where this decade takes us.</description><pubDate>Wed, 01 Jan 2020 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Thanks for letting me in this year.&lt;/p&gt;
&lt;p&gt;When I started writing into the void, I assumed that this would be a fun way to catalogue a few thoughts and memories I’d never shared&lt;br /&gt;
But you showed up and that changed everything.&lt;/p&gt;
&lt;p&gt;My favorite thing about last year was getting to know you,&lt;br /&gt;
Share your journey,&lt;br /&gt;
Feel your struggle,&lt;br /&gt;
And move forward together.&lt;/p&gt;
&lt;p&gt;I’m grateful for you&lt;br /&gt;
And I’m thrilled to see how we’ll move forward together in this decade.&lt;/p&gt;
&lt;p&gt;🎆 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Don&apos;t Go It Alone</title><link>https://chan.dev/dont-go-it-alone</link><guid isPermaLink="true">https://chan.dev/dont-go-it-alone</guid><description>My dad used to say: you can do a lot by yourself, but you can&apos;t do a lot. High-level anything requires trust in others.</description><pubDate>Thu, 19 Dec 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My dad taught me to trust no one.&lt;br /&gt;
”Taught” might be an understatement — he embedded it into the DNA of Chan.&lt;/p&gt;
&lt;p&gt;Back in his 20s, my dad’s business partner/cousin bankrupted him.&lt;br /&gt;
He never recovered&lt;br /&gt;
And — ‘til the day he died — dad told us to “go it alone.”&lt;/p&gt;
&lt;p&gt;That legacy hasn’t served me well.&lt;br /&gt;
People who perform at a high level never get there alone.&lt;/p&gt;
&lt;p&gt;Athletes have coaches.&lt;br /&gt;
Directors have producers.&lt;br /&gt;
CEOs have advisors.&lt;br /&gt;
Even the The Loan Ranger had Scout.&lt;/p&gt;
&lt;p&gt;I’ve been unpacking my reliance on self this year — trusting others with things that are important to me.&lt;/p&gt;
&lt;p&gt;It started by trusting The Spec Network with my podcast.&lt;br /&gt;
And together, we published 48 episodes.&lt;br /&gt;
I think we’ll cross 1M downloads before the year ends.&lt;/p&gt;
&lt;p&gt;Last month, I continued the trend by trusting egghead with a programming course I developed.&lt;br /&gt;
Work that might have forever stayed locked away in my head.&lt;/p&gt;
&lt;p&gt;This has been my most productive and fulfilling year yet&lt;br /&gt;
And I owe it all to the folks I’ve trusted.&lt;/p&gt;
&lt;p&gt;Don’t go it alone.&lt;/p&gt;
&lt;p&gt;👯‍♂️ Chan&lt;/p&gt;
&lt;p&gt;P.S.
If your new here, you probably found this from my &lt;a href=&quot;https://twitter.com/chantastic/status/1201594041378496512&quot; target=&quot;_blank&quot;&gt;#ReactHoliday thread on Twitter&lt;/a&gt;.&lt;br /&gt;
If you’re looking for just the tech stuff and not the personal stuff — you want &lt;a href=&quot;https://chantastic.ck.page/68a90cee52&quot; target=&quot;_blank&quot;&gt;this newsletter&lt;/a&gt; 😅&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Stop Failing Yourself</title><link>https://chan.dev/stop-failing-yourself</link><guid isPermaLink="true">https://chan.dev/stop-failing-yourself</guid><description>In school, I wouldn&apos;t turn in a paper if it didn&apos;t feel good enough. Perfectionism is the horsiest of horse shits. You&apos;re an adult. You can handle rejection.</description><pubDate>Wed, 27 Nov 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you want your life to be worse,&lt;br /&gt;
Don’t share your work.&lt;/p&gt;
&lt;p&gt;In school, I wouldn’t turn in a paper if I didn’t &lt;em&gt;feel&lt;/em&gt; like it was “good work.”&lt;br /&gt;
Of course the whole point of school is show bad work.&lt;/p&gt;
&lt;p&gt;I protected myself with the “perfectionist” narrative.&lt;br /&gt;
It’s an easy lie to believe when you’re afraid of criticism.&lt;br /&gt;
It allowed me to interpret my failing grades as a virtue.&lt;/p&gt;
&lt;p&gt;Perfectionism is the horsiest of horse shits.&lt;br /&gt;
You’re an adult.&lt;br /&gt;
You can handle a little rejection.&lt;/p&gt;
&lt;p&gt;If you don’t share your work, you’re not a perfectionist —&lt;br /&gt;
You’re just scared.&lt;/p&gt;
&lt;p&gt;Stop hiding your work because you’re scared.&lt;/p&gt;
&lt;p&gt;💡 chan&lt;br /&gt;
&lt;a href=&quot;https://www.biblegateway.com/passage/?search=matt+5%3A14-16&amp;amp;version=ESV&quot; target=&quot;_blank&quot;&gt;Matt 5:14-16&lt;/a&gt;&lt;/p&gt;</content:encoded><category>life</category><category>faith</category></item><item><title>So, I Make My Bed</title><link>https://chan.dev/so-i-make-my-bed</link><guid isPermaLink="true">https://chan.dev/so-i-make-my-bed</guid><description>My existential dread is a morning person. So I accept defeat. The day is already lost. And I make my bed — my first act of defiance against the day.</description><pubDate>Wed, 20 Nov 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My existential dread is a morning person.&lt;/p&gt;
&lt;p&gt;It yells at me thru the alarm and sneers thru the god forsaken gap between the window’s edge and the curtain.&lt;/p&gt;
&lt;p&gt;(I really need to fix that)&lt;/p&gt;
&lt;p&gt;It hits early.&lt;br /&gt;
Because, if it can remind of how little I did yesterday, it can convince me of how little I’ll do today.&lt;/p&gt;
&lt;p&gt;So, I accept defeat.&lt;br /&gt;
The day is already lost.&lt;br /&gt;
It’s been enough times now that I don’t fight that futility of the morning.&lt;br /&gt;
So, I make my bed.&lt;/p&gt;
&lt;p&gt;It’s my first act of defiance against the day.&lt;/p&gt;
&lt;p&gt;Making the bed reminds me that every today starts with a mess from yesterday,&lt;br /&gt;
That those messes are surmountable,&lt;br /&gt;
And that cleaning up always feels more daunting than it is.&lt;/p&gt;
&lt;p&gt;When the bed is made, I’m in it.&lt;br /&gt;
Ready lose few or win a few.&lt;/p&gt;
&lt;p&gt;Now, if only I could get out of these pajamas…&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Pay Attention</title><link>https://chan.dev/pay-attention</link><guid isPermaLink="true">https://chan.dev/pay-attention</guid><description>Chasing novelty can be exciting, but sometimes the best gift is simply giving attention. Cherish moments spent with loved ones and focus on being present.</description><pubDate>Wed, 06 Nov 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;As an adult, I’m often chasing novelty —&lt;br /&gt;
New destinations, experiences, and abilities.&lt;/p&gt;
&lt;p&gt;This weekend, Nellie and I took the family to Utah — a new place we’d never been.&lt;/p&gt;
&lt;p&gt;It was our first plane-trip as just our family of four.&lt;br /&gt;
We weren’t visiting in-laws or traveling with friends — we were just exploring the planet.&lt;/p&gt;
&lt;p&gt;For all the planning, money, and coordination that it took, the kids both agreed that their favorite part was watching movies and playing games with us.&lt;/p&gt;
&lt;p&gt;I don’t regret for a second taking them.&lt;br /&gt;
I LOVE hearing them talk about adventures they’ve had in different states.&lt;br /&gt;
But it reminded me — once again —&lt;br /&gt;
The best gift you can give is attention.&lt;/p&gt;
&lt;p&gt;😳 chan&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Catch Your Suspense Errors</title><link>https://chan.dev/catch-your-suspense-errors</link><guid isPermaLink="true">https://chan.dev/catch-your-suspense-errors</guid><description>Learn how to handle promise rejections in React.Suspense by using Error Boundaries, ensuring proper handling of pending, resolved, and rejected states.</description><pubDate>Wed, 30 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Not every promise resolves.&lt;br /&gt;
Some are rejected.&lt;/p&gt;
&lt;p&gt;So, when we use &lt;code&gt;React.Suspense&lt;/code&gt; to show loading and loaded states,&lt;br /&gt;
We need to consider exceptions as well.&lt;/p&gt;
&lt;h2&gt;Error Boundary Crash Course&lt;a href=&quot;#error-boundary-crash-course&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://reactjs.org/blog/2017/09/26/react-v16.0.html#better-error-handling&quot; target=&quot;_blank&quot;&gt;Error boundaries&lt;/a&gt; were a flagship features of React 16 —
One of the first features to illustrate the potential of the &lt;a href=&quot;https://engineering.fb.com/web/react-16-a-look-inside-an-api-compatible-rewrite-of-our-frontend-ui-library/&quot; target=&quot;_blank&quot;&gt;fiber rewrite&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To use &lt;code&gt;Suspense&lt;/code&gt; effectively, you have to to make use of &lt;code&gt;error boundaries&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Start with Copy and Paste&lt;a href=&quot;#start-with-copy-and-paste&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The React docs have a &lt;a href=&quot;https://reactjs.org/docs/error-boundaries.html#introducing-error-boundaries&quot; target=&quot;_blank&quot;&gt;copy and paste-able&lt;/a&gt; &lt;code&gt;ErrorBoundary&lt;/code&gt; component.&lt;/p&gt;
&lt;p&gt;You really only need one of these things.&lt;br /&gt;
So copy and paste it into your code and customize to your needs.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;class ErrorBoundary extends React.Component {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;constructor(props) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;super(props)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;this.state = {hasError: false}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;static defaultProps = {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fallback: &amp;lt;h1&amp;gt;Something went wrong.&amp;lt;/h1&amp;gt;,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;static getDerivedStateFromError(error) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return {hasError: true}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;componentDidCatch(error, errorInfo) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;console.log(error, errorInfo)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;render() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;if (this.state.hasError) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return this.props.fallback&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return this.props.children&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;This one is customized slightly for demos.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It assumes you don’t have a logging service and uses &lt;code&gt;console.logs&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;It takes a &lt;code&gt;fallback&lt;/code&gt; prop for custom messages — much like &lt;code&gt;Suspense&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Wrap Those Suspense Components&lt;a href=&quot;#wrap-those-suspense-components&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Wrap &lt;code&gt;Suspense&lt;/code&gt; components with an error boundary to&lt;br /&gt;
handle these three possible states:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;pending&lt;/em&gt; — &lt;code&gt;Suspense fallback&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;resolved&lt;/em&gt; — &lt;code&gt;Suspense children&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;rejected&lt;/em&gt; — &lt;code&gt;ErrorBoundary fallback&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import React from &lt;/span&gt;&lt;span&gt;&apos;react&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import ErrorBoundary from &lt;/span&gt;&lt;span&gt;&apos;./error-boundary&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const LazyLoadedComponent = React.lazy(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;() =&amp;gt; import(&lt;/span&gt;&lt;span&gt;&apos;./SomeComponent&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyApp() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;ErrorBoundary&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;fallback={&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;Stop trying to make fetch happen. It&apos;s not gonna&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;          &lt;/span&gt;&lt;/span&gt;&lt;span&gt;happen.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;React.Suspense fallback={&amp;lt;div&amp;gt;Waiting...&amp;lt;/div&amp;gt;}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;LazyLoadedComponent /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/React.Suspense&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/ErrorBoundary&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;This Ain’t No 1:1&lt;a href=&quot;#this-aint-no-11&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I see a lot of people immediately jump to wrapping &lt;code&gt;ErrorBoundary&lt;/code&gt; and &lt;code&gt;Suspense&lt;/code&gt; together.&lt;/p&gt;
&lt;p&gt;It’s not a good look.&lt;/p&gt;
&lt;p&gt;Separate, they give you nuanced control over your entire view.&lt;br /&gt;
Stick layout components in between,&lt;br /&gt;
Handle errors closely,&lt;br /&gt;
Or have only one &lt;code&gt;ErrorBoundary&lt;/code&gt; around a bunch of &lt;code&gt;Suspense&lt;/code&gt; components.&lt;/p&gt;
&lt;p&gt;The world is your oyster.
Keep ‘em separate and keep control.&lt;/p&gt;
&lt;h2&gt;This is The Suspense API&lt;a href=&quot;#this-is-the-suspense-api&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Right now, we’re using &lt;code&gt;React.lazy&lt;/code&gt; to do the work of communicating &lt;em&gt;pending&lt;/em&gt;, &lt;em&gt;resolved&lt;/em&gt;, and &lt;em&gt;rejected&lt;/em&gt; states to our &lt;code&gt;Suspense&lt;/code&gt; and &lt;code&gt;ErrorBoundary&lt;/code&gt; components.&lt;/p&gt;
&lt;p&gt;Next, we’ll talk about creating our own wrappers to interact with this Suspense API.&lt;/p&gt;</content:encoded><category>react</category><category>web</category></item><item><title>Make the Cut</title><link>https://chan.dev/make-the-cut</link><guid isPermaLink="true">https://chan.dev/make-the-cut</guid><description>Every idea starts as a conflated ball of ideas. Your work is to cut off everything that doesn&apos;t belong. Have you seen a wild bonsai tree? It&apos;s just a shrub.</description><pubDate>Wed, 23 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Every idea starts as a conflated ball of ideas&lt;br /&gt;
Attached to it are your biases, protective tactics, and fears&lt;/p&gt;
&lt;p&gt;Your work — as steward of an idea — is to cut off everything that doesn’t belong&lt;/p&gt;
&lt;p&gt;But these cuts aren’t obvious&lt;br /&gt;
You have to impose a your vision to find the right lines&lt;/p&gt;
&lt;p&gt;For example:
Have you seen a wild bonsai tree?&lt;br /&gt;
It’s just a shrub&lt;/p&gt;
&lt;p&gt;Have you seen a tri-tip steak when it’s still a cow’s muscle?
You wouldn’t be able to find it&lt;/p&gt;
&lt;p&gt;The cut lines are set by your vision
You are the one that decides where to cut&lt;/p&gt;
&lt;p&gt;Be patient; It takes time
Stay persistent and you’ll catch a glimpse of that perfect shape — beyond biases, protective tactics, and fears&lt;/p&gt;
&lt;p&gt;When you see it, cut&lt;/p&gt;
&lt;p&gt;✂️ chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Use Suspense Today</title><link>https://chan.dev/use-suspense-today</link><guid isPermaLink="true">https://chan.dev/use-suspense-today</guid><description>Use React&apos;s Suspense and lazy for code-splitting, displaying fallbacks during component fetching, and handling asynchronous data efficiently.</description><pubDate>Wed, 23 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Believe it or not, you’ve had access to &lt;code&gt;Suspense&lt;/code&gt; for a year.&lt;/p&gt;
&lt;p&gt;Yes, there is more suspense to come.&lt;br /&gt;
Yes, that “more” isn’t totally ready.&lt;br /&gt;
No, that doesn’t mean you can’t use &lt;code&gt;Suspense&lt;/code&gt; today.&lt;/p&gt;
&lt;h3&gt;React.lazy and Suspense sitting in a tree&lt;a href=&quot;#reactlazy-and-suspense-sitting-in-a-tree&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;React &lt;code&gt;v16.6&lt;/code&gt; &lt;a href=&quot;https://reactjs.org/blog/2018/10/23/react-v-16-6.html#reactlazy-code-splitting-with-suspense&quot; target=&quot;_blank&quot;&gt;introduced &lt;code&gt;React.lazy&lt;/code&gt;&lt;/a&gt; —&lt;br /&gt;
A way to code-split in client-rendered applications by components.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import React from &lt;/span&gt;&lt;span&gt;&apos;react&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const LazyLoadedComponent = React.lazy(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;() =&amp;gt; import(&lt;/span&gt;&lt;span&gt;&apos;./SomeComponent&apos;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;function MyApp() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;return (&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;React.Suspense fallback={&amp;lt;div&amp;gt;Waiting...&amp;lt;/div&amp;gt;}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;LazyLoadedComponent /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/React.Suspense&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;code&gt;lazy&lt;/code&gt; depends on &lt;code&gt;Suspense&lt;/code&gt; to present a fallback while the lazily-loaded component is fetched.&lt;/p&gt;
&lt;p&gt;In that way, &lt;code&gt;Suspense&lt;/code&gt; acts as a boundary for asynchronous data.&lt;br /&gt;
If a promise inside a &lt;code&gt;Suspense&lt;/code&gt; boundary is pending,
The &lt;code&gt;fallback&lt;/code&gt; is presented.
Once resolved, &lt;code&gt;children&lt;/code&gt; are presented.&lt;/p&gt;
&lt;h3&gt;But Suspense needs a translator&lt;a href=&quot;#but-suspense-needs-a-translator&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;Suspense&lt;/code&gt; can’t magically know all the promises it’s &lt;code&gt;children&lt;/code&gt; may or may not have.&lt;/p&gt;
&lt;p&gt;That’s where &lt;code&gt;lazy&lt;/code&gt; comes in.&lt;br /&gt;
It acts as a translator.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;lazy&lt;/code&gt; wraps a dynamic &lt;code&gt;import&lt;/code&gt; and communicates &lt;code&gt;Pending&lt;/code&gt; and &lt;code&gt;Resolved&lt;/code&gt; states to the nearest &lt;code&gt;Suspense&lt;/code&gt; component boundary.
(&lt;a href=&quot;https://github.com/facebook/react/blob/master/packages/shared/ReactLazyComponent.js&quot; target=&quot;_blank&quot;&gt;code here&lt;/a&gt;).
&lt;code&gt;Suspense&lt;/code&gt; will resolve &lt;code&gt;fallback&lt;/code&gt; or &lt;code&gt;children&lt;/code&gt; accordingly.&lt;/p&gt;
&lt;h2&gt;The future™️&lt;a href=&quot;#the-future️&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As we move into a &lt;code&gt;Suspense&lt;/code&gt; future, you’ll see this pattern more often:&lt;br /&gt;
A &lt;code&gt;Suspense&lt;/code&gt; boundary (with &lt;code&gt;fallback&lt;/code&gt;)&lt;br /&gt;
And data, wrapped in “translator” (&lt;code&gt;React.lazy&lt;/code&gt;, &lt;code&gt;ReactCache.createResource&lt;/code&gt;, etc).&lt;/p&gt;
&lt;h3&gt;What’s Next? Errors&lt;a href=&quot;#whats-next-errors&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Not all promises resolve.&lt;br /&gt;
Some are &lt;code&gt;Rejected&lt;/code&gt;.&lt;br /&gt;
I’ll show you how to handle that state next time.&lt;/p&gt;</content:encoded><category>react</category><category>web</category></item><item><title>My 2019 Portable Podcast Rig</title><link>https://chan.dev/my-2019-portable-podcast-rig</link><guid isPermaLink="true">https://chan.dev/my-2019-portable-podcast-rig</guid><description>Look at a portable podcast rig setup, including the recorder, microphones, accessories, and battery, designed to make on-the-go recording a breeze.</description><pubDate>Mon, 21 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Just packed my portable podcast rig for the first time this year.&lt;br /&gt;
It’s changed a lot and I thought I’d fill interested nerds in on the uppublishDates.&lt;/p&gt;
&lt;h2&gt;Case&lt;a href=&quot;#case&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1292/v1685921258/chan.dev/my-2019-portable-podcast-rig_case_open.png&quot; alt=&quot;Case&quot; /&gt;&lt;/p&gt;
&lt;p&gt;When I bought my &lt;a href=&quot;https://amzn.to/35V2sPF&quot; target=&quot;_blank&quot;&gt;Zoom H6 Portable Recorder&lt;/a&gt;, a &lt;a href=&quot;https://amzn.to/2MTTOba&quot; target=&quot;_blank&quot;&gt;Gator Titan Series case&lt;/a&gt; was included as a promo.&lt;br /&gt;
I’ve since sold the H6 but kept the case because it’s great.&lt;br /&gt;
I removed the insert and it holds everything that I need for 1:1 interview.&lt;/p&gt;
&lt;p&gt;I like this case because it fits easily inside one half of my carry-on sized rolling bag.&lt;/p&gt;
&lt;h2&gt;Recorder&lt;a href=&quot;#recorder&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1292/v1685921258/chan.dev/my-2019-portable-podcast-rig_recorder.png&quot; alt=&quot;Recorder&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I use the &lt;a href=&quot;https://amzn.to/2P4gFDP&quot; target=&quot;_blank&quot;&gt;Sound Devices MixPre&lt;/a&gt; as my portable recorder.&lt;br /&gt;
It’s also the recorder I use for my remote interviews.
It’s my favorite piece of electronic equipment.&lt;/p&gt;
&lt;p&gt;I upgraded because I needed a better backup system for remote interviews.&lt;br /&gt;
The SoundDevices — when used as a desktop interface — allows me to record an isolated backup of the guest track.&lt;br /&gt;
This has saved many episodes that might have been otherwise lost.&lt;/p&gt;
&lt;p&gt;As a portable system, it’s not markedly more impressive than the &lt;a href=&quot;https://amzn.to/35V2sPF&quot; target=&quot;_blank&quot;&gt;Zoom H6&lt;/a&gt; I used last year — when paired with &lt;a href=&quot;#microphones&quot;&gt;the right mic&lt;/a&gt;.&lt;br /&gt;
And I still recommend it for most.&lt;br /&gt;
It’s a great portable recorder for the price.&lt;/p&gt;
&lt;h2&gt;Microphones&lt;a href=&quot;#microphones&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1292/v1685921253/chan.dev/my-2019-portable-podcast-rig_microphones.png&quot; alt=&quot;Microphones&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I travel with two &lt;a href=&quot;https://www.bhphotovideo.com/c/product/643205-REG/Rode_M2_M2_Professional_Condenser_Handheld.html&quot; target=&quot;_blank&quot;&gt;Rode M2&lt;/a&gt; handheld condeser microphones.&lt;/p&gt;
&lt;p&gt;I also use this mic for my side of &lt;a href=&quot;https://chantastic.fm&quot; target=&quot;_blank&quot;&gt;React Podcast&lt;/a&gt; episodes &lt;a href=&quot;https://egghead.io/instructors/michael-chan&quot; target=&quot;_blank&quot;&gt;Egghead videos&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These mics handle non-ideal situations better than any other I’ve used.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;https://www.bhphotovideo.com/c/product/643205-REG/Rode_M2_M2_Professional_Condenser_Handheld.html&quot; target=&quot;_blank&quot;&gt;Rode M2&lt;/a&gt; has a tight hyper-cardiod polar pattern — which is very good at supressing background noise.&lt;br /&gt;
And it’s a condensor — which means it’s pretty easy for all recorders to drive without noise.&lt;br /&gt;
The built-in windscreen is also pretty good.&lt;/p&gt;
&lt;p&gt;Don’t buy this mic from Amazon.&lt;br /&gt;
They aren’t a trusted reseller.&lt;br /&gt;
So you won’t get support from Rode.&lt;br /&gt;
I bought mine from &lt;a href=&quot;https://www.bhphotovideo.com/c/product/643205-REG/Rode_M2_M2_Professional_Condenser_Handheld.html&quot; target=&quot;_blank&quot;&gt;B&amp;amp;H&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Backup and Alternative Microphones&lt;a href=&quot;#backup-and-alternative-microphones&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;I also bring a pair of the impressively cheap, &lt;a href=&quot;https://amzn.to/2P7QWKw&quot; target=&quot;_blank&quot;&gt;Pyle-Pro PDMIC58&lt;/a&gt; microphones as a backup.&lt;br /&gt;
Or as additional mics for more people.&lt;/p&gt;
&lt;p&gt;These are a great sub-$20 starter mics.&lt;br /&gt;
You can hear them on [Episode 52 of React Podcast with Sophia Shoemaker].&lt;/p&gt;
&lt;p&gt;For just a few bucks more, pickup the &lt;a href=&quot;https://amzn.to/31B65XA&quot; target=&quot;_blank&quot;&gt;Behringer Ultravoice Xm8500&lt;/a&gt;.&lt;br /&gt;
I wasn’t aware of this mic when I got my cheap backups.&lt;br /&gt;
If I had been, I’d have bought it over the Pyle Pro.&lt;/p&gt;
&lt;p&gt;Of course you can use the versitility winner — &lt;a href=&quot;https://amzn.to/35Ubr3p&quot; target=&quot;_blank&quot;&gt;Samson Q2U&lt;/a&gt; — with this setup.&lt;br /&gt;
A mic that can be used directly with USB.&lt;/p&gt;
&lt;h2&gt;Accessories&lt;a href=&quot;#accessories&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A list of all teh accessories I use&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1292/v1685921255/chan.dev/my-2019-portable-podcast-rig_accessories.png&quot; alt=&quot;accessories&quot; /&gt;&lt;/p&gt;
&lt;h3&gt;Windscreen&lt;a href=&quot;#windscreen&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;I use &lt;a href=&quot;https://www.amazon.com/Mudder-Cover-Handheld-Microphone-Windscreen/dp/B019OO4IY6/ref=sr_1_3?crid=3QSCB56EWOF0V&amp;amp;keywords=sm58+windscreen&amp;amp;qid=1571696498&amp;amp;sprefix=sm58+%2Caps%2C192&amp;amp;sr=8-3&quot; target=&quot;_blank&quot;&gt;these cheap windscreens&lt;/a&gt; to cut down on wind and reduce plosives.&lt;br /&gt;
They work exceptionally well — even up close — if I pull them an inch off of the grill of the microphone.&lt;/p&gt;
&lt;p&gt;Again, what I use for my side of React Podcast.&lt;/p&gt;
&lt;h3&gt;Stand&lt;a href=&quot;#stand&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;These &lt;a href=&quot;https://amzn.to/2BwevF1&quot; target=&quot;_blank&quot;&gt;foldable tabletop stands by ammoon&lt;/a&gt; are great for travel.&lt;/p&gt;
&lt;p&gt;They take up very little space and are wicked stable.&lt;/p&gt;
&lt;p&gt;I use the &lt;a href=&quot;https://amzn.to/2J7i08T&quot; target=&quot;_blank&quot;&gt;Audio-Technica AT8415 Microphone Shock Mount&lt;/a&gt; because it’s small, effective, and the rubberbands are easily replaced.&lt;/p&gt;
&lt;h3&gt;Cable&lt;a href=&quot;#cable&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Thes &lt;a href=&quot;https://amzn.to/2oRR5aA&quot; target=&quot;_blank&quot;&gt;tiny XLR cables by Cable Matters&lt;/a&gt; are great for travel and have been reliable for me.&lt;br /&gt;
Bring at least one backup.&lt;/p&gt;
&lt;h2&gt;Battery&lt;a href=&quot;#battery&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1292/v1685921256/chan.dev/my-2019-portable-podcast-rig_battery.png&quot; alt=&quot;battery&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I use the &lt;a href=&quot;https://amzn.to/2qwhWct&quot; target=&quot;_blank&quot;&gt;Sound Devices MX-LMount Battery Sled&lt;/a&gt; and &lt;a href=&quot;https://www.amazon.com/NP-F550-RAVPower-Battery-CCD-SC55-Replacement/dp/B0761SH551/ref=sr_1_1?keywords=ravpower+l-series&amp;amp;qid=1571695955&amp;amp;sr=8-1&quot; target=&quot;_blank&quot;&gt;RAVPower NPF5500 batteries&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I like the LMount sled because it mounts two batteries.&lt;br /&gt;
If one fails during a recording, there’s a backup.&lt;/p&gt;
&lt;p&gt;I like the RAVPower batteries because the charger uses USB — which I always have wall adapters for.&lt;/p&gt;
&lt;p&gt;As an alternative — or additional backup — I can use my &lt;a href=&quot;https://amzn.to/2MABTrp&quot; target=&quot;_blank&quot;&gt;Anker PowerCore+ 20100&lt;/a&gt; notebook battery bank as a power source.&lt;/p&gt;
&lt;h2&gt;Disclosure&lt;a href=&quot;#disclosure&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Most of these links are Amazon Affiliate links.
So I’ll get a tiny little bit of money if you click on a link and then buy something.&lt;br /&gt;
The Rode M2 links to B&amp;amp;H because Amazan is not an approved retailer.&lt;/p&gt;</content:encoded><category>audio</category><category>gear</category></item><item><title>Do  Better</title><link>https://chan.dev/do-better</link><guid isPermaLink="true">https://chan.dev/do-better</guid><description>Do better for yourself by discovering and pursuing the work that only you can bring to the world, and support friends in their journey for self-improvement.</description><pubDate>Thu, 17 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Do better&lt;/p&gt;
&lt;p&gt;Not because I just said so
Not because it’ll might make someone in your life happier&lt;/p&gt;
&lt;p&gt;Do better for you&lt;/p&gt;
&lt;p&gt;If The Bible is true — and I think it is —
God gave humans two things: work and relationship&lt;/p&gt;
&lt;p&gt;And we fucked it up trying to get more knowledge&lt;/p&gt;
&lt;p&gt;Do your work
Not your job — your work&lt;/p&gt;
&lt;p&gt;Find the thing you know deep down in the pit of your stomach is work that only you can breath into the world
Do it every day
Do it better every day&lt;/p&gt;
&lt;p&gt;And high-five your friends when they do the same&lt;/p&gt;
&lt;p&gt;🏋️‍♂️ chan&lt;/p&gt;</content:encoded><category>life</category><category>faith</category></item><item><title>It Takes what it Takes —  On Dyslexia</title><link>https://chan.dev/it-takes-what-it-takes-on-dyslexia</link><guid isPermaLink="true">https://chan.dev/it-takes-what-it-takes-on-dyslexia</guid><description>Dive into the world of dyslexia, where reading is challenging, but patience and resilience become your greatest allies.</description><pubDate>Wed, 09 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I have dyslexia.&lt;/p&gt;
&lt;p&gt;Dyslexia is often represented as letters all jumbled up
But that’s not totally accurate.&lt;/p&gt;
&lt;p&gt;For me it’s the experience of reading something,
Thinking I understand it,
Then realizing I misread key words or negations — like “not” on “n’t” — that change the intent.
Or I transpose “Meeting at 3PM” to “Meeting at 4PM” for no discernible reason.&lt;/p&gt;
&lt;p&gt;As a result, it takes me longer to do everything.
I double and triple check my work and — despite extra attention — I often throw out large swaths of effort done in the wrong direction.&lt;/p&gt;
&lt;p&gt;This forced me to learn patience.
It takes what it takes to get a job done.
I can learn to enjoy the entire process
Or do half the work pissed that I’m still doing it.&lt;/p&gt;
&lt;p&gt;Be patient with yourself.
You’ll get there; enjoy the whole process.&lt;/p&gt;
&lt;p&gt;🔂 Chan&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Don&apos;t Be Timid</title><link>https://chan.dev/dont-be-timid</link><guid isPermaLink="true">https://chan.dev/dont-be-timid</guid><description>Entertain by being bold and unapologetic, shedding your ego, and embracing risks. Audiences seek inspiration in your fearlessness and authenticity</description><pubDate>Wed, 02 Oct 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;People are simple.
They want to see you win or crash and burn trying.&lt;/p&gt;
&lt;p&gt;So, don’t be timid.&lt;/p&gt;
&lt;p&gt;If you want to entertain people,
Remember that &lt;em&gt;you&lt;/em&gt; don’t matter.
Attempts to protect your precious ego make you boring.&lt;/p&gt;
&lt;p&gt;Crowds don’t show up for you.
They show up for them.
You just represent who they want to be:
Bold, confident, unrelenting, up for anything, the voice of reason…&lt;/p&gt;
&lt;p&gt;They already own timidness.
They’ve got closets full of it —
Covering and grounding their ambition.
But they watch and wait to see what happens to you.
Maybe it could happen to them.&lt;/p&gt;
&lt;p&gt;Will you be praised or punished?
Crowned or crucified?
Raised or ruined?&lt;/p&gt;
&lt;p&gt;Who knows?
But you don’t wait to find out.
Hell or high water,
You are you.&lt;/p&gt;
&lt;p&gt;No apologies.
No excuses.
Bounty or bruises,
You show up.
You do you.&lt;/p&gt;
&lt;p&gt;Keep doin’ you.&lt;/p&gt;
&lt;p&gt;🤕 chan&lt;/p&gt;</content:encoded><category>life</category><category>speaking</category></item><item><title>Fair and Impartial</title><link>https://chan.dev/fair-and-impartial</link><guid isPermaLink="true">https://chan.dev/fair-and-impartial</guid><description>Jury duty reveals the emotional impact of personal stories. Acknowledge that everyone has a hidden struggle and practice empathy in daily life.</description><pubDate>Wed, 25 Sep 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Monday morning, I walked into a courtroom with 64 other prospective jurors.
The question: could 12 of us hear a criminal case and remain fair and impartial?&lt;/p&gt;
&lt;p&gt;I walked in believing I could.
I left knowing I couldn’t.&lt;/p&gt;
&lt;p&gt;Being part of jury selection on a criminal case is emotional.
I heard 64 stories of the worst days people had ever experienced.
Rape, murder, abuse, life altering theft…
Heart-breaking stories.&lt;/p&gt;
&lt;p&gt;On day one, we were all plotting ways to be released and talking about our jobs.
By day two, folks were scheduling appointments with their therapist and consoling each other over shared grief.&lt;/p&gt;
&lt;p&gt;Everyone has a shitty story buried inside.&lt;/p&gt;
&lt;p&gt;So, why was I released?&lt;/p&gt;
&lt;p&gt;Every time I saw the defendant, I thought of my uncle.
He was only a few years older than me so we were like cousins.
He spent seven years in prison for attempted murder and assault with a deadly weapon.&lt;/p&gt;
&lt;p&gt;I couldn’t be the one to put him there.&lt;/p&gt;
&lt;p&gt;👨‍⚖️ chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>I&apos;m a Toys R Us kid</title><link>https://chan.dev/i&apos;m-a-toys-are-us-kid</link><guid isPermaLink="true">https://chan.dev/i&apos;m-a-toys-are-us-kid</guid><description>A definitely-dad frame is breaking the spirit of what I hope is his child&apos;s Penny skateboard. Crack. Thud. An inscrutable but impressive string of profanities.</description><pubDate>Wed, 18 Sep 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The guy in front of me is closing the gap on 40.
He’s not heavy but he’s definitely a dad — you know?&lt;/p&gt;
&lt;p&gt;His not-quite-heavy-but-definitely-dad frame is breaking the spirit of what I hope is his child’s Penny skateboard.
It hasn’t broken in half — yet —
So, I assume he’s never ridden it.&lt;/p&gt;
&lt;p&gt;I laugh,
Tune it out,
And return to my podcast when&lt;/p&gt;
&lt;p&gt;Crack! Thud. “Fuck”&lt;/p&gt;
&lt;p&gt;I look back and definitely-dad’s face is grinding against the concrete.
$5000 of Apple products spilled from every pocket.
And he’s unleashing an inscrutable but impressive string of profanities.&lt;/p&gt;
&lt;p&gt;The skateboard rolls slowly away from him and back toward me.&lt;/p&gt;
&lt;p&gt;I’m laughing my ass off
But I’m trying hard not to.&lt;/p&gt;
&lt;p&gt;He collects his expensive accessories, limps toward me to collect his son’s tiny skateboard — somehow it looks even smaller up close — and says:
“Yeah. I’d definitely be laughing too.”&lt;/p&gt;
&lt;p&gt;He gets back on that microscopic board and rides away.&lt;/p&gt;
&lt;p&gt;— The tween behind me on the street last Wednesday&lt;/p&gt;
&lt;p&gt;P.S.
How are you feeling your age this week?&lt;/p&gt;</content:encoded><category>life</category></item><item><title>I&apos;m Angry. Are you?</title><link>https://chan.dev/i&apos;m-angry-are-you</link><guid isPermaLink="true">https://chan.dev/i&apos;m-angry-are-you</guid><description>My dad wanted to be white. He went places he wasn&apos;t welcome and he took us with him. I got my confidence from him. But I came with a big white chip on my shoulder.</description><pubDate>Wed, 04 Sep 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My dad wanted to be white.&lt;/p&gt;
&lt;p&gt;He married a white girl.
He took us to white church.
He had white friends and white business partners.
He refused to teach us Chinese.
And on family vacations he’d stay out of the sun because he didn’t want to get “too tan.”&lt;/p&gt;
&lt;p&gt;He went places he wasn’t welcome and he took us with him.
I got my confidence from him
But I came with a big white chip on my shoulder.&lt;/p&gt;
&lt;p&gt;I saw him take shit.
I watched him jump through extra hoops and get passed over.
He was laughed at, dismissed, overlooked and so were we.&lt;/p&gt;
&lt;p&gt;I’m angry about it.
That anger comes out in unpredictable ways.
And I see folks who endure true racial tragedies and think about how angry they are.
I think about how angry they have right to be.&lt;/p&gt;
&lt;p&gt;I don’t know what to do with that.
But I want to be honest:
We’re not good.
I’m angry.
And I think you might be too.&lt;/p&gt;
&lt;p&gt;What can we do?
How do we overcome our wounds and move closer to each other?&lt;/p&gt;
&lt;p&gt;😡 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Your Sense of Security is a Threat</title><link>https://chan.dev/your-sense-of-security-is-a-threat</link><guid isPermaLink="true">https://chan.dev/your-sense-of-security-is-a-threat</guid><description>Fights arise from seeking security. Empathize with others to bridge gaps. Be aware of how your security needs affect others.</description><pubDate>Wed, 28 Aug 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;All of our fighting is over a sense of security.&lt;/p&gt;
&lt;p&gt;When I fight with Nellie about money,&lt;/p&gt;
&lt;p&gt;It’s a fight over security.&lt;/p&gt;
&lt;p&gt;I want the security of having money.&lt;/p&gt;
&lt;p&gt;She wants the security having experiences.&lt;/p&gt;
&lt;p&gt;When I fight with my team over a design,&lt;/p&gt;
&lt;p&gt;We’re fighting over security.&lt;/p&gt;
&lt;p&gt;I want the security of having stability.&lt;/p&gt;
&lt;p&gt;They want the security of having the freedom of expression.&lt;/p&gt;
&lt;p&gt;Neither side is right.&lt;/p&gt;
&lt;p&gt;Neither side is wrong.&lt;/p&gt;
&lt;p&gt;We’re fighting for our own security — at the expense of others.&lt;/p&gt;
&lt;p&gt;But if we can identify that familiar motivation in others,&lt;/p&gt;
&lt;p&gt;Their position doesn’t feel as far away.&lt;/p&gt;
&lt;p&gt;We can empathize because we want the same thing.&lt;/p&gt;
&lt;p&gt;So be mindful.&lt;/p&gt;
&lt;p&gt;Security is threatening.&lt;/p&gt;
&lt;p&gt;Consider how yours threatens those you fight with.&lt;/p&gt;
&lt;p&gt;Your friend,&lt;/p&gt;
&lt;p&gt;chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>My Career Changed on a Water Slide</title><link>https://chan.dev/my-career-chaged-on-a-water-slide</link><guid isPermaLink="true">https://chan.dev/my-career-chaged-on-a-water-slide</guid><description>Life-changing moments can be unexpected. Find out how an hour by a water slide led to a total career shift.</description><pubDate>Wed, 14 Aug 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There’s a water slide at a local resort where my career changed.&lt;/p&gt;
&lt;p&gt;At the end of 2013, I wrote my first React component.
It got 86’d in code review but it was clear that React was the future I wanted.&lt;/p&gt;
&lt;p&gt;So, that spring — on a weekend vacation — I read the React docs on my phone while Rock went up and down a children’s water slide a hundred times.&lt;/p&gt;
&lt;p&gt;He didn’t mind me ignoring him and I didn’t mind him splashing my every 45 seconds.&lt;/p&gt;
&lt;p&gt;I had no idea how that hour would direct my next five years.&lt;/p&gt;
&lt;p&gt;The company I work for ended up writing a React app.
The lessons I learned turned into a &lt;a href=&quot;https://learnreact.com&quot; target=&quot;_blank&quot;&gt;bunch&lt;/a&gt; &lt;a href=&quot;https://reactcheatsheet.com&quot; target=&quot;_blank&quot;&gt;of&lt;/a&gt; &lt;a href=&quot;https://reactpatterns.com&quot; target=&quot;_blank&quot;&gt;resources&lt;/a&gt;, &lt;a href=&quot;https://www.youtube.com/watch?v=ERB1TJBn32c&amp;amp;t=4s&quot; target=&quot;_blank&quot;&gt;a&lt;/a&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=YaZg8wg39QQ&quot; target=&quot;_blank&quot;&gt;few&lt;/a&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=T9-Mb_axNgA&quot; target=&quot;_blank&quot;&gt;conference&lt;/a&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=-NP_upexPFg&quot; target=&quot;_blank&quot;&gt;talks&lt;/a&gt;, and then React Podcast.&lt;/p&gt;
&lt;p&gt;5 1/2 years later, I’m at JSConf US watching Ruby go down the same slide a hundred times.
This time I’m actually watching — grateful and nostalgic for all the people I’ve met and moments we’ve shared.&lt;/p&gt;
&lt;p&gt;🥰 chan&lt;/p&gt;
&lt;p&gt;Question:
What have your big career moments been?
Did they catch you by surprise?&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>The Secret of Narrative...</title><link>https://chan.dev/the-secret-of-narrative</link><guid isPermaLink="true">https://chan.dev/the-secret-of-narrative</guid><description>Share transformation, not information. Rewrite your story to connect with your audience and make it engaging. Can transformation help you tell a better story?</description><pubDate>Thu, 08 Aug 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m obsessed with narrative.
Mostly because I suck at it.
When I start telling a story, crowds crumble.
Adults remember to take their medication.
Children suddenly need naps.
It’s bad.&lt;/p&gt;
&lt;p&gt;But in 2015 I stumbled onto the secret of narrative.&lt;/p&gt;
&lt;p&gt;150 hours into prep for &lt;a href=&quot;https://www.youtube.com/watch?v=ERB1TJBn32c&quot; target=&quot;_blank&quot;&gt;my first conference talk&lt;/a&gt;, my friend Brian raised a flag:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You know you’re stupid as a brick for thinking developers should write CSS in JavaScript.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;He was wrong and he was right.
The information I had was good but the talk was bad.
It wasn’t inviting.
There was nothing in it for someone who needed to be convinced.&lt;/p&gt;
&lt;p&gt;So I rewrote it to speak directly to Brian —
Removing unecessary details and focusing on what changed to lead a transformation my in thinking.&lt;/p&gt;
&lt;p&gt;This shift from information to transformation made all the difference
Because transformation is the secret of narrative.&lt;/p&gt;
&lt;p&gt;There are plenty of frameworks for fleshing out narrative
And I’ll talk more about those in coming weeks.
Until then, one of my favorites is &lt;a href=&quot;https://blog.reedsy.com/dan-harmon-story-circle/&quot; target=&quot;_blank&quot;&gt;Dan Harmon’s Story Circle&lt;/a&gt;.
He’s the creator of Rick and Morty and Community.
So I’d say he gets it.&lt;/p&gt;
&lt;p&gt;Where do you think communicating transformation could help you tell a better story?&lt;/p&gt;
&lt;p&gt;🦋 chan&lt;/p&gt;</content:encoded><category>speaking</category><category>content</category></item><item><title>What if Nothing Matters but Communication</title><link>https://chan.dev/what-if-nothing-matters-but-communication</link><guid isPermaLink="true">https://chan.dev/what-if-nothing-matters-but-communication</guid><description>Communication matters more than being right; a united team can achieve more than an individualized one. Focus on discussion, education, and ongoing conversation.</description><pubDate>Thu, 01 Aug 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Last year I gave talk — &lt;a href=&quot;https://www.youtube.com/watch?v=-NP_upexPFg&quot; target=&quot;_blank&quot;&gt;Hot Garbage: Clean Code is Dead&lt;/a&gt;.
It’s about my journey as a programmer and accidental decent into being an asshole.
The practical take away is that uncertainty isn’t as bad as we fear.
Often we don’t have enough information to make a right decision and that’s fine.
We make an incorrect decision and fix it in time.&lt;/p&gt;
&lt;p&gt;It’s good. You should watch it.&lt;/p&gt;
&lt;p&gt;That talk spun up a question that I can’t shake:
What if nothing matters but communication?
Can a team that’s naive — but united — cover more ground than a team that’s right but individualized?&lt;/p&gt;
&lt;p&gt;That question has changed the way I work.&lt;/p&gt;
&lt;p&gt;Instead of seeking an answer, I seek discussion.
Instead of trying to persuade, I try to educate.
For every interaction, the goal isn’t an outcome but a continuation of the conversation.
And that conversation is delicate.&lt;/p&gt;
&lt;p&gt;My hope is that a strong team, with a healthy process, will make better decisions with time —
Even if we have to burn a few early decisions.&lt;/p&gt;
&lt;p&gt;This is new experiment for me.
What’s your experience?
Have you been on teams that focus on unity over outcomes?
What was the effect on work and moral?&lt;/p&gt;
&lt;p&gt;🤔 chan&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Life is Right Now</title><link>https://chan.dev/life-is-right-now</link><guid isPermaLink="true">https://chan.dev/life-is-right-now</guid><description>I&apos;m in bed with the flu, quarantined to my office for 6 days. I hear stories, games, neighbors visiting. There&apos;s always death. But life is right now.</description><pubDate>Wed, 24 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m in bed with the flu.&lt;br /&gt;
I’ve been here for 6 days.&lt;br /&gt;
For that entire time I’ve been quarantined to my office — keeping the rest of my family from the same fate.&lt;/p&gt;
&lt;p&gt;I hear everything happening —&lt;br /&gt;
Stories being read,&lt;br /&gt;
Games being played,&lt;br /&gt;
Neighbors visiting —&lt;br /&gt;
But I’m not taking part in any of it.&lt;/p&gt;
&lt;p&gt;I’m back here doing work, watching seasons of television I’ve missed, and thinking about death.&lt;br /&gt;
I think about relatives who passed and how — toward the end — they became mentally or physically detached from their lives.&lt;br /&gt;
And that scare the shit out me.
But it’s a great reminder.&lt;/p&gt;
&lt;p&gt;Right now I have health and family — a once in a lifetime adventure.&lt;br /&gt;
There is always work to done,&lt;br /&gt;
There is always TV to catch up on,&lt;br /&gt;
And there is always death.&lt;br /&gt;
But life is right now.&lt;/p&gt;
&lt;p&gt;When I get out of this bed I plan join my family and knock the pants off the remaining weeks of summer.&lt;/p&gt;
&lt;p&gt;Care to join me?&lt;/p&gt;
&lt;p&gt;🌞 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Do the Thing</title><link>https://chan.dev/do-the-thing</link><guid isPermaLink="true">https://chan.dev/do-the-thing</guid><description>I wanted to make training videos. Instead I built a multi-tenant app in a framework I didn&apos;t know. Creation is a battle with ego. Ego hates simple things.</description><pubDate>Wed, 17 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This is my modus operandi:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have an idea&lt;/li&gt;
&lt;li&gt;Sit down to work&lt;/li&gt;
&lt;li&gt;Work on something different&lt;/li&gt;
&lt;li&gt;Let the idea die&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When I decided to make developer training videos,&lt;br /&gt;
I sat down and built a multi-tenant app for selling video subscriptions in a hawt-shit web framework I didn’t know.&lt;/p&gt;
&lt;p&gt;I &lt;em&gt;didn’t&lt;/em&gt; make a video.&lt;/p&gt;
&lt;p&gt;I’ve missed out on a lot of opportunities because of that.&lt;br /&gt;
But I learned something invaluable about work.&lt;/p&gt;
&lt;p&gt;Creation is a battle with ego.&lt;br /&gt;
Ego hates the indignity of work.&lt;br /&gt;
It hates simple things.&lt;br /&gt;
And when forced to work, ego redirects effort toward bigger, brighter, bolder goals.&lt;/p&gt;
&lt;p&gt;This is why your blog looks like a dream but has no posts.&lt;br /&gt;
It’s why your manager adds “just one more thing” before presenting your work to the executive team.&lt;br /&gt;
And it’s why you won’t contribute a dime to your 401k before identifying the perfect funds.&lt;/p&gt;
&lt;p&gt;Ego refuses to look foolish.&lt;br /&gt;
So it counters your little idea with a &lt;a href=&quot;https://www.goodreads.com/work/quotes/56765588-finish-give-yourself-the-gift-of-done&quot; target=&quot;_blank&quot;&gt;noble obstacle&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Resist.&lt;br /&gt;
Keep your head down.&lt;br /&gt;
Do the thing.&lt;br /&gt;
Feel the shame of it.&lt;br /&gt;
Embrace the smallness.&lt;br /&gt;
Don’t let ego derail you.&lt;/p&gt;
&lt;p&gt;⛏ &lt;a href=&quot;https://twitter.com/chantastic&quot; target=&quot;_blank&quot;&gt;chantastic&lt;/a&gt;&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Steal From the Players Who Beat You</title><link>https://chan.dev/steal-from-the-players-who-beat-you</link><guid isPermaLink="true">https://chan.dev/steal-from-the-players-who-beat-you</guid><description>Trying harder isn&apos;t always the answer. Instead, learn from those who succeed, adopt their strategies, and change your direction. What&apos;s holding you back?</description><pubDate>Wed, 10 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My kids are deep into the card game Sushi Go.&lt;/p&gt;
&lt;p&gt;The first week of gameplay, Rock lost every game.&lt;br /&gt;
He was fed up on Sunday.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I try harder than all of you and I’m always last!&lt;br /&gt;
This game isn’t fair.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That resonates with me.&lt;br /&gt;
Trying hard, losing, watching others succeed.&lt;br /&gt;
I’m sure it resonates with you too.&lt;/p&gt;
&lt;p&gt;It feels fair that if you try harder, you get further.&lt;br /&gt;
But direction is more important than effort.&lt;br /&gt;
Effort in the wrong direction takes you further from a goal.&lt;/p&gt;
&lt;p&gt;So I tell him:&lt;/p&gt;
&lt;p&gt;Your strategy sucks.&lt;br /&gt;
It doesn’t matter how hard you try.&lt;br /&gt;
Stockpiling Maki only gets you a 6 points per round.&lt;br /&gt;
You’re gonna lose.&lt;br /&gt;
Pull your head out of your butt and try something different.&lt;br /&gt;
Steal from the players who beat you.&lt;/p&gt;
&lt;p&gt;He did.&lt;br /&gt;
Now he’s winning.&lt;br /&gt;
Guess I need to steal from him now.&lt;/p&gt;
&lt;p&gt;🍣 chantastic&lt;/p&gt;
&lt;p&gt;Question:
Where do you put effort in the wrong direction?&lt;br /&gt;
Where does ego prevent you from identifying a better strategy?&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Destinations are Disappointments. Do What Makes You Happy</title><link>https://chan.dev/destinations-are-dissapointments-do-what-makes-you-happy</link><guid isPermaLink="true">https://chan.dev/destinations-are-dissapointments-do-what-makes-you-happy</guid><description>Focus on what brings joy, not external validation, to avoid disappointment and embrace true happiness in daily activities like writing, podcasting, or cooking.</description><pubDate>Wed, 03 Jul 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Sheryl Crow has possessed my mind.&lt;/p&gt;
&lt;p&gt;I wasn’t a fan 2 decades ago&lt;br /&gt;
But — this week — If It Makes You Happy is dominating my subconscious like it did the radio waves of the 90s.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If it makes you happy, it can’t be that bad.&lt;br /&gt;
If it makes you happy, then why the hell are you so sad?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I’m singing it at the top of my lungs, driving down the coast,&lt;br /&gt;
and it smacks me in the face:&lt;br /&gt;
She’s singing to herself.&lt;br /&gt;
She’s negotiating with the disappointment arriving.&lt;/p&gt;
&lt;p&gt;Into my 30s, I know that type of sadness.&lt;br /&gt;
I know that it’ll be with me regardless of the destination.&lt;br /&gt;
But — like Sheryl — I get to choose why I’m sad.&lt;br /&gt;
I can be sad doing things that make me happy.&lt;/p&gt;
&lt;p&gt;Right now, that’s writing.&lt;br /&gt;
It’s podcasting.&lt;br /&gt;
It’s making my bed and cooking meals for the family.&lt;/p&gt;
&lt;p&gt;Stars, likes, RTs, followers, promotions, and subscriber counts be damned;&lt;br /&gt;
You never made me happy.&lt;/p&gt;
&lt;p&gt;🎭 chantastic
&lt;a href=&quot;https://www.biblegateway.com/passage/?search=Ecclesiastes+1%3A1-11&amp;amp;version=ESV&quot; target=&quot;_blank&quot;&gt;https://www.biblegateway.com/passage/?search=Ecclesiastes+1%3A1-11&amp;amp;version=ESV&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PS.
What makes you happy?&lt;br /&gt;
Have you diminished it to gain something that only makes you sad?&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Get the Raise</title><link>https://chan.dev/get-the-raise</link><guid isPermaLink="true">https://chan.dev/get-the-raise</guid><description>I&apos;m shit at negotiation. But I learned that visible people find more opportunities than invisible people. Here&apos;s what 10 years of tech work taught me about salary.</description><pubDate>Wed, 26 Jun 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This week, three of you asked me about salary negotiation.&lt;/p&gt;
&lt;p&gt;I’m shit at negotiation&lt;br /&gt;
But I can tell you what I’ve learned in 10 years of full-time tech work.&lt;/p&gt;
&lt;p&gt;Become visible.&lt;br /&gt;
Visible people find more opportunities than invisible people.&lt;/p&gt;
&lt;p&gt;I’ve received exactly one raise that wasn’t driven by me.&lt;br /&gt;
I was moved between teams and my new manager immediately bumped me up $10k.&lt;br /&gt;
Turns out he was embarrassed by how little I was being paid.&lt;/p&gt;
&lt;p&gt;That was a wake up call.&lt;/p&gt;
&lt;p&gt;That year I started creating training materials and giving conference talks.&lt;br /&gt;
I made industry relationships and asked them what their compensation looked liked.&lt;/p&gt;
&lt;p&gt;I learned that I was still 25-35% under market.&lt;br /&gt;
So I asked for it and got it.&lt;/p&gt;
&lt;p&gt;This would not have happened if I hadn’t been proactive.&lt;br /&gt;
I would have remained unaware and waiting.&lt;/p&gt;
&lt;p&gt;It’s not a company’s job to serve your career.&lt;br /&gt;
Companies exist to make money.&lt;br /&gt;
Part of that equation is keeping expenses low&lt;br /&gt;
And you are an expensive expense.&lt;br /&gt;
You need to be retained for as little as possible.&lt;br /&gt;
It’s your job to set that number.&lt;/p&gt;
&lt;p&gt;If you’re waiting for a raise —&lt;br /&gt;
Expecting someone else to notice and evaluate your work —&lt;br /&gt;
Stop.&lt;/p&gt;
&lt;p&gt;Be visible.&lt;br /&gt;
Meet people.&lt;br /&gt;
Ask them about money.&lt;br /&gt;
And go get it.&lt;/p&gt;
&lt;p&gt;💸 chantastic&lt;/p&gt;</content:encoded><category>career</category></item><item><title>Are We There Yet?</title><link>https://chan.dev/are-we-there-yet</link><guid isPermaLink="true">https://chan.dev/are-we-there-yet</guid><description>We daydreamed about Disney Aulani on 38k salaries. Years later we could afford it but I&apos;d moved on to bigger dreams. Nellie said: realize the old dream first.</description><pubDate>Wed, 19 Jun 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When my friend Mike and I got our first entry-level tech jobs, we’d daydream over lunch.&lt;br /&gt;
”One day we’ll take our families to Disney Aulani in Hawaii and YOLO.”&lt;/p&gt;
&lt;p&gt;Obviously this is an old dream.&lt;br /&gt;
People don’t say “YOLO” anymore.&lt;/p&gt;
&lt;p&gt;It was a delusion.&lt;br /&gt;
We were making an annual household incomes of 38k.&lt;br /&gt;
To drop 1/3 of that on a vacation was laughable.&lt;/p&gt;
&lt;p&gt;This year, we took that vacation.&lt;/p&gt;
&lt;p&gt;But it wasn’t a foregone conclusion.&lt;br /&gt;
Though we could afford it, I’d moved on to bigger and better dreams.&lt;br /&gt;
”What if we lived in Hawaii for a couple months?&quot;&lt;br /&gt;
&quot;Why just one island? Let’s live in them all!”&lt;/p&gt;
&lt;p&gt;These new dreams would have taken longer to realize and put the old dream on hold — again.&lt;/p&gt;
&lt;p&gt;Nellie convinced me that now was the right time to take this trip.&lt;br /&gt;
We needed to realize the old dream&lt;br /&gt;
And let the new dream be the next dream.&lt;/p&gt;
&lt;p&gt;She was right.&lt;/p&gt;
&lt;p&gt;It’s easy to hit skip on dreams.&lt;br /&gt;
We get to a destination and jump right to “what’s next?”&lt;br /&gt;
We pull out the map,&lt;br /&gt;
Chart a new course,&lt;br /&gt;
And lock on to the horizon.&lt;/p&gt;
&lt;p&gt;When we do that, we skip celebration.&lt;br /&gt;
We plan right thru victory.&lt;br /&gt;
We miss the moment
And find ourselves in a perpetual state of asking&lt;br /&gt;
”Are we there yet?”&lt;/p&gt;
&lt;p&gt;By realizing dreams — even old and outpublishDated one — we celebrated the victories that got us there.&lt;br /&gt;
We remember who we’ve been and realize who we are.&lt;/p&gt;
&lt;p&gt;Where are you at today?&lt;br /&gt;
Is it a place you didn’t imagine being five years ago?&lt;/p&gt;
&lt;p&gt;Celebrate the impossible victories that brought you here.&lt;br /&gt;
Remember how far you’ve come.&lt;/p&gt;
&lt;p&gt;🏔 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Fail Up</title><link>https://chan.dev/fail-up</link><guid isPermaLink="true">https://chan.dev/fail-up</guid><description>I got sunburnt twice on one vacation. I&apos;ve always taken twice as long to learn anything. That used to make me feel dumb. Now I read it as twice the tenacity.</description><pubDate>Wed, 12 Jun 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I learn slowly.&lt;/p&gt;
&lt;p&gt;On this vacation,&lt;br /&gt;
I got sunburnt twice.&lt;/p&gt;
&lt;p&gt;Vacation-jeopardizing, hydration watch sunburns that sidelined me for days.&lt;/p&gt;
&lt;p&gt;This is normal for me.&lt;br /&gt;
For as long as I remember,&lt;br /&gt;
I’ve taken twice as long to learn anything.&lt;/p&gt;
&lt;p&gt;That used to make me feel dumb.&lt;br /&gt;
It doesn’t anymore.&lt;br /&gt;
Now I read it as having twice as much tenacity.&lt;/p&gt;
&lt;p&gt;Failure doesn’t freak me out.&lt;br /&gt;
It shouldn’t freak you out either.
Failures are life’s learning receipts.&lt;/p&gt;
&lt;p&gt;Often, a colossal failure is just shy of a huge success.&lt;br /&gt;
Your instincts might have been correct but execution off.&lt;br /&gt;
Fail again.&lt;br /&gt;
Fail better.&lt;/p&gt;
&lt;p&gt;Eat your pride.&lt;br /&gt;
Don’t let your fragile ego jump to conclusions and miss a real lesson.&lt;br /&gt;
Keep making the mistake until you discover exactly which factor is off.&lt;br /&gt;
Then change it.&lt;br /&gt;
That factor won’t be what you assumed.&lt;/p&gt;
&lt;p&gt;For me?
UVs are off the charts in Hawaii.&lt;br /&gt;
I should be reapplying twice as often as at home.&lt;/p&gt;
&lt;p&gt;Live and learn.&lt;/p&gt;
&lt;p&gt;☀️ chantastic&lt;/p&gt;
&lt;p&gt;P.S.
Have you given up too soon on something you believe in?&lt;br /&gt;
Feel like it deserves a second chance?&lt;br /&gt;
Hit reply. I’d love to chat with you about it.&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Kill the Old You</title><link>https://chan.dev/kill-the-old-you</link><guid isPermaLink="true">https://chan.dev/kill-the-old-you</guid><description>I became an asshole by spending time with people in tech. The leader is just the most impetuous asshole in a room, right? So I stopped. I killed the bad program.</description><pubDate>Wed, 05 Jun 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I woke up on the first night of vacation with perfect clarity on two things.&lt;/p&gt;
&lt;p&gt;First, our server didn’t totally mess up the bill.&lt;br /&gt;
She just split the darks and lights when dividing the tab — Asians on one and whites on the other.&lt;/p&gt;
&lt;p&gt;Mystery solved.&lt;/p&gt;
&lt;p&gt;Second, this has been my best year yet.&lt;/p&gt;
&lt;p&gt;Last year I gave a talk titled Hot Garbage: Clean Code is Dead.&lt;br /&gt;
On the surface it’s about the destructive nature of labeling code “clean” or “ugly”.&lt;/p&gt;
&lt;p&gt;Under the surface the talk is about me becoming an asshole by spending time with people in tech.&lt;br /&gt;
Being an asshole was something I learned by osmosis — reading forums and working on development teams.&lt;br /&gt;
The leader is just the most impetuous asshole in a room, right?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;if you can’t dazzle them with brilliance, baffle them with bull — W.C. Fields&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There was no part of me that liked the new me.&lt;br /&gt;
So I stopped.&lt;br /&gt;
I killed the bad program.&lt;br /&gt;
I stopped holding strong opinions.
I stopped arguing.&lt;br /&gt;
I stopped chasing “clean”.&lt;br /&gt;
And my life got better…
Slowly.&lt;/p&gt;
&lt;p&gt;Your sins have long legs.&lt;br /&gt;
They don’t stop because you do.&lt;br /&gt;
They run a muck for a bit,&lt;br /&gt;
taunting and testing the new you.&lt;br /&gt;
It’ll take a while to fully develop the new you.&lt;br /&gt;
It’ll take even longer for others to trust the new you.&lt;/p&gt;
&lt;p&gt;Don’t be discouraged.&lt;br /&gt;
Your effort is worth it.&lt;br /&gt;
Renewing and reinventing yourself always is.&lt;/p&gt;
&lt;p&gt;As one who’s 18 months into the process, I want you to know that it gets easier.&lt;br /&gt;
Before you know it,&lt;br /&gt;
The new you will be the old you.&lt;/p&gt;
&lt;p&gt;👼 chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Outputs and Outcomes</title><link>https://chan.dev/outputs-and-outcomes</link><guid isPermaLink="true">https://chan.dev/outputs-and-outcomes</guid><description>Focus on output over outcome or input. Measure tangible actions and contributions to achieve goals, rather than obsessing over uncontrollable factors.</description><pubDate>Wed, 29 May 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When chasing an outcome, measure your output.&lt;/p&gt;
&lt;p&gt;In an online video — which I’ve since lost — a prodigious barista talks about his quest for the perfect shot of espresso.&lt;br /&gt;
”Grams of espresso out is more important than grams of water in. Finding balance is difficult but fixating on any single input is a recipe for failure.”&lt;/p&gt;
&lt;p&gt;I found this fascinating but self-evident.&lt;br /&gt;
It’s his philosophy of pursuit that struck me.&lt;/p&gt;
&lt;p&gt;His output is effort.&lt;br /&gt;
The outcome comes or it doesn’t.&lt;/p&gt;
&lt;p&gt;For him, this is an ongoing pursuit.&lt;br /&gt;
He hasn’t made the perfect shot.&lt;br /&gt;
He never will because perfection is a fantasy.&lt;br /&gt;
But his output is real.&lt;/p&gt;
&lt;p&gt;I get hung up on outcome —
Millionaire,
Famous,
New York Times Best Seller…&lt;/p&gt;
&lt;p&gt;When I can’t control outcome, I fixate on optimizing input —
Income,
Followers/subs/viewers,
A better pencil.&lt;/p&gt;
&lt;p&gt;But output is what matters —
Money invested,
Community contributions made,
Writing published.&lt;/p&gt;
&lt;p&gt;You are what you measure.&lt;br /&gt;
When chasing an outcome,&lt;br /&gt;
Measure your output.&lt;/p&gt;
&lt;p&gt;📐 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Caring Can&apos;t Get You Control</title><link>https://chan.dev/caring-cant-get-you-control</link><guid isPermaLink="true">https://chan.dev/caring-cant-get-you-control</guid><description>Ruby battles multiple cancers since birth, showing the harsh reality that caring doesn&apos;t grant control. Together, we face life&apos;s challenges with hope.</description><pubDate>Wed, 22 May 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Ruby’s been fighting cancer for 5 years.&lt;/p&gt;
&lt;p&gt;She won some kind of shit lottery.&lt;br /&gt;
Born 14 weeks premature, she recovered to start chemotherapy only weeks after her due publishDate.&lt;br /&gt;
Retinoblastoma took half of her vision.&lt;br /&gt;
And, as that treatment wrapped, she was diagnosed with another tumor causing mutation — neurofibromatosis.&lt;/p&gt;
&lt;p&gt;There are pretty much 0 kids with both.&lt;br /&gt;
So, her doctors aren’t sure what to expect for her.&lt;/p&gt;
&lt;p&gt;I hate talking about it.&lt;br /&gt;
I hate thinking about it.&lt;br /&gt;
I hate writing about it.&lt;br /&gt;
But, it’s the day after exams and writing about anything else feels disingenuous.&lt;/p&gt;
&lt;p&gt;I like sharing directives.&lt;br /&gt;
But there aren’t directive with cancer.&lt;br /&gt;
You show up and you’re along for the ride.&lt;br /&gt;
You fight but&lt;br /&gt;
Caring can’t get you control.&lt;/p&gt;
&lt;p&gt;Today, I’m just serving some realness.&lt;br /&gt;
I’m in the shit with you.&lt;br /&gt;
We’ll break thru together 🤗&lt;/p&gt;
&lt;p&gt;🏥 chantastic
Psalm 139:7-12&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>A Hammer Doesn&apos;t Make a Chair</title><link>https://chan.dev/a-hammer-doesn&apos;t-make-a-chair</link><guid isPermaLink="true">https://chan.dev/a-hammer-doesn&apos;t-make-a-chair</guid><description>I buy the dopest shit right away. My $10,000 DSLR didn&apos;t make photos. Shit can&apos;t make shit. I make shit.</description><pubDate>Wed, 15 May 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When I find a new hobby, I buy the dopest shit right away.&lt;/p&gt;
&lt;p&gt;A lot of people delay.&lt;br /&gt;
Meanwhile, they obsess and fester over what it would be like to own cool shit.&lt;/p&gt;
&lt;p&gt;Not me.&lt;br /&gt;
I buy it.&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;I want to be confronted with the cold, hard, timeless truth that a hammer doesn’t make a chair.&lt;/p&gt;
&lt;p&gt;My $10,000 DSLR didn’t make photos.&lt;br /&gt;
My $5,000 carbon fiber road bike doesn’t win races.
My $2,000 microphone and interfaces doesn’t make podcasts.&lt;/p&gt;
&lt;p&gt;Shit can’t make shit.&lt;br /&gt;
I make shit.&lt;/p&gt;
&lt;p&gt;When I buy the best and leave it to collect dust in my garage, I know that I’m the problem.&lt;/p&gt;
&lt;p&gt;So, Take your crappy tools and make something today.&lt;br /&gt;
Or buy some dope shit today and make the thing tomorrow 😅&lt;/p&gt;
&lt;p&gt;🛠 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>gear</category></item><item><title>More and Worse</title><link>https://chan.dev/more-and-worse</link><guid isPermaLink="true">https://chan.dev/more-and-worse</guid><description>Marriage, bills, kids — one with cancer. At 35, now is not a time for less but better. It&apos;s a time for more and worse.</description><pubDate>Wed, 08 May 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I don’t have trouble doing a thing perfectly.&lt;br /&gt;
Any monkey with time can achieve perfection.&lt;/p&gt;
&lt;p&gt;But time…&lt;br /&gt;
Most of us just don’t get enough time for perfect.&lt;/p&gt;
&lt;p&gt;4,732 weeks is the time most of us get.&lt;br /&gt;
We’re asleep for a third of that.&lt;br /&gt;
We’re barely awake for the rest.&lt;br /&gt;
And if we have &lt;em&gt;anything&lt;/em&gt; else going on,&lt;br /&gt;
There’s very little time for &lt;em&gt;our&lt;/em&gt; work — the work that makes us feel fulfilled.&lt;/p&gt;
&lt;p&gt;Dieter Rams famously coined “less but better” as his pinnacle principle for good design.&lt;/p&gt;
&lt;p&gt;It’s provocative.&lt;br /&gt;
It appeals to the part of me that believed I’d dedicate to a craft like Japanese swordsmithing.&lt;/p&gt;
&lt;p&gt;But I’m not there.&lt;/p&gt;
&lt;p&gt;Marriage, bills, kids — one with cancer, and a prematurely widowed mother…&lt;br /&gt;
At 35, I have to realize that&lt;br /&gt;
Now is not a time for “less but better”.&lt;/p&gt;
&lt;p&gt;Games, recitals, campouts, publishDates, birthdays, conferences, volunteering, and family gatherings…&lt;br /&gt;
These are the components of my life.&lt;br /&gt;
When I’m lucky,&lt;br /&gt;
I get a brief moments to push the needle on speaking, writing, or asking the perfect question.&lt;/p&gt;
&lt;p&gt;I’m stuck with “more and worse”.&lt;br /&gt;
But I’m starting to identify the potential.&lt;/p&gt;
&lt;p&gt;I’m learning how to focus.&lt;br /&gt;
I’m leaning what to prioritize.&lt;br /&gt;
I’m training to be ready for those briefs moments of better.&lt;/p&gt;
&lt;p&gt;I see them more clearly and strike more accurately.&lt;/p&gt;
&lt;p&gt;After this time,
I can’t be sure how many “less but butter” momentss I’ll have.&lt;br /&gt;
But I know they won’t escape me.&lt;/p&gt;
&lt;p&gt;⏳ chantastic&lt;/p&gt;
&lt;p&gt;Question:
Where in your life is an ideal holding you back?&lt;br /&gt;
Can you do something you love worse, today?&lt;/p&gt;</content:encoded><category>life</category><category>family</category></item><item><title>Sound Epic in Audio</title><link>https://chan.dev/sound-epic-in-audio</link><guid isPermaLink="true">https://chan.dev/sound-epic-in-audio</guid><description>Want to sound greeat without breaking the bank? Learn how to achieve 80% epic for just $60 and find a mic that will grow with you.</description><pubDate>Wed, 01 May 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Audio is becoming more important for communication.&lt;/p&gt;
&lt;p&gt;Starting a podcast?&lt;br /&gt;
Recording videos for YouTube?&lt;br /&gt;
Taking your first remote job?&lt;/p&gt;
&lt;p&gt;Presenting yourself well with audio is critical.&lt;/p&gt;
&lt;p&gt;I host a podcast.&lt;br /&gt;
So folks ask me “how do I sound epic in audio?”&lt;/p&gt;
&lt;p&gt;I spent $5000 the past couple years trying to figure it out.&lt;br /&gt;
And here’s my answer:&lt;/p&gt;
&lt;p&gt;You can get 80% epic for 60 bucks.&lt;br /&gt;
Spend the right $60 and the mic will grow with you — getting you closer to to 90% epic.&lt;/p&gt;
&lt;p&gt;I made a little microsite to with my recommendation,
Complete with samples.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://chan.dev/shutupandstarttalking&quot; target=&quot;_blank&quot;&gt;Shut Up and Start Talking&lt;/a&gt;&lt;sup&gt;&lt;a href=&quot;#user-content-fn-shutupandstarttalking&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;You’ll love the way you sound on this thing.&lt;/p&gt;
&lt;p&gt;🎤 chantastic&lt;/p&gt;
&lt;section&gt;&lt;h2&gt;Footnotes&lt;a href=&quot;#footnote-label&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Originally published at shutupandstarttalking.com (&lt;a href=&quot;https://web.archive.org/web/20201101101300/http://shutupandstarttalking.com/&quot; target=&quot;_blank&quot;&gt;archived copy&lt;/a&gt;). The domain has since lapsed. &lt;a href=&quot;#user-content-fnref-shutupandstarttalking&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content:encoded><category>audio</category></item><item><title>Appear Consistent</title><link>https://chan.dev/appear-consistent</link><guid isPermaLink="true">https://chan.dev/appear-consistent</guid><description>A poker friend taught me: appear consistent, build your reputation, then deviate. My defense against oblivion is the sacrament of a weekly commitment.</description><pubDate>Wed, 17 Apr 2019 00:00:00 GMT</pubDate><content:encoded>&lt;blockquote&gt;
&lt;p&gt;Appear consistent.&lt;br /&gt;
Build your reputation.&lt;br /&gt;
Then deviate.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is what a friend taught be about the game of poker.&lt;/p&gt;
&lt;p&gt;You play the game with reputation.&lt;br /&gt;
You buy your reputation with consistency.&lt;/p&gt;
&lt;p&gt;I suck at consistency.&lt;/p&gt;
&lt;p&gt;I get excited by an idea, lock myself away, grind, and blow my energy before I send it.&lt;br /&gt;
This has been my program for years.&lt;br /&gt;
And it lead to a cycle of self-doubt, self-loathing, and self-soothing.&lt;/p&gt;
&lt;p&gt;“Imagine how great it could have been — or might be… eventually.”&lt;/p&gt;
&lt;p&gt;But we don’t get partial credit for good intentions.&lt;br /&gt;
Life is pass fail.&lt;br /&gt;
Things are done or they don’t exist.&lt;/p&gt;
&lt;p&gt;My only defense against oblivion is the sacrament of a weekly commitment.&lt;br /&gt;
I produce a podcast every Thursday at 5:30a.&lt;br /&gt;
And now I write every Wednesday by 1p.&lt;/p&gt;
&lt;p&gt;This has been transformative for me.&lt;br /&gt;
It’s not novel
But it’s working.&lt;/p&gt;
&lt;p&gt;If I can’t fit an idea into a weekly release,&lt;br /&gt;
I won’t do it —&lt;br /&gt;
I won’t ever do it.&lt;/p&gt;
&lt;p&gt;When consistent,&lt;br /&gt;
The work can be good, bad, or the valley of shit in between.&lt;br /&gt;
It doesn’t matter.
It’s done.&lt;br /&gt;
I march on to the next week.&lt;/p&gt;
&lt;p&gt;Do you have a habit around your work?&lt;br /&gt;
Weekly, daily, morning, night, what works for you?&lt;/p&gt;
&lt;p&gt;📅 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Ask A Relevant Question</title><link>https://chan.dev/ask-a-relevant-question</link><guid isPermaLink="true">https://chan.dev/ask-a-relevant-question</guid><description>Conference speakers left their families and flew across the country just to talk with you. Don&apos;t say &apos;sweet talk, bro.&apos; Ask a relevant question.</description><pubDate>Wed, 10 Apr 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Networking is hard.&lt;br /&gt;
I get that.&lt;br /&gt;
As an introvert, the idea of bullshitting people I don’t know doesn’t get me hot.&lt;/p&gt;
&lt;p&gt;So I have a strategy.&lt;/p&gt;
&lt;p&gt;Target the most important, vibrant, or momentarily esteemed person in a room.&lt;br /&gt;
Ask a relevant question.&lt;/p&gt;
&lt;p&gt;At conferences, these people are the speakers.&lt;/p&gt;
&lt;p&gt;Lot’s of folks get nervous around speakers.&lt;br /&gt;
I’ve never understood that.&lt;br /&gt;
These people left their families,&lt;br /&gt;
Escaped work,&lt;br /&gt;
And flew across the country,&lt;br /&gt;
JUST TO TALK WITH YOU.&lt;/p&gt;
&lt;p&gt;I’m not that devoted to my blood relatives.
(Sorry, Aunt Sherri)&lt;/p&gt;
&lt;p&gt;Speakers are eager to talk with you.&lt;br /&gt;
But too often, all they get for their efforts are “sweet talk, bro!” or “you could do that in fewer lines with a ternary.”&lt;/p&gt;
&lt;p&gt;It’s easy to stand out in that crowd.&lt;br /&gt;
Your one little trick?&lt;br /&gt;
Ask a relevant question.&lt;/p&gt;
&lt;p&gt;When they’re speaking, listen.&lt;br /&gt;
Don’t pounce on errors.&lt;br /&gt;
Don’t subvert their position.&lt;br /&gt;
Don’t twist the conversation to be about you and your unappreciated brilliance.&lt;br /&gt;
Ask a relevant question.&lt;/p&gt;
&lt;p&gt;If you can form a compelling question,&lt;br /&gt;
You can start a real relationship.&lt;br /&gt;
That’s all networking is.&lt;/p&gt;
&lt;p&gt;💞 @chantastic&lt;/p&gt;
&lt;p&gt;P.S.
What’s the most awkward thing you’ve seen someone say to a conference speaker?&lt;/p&gt;</content:encoded><category>speaking</category><category>career</category></item><item><title>Imaginary</title><link>https://chan.dev/imaginary</link><guid isPermaLink="true">https://chan.dev/imaginary</guid><description>I wanted to host React Podcast since 2015. When Michael Jackson resurrected it, I was green with envy. Then he asked me to take over and I said no.</description><pubDate>Wed, 03 Apr 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’ve wanted to host React Podcast since its original launch in 2015.&lt;br /&gt;
The show was a panel show back then.&lt;br /&gt;
There was one episode where I played host and I felt like the frontman of an 80s rock band jumping off a stack of speakers into screaming crowd.&lt;br /&gt;
”I could be the Joe Rogan of React”, I thought.&lt;/p&gt;
&lt;p&gt;The show quickly died.&lt;br /&gt;
And when Michael Jackson resurrected it in 2018 and I was green with envy.&lt;/p&gt;
&lt;p&gt;“He’s a natural fit.&quot;&lt;br /&gt;
&quot;He has relationships, clout, and charisma.&quot;&lt;br /&gt;
&quot;He’s accomplished, funny, personable, and daring.&quot;&lt;br /&gt;
&quot;I am none of those things.”&lt;/p&gt;
&lt;p&gt;This is what I told myself.&lt;/p&gt;
&lt;p&gt;Of course, This was all true but that last part.&lt;br /&gt;
What I was telling myself stood in stark contrast to those delusions of grandeur I’d had just years before.&lt;/p&gt;
&lt;p&gt;What separates Michael and I is not our network or charm.&lt;br /&gt;
The difference is that he showed up;&lt;br /&gt;
He did the work.&lt;br /&gt;
I daydreamed.&lt;/p&gt;
&lt;p&gt;This was never clearer than when he asked me to take over the show and I said “no”.&lt;/p&gt;
&lt;p&gt;Why would I do that??&lt;br /&gt;
I loved the show.&lt;br /&gt;
I wanted the show.&lt;br /&gt;
I had a poster of my face on Joe Rogan’s massive bust with “React Podcast” photoshopped in the backdrop.&lt;br /&gt;
The universe was handing to me something I wanted and I turned it down.&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;Because it’s easier to live in a fantasy.&lt;br /&gt;
No one is there to challenge, correct, judge or expect something from me.&lt;br /&gt;
My ego loves the safety of the imaginary.&lt;/p&gt;
&lt;p&gt;Fortunately, I got my senses about me —
Woke up,
Nut up,
And start doing the work.
(More on that in the weeks to come).&lt;/p&gt;
&lt;p&gt;So.&lt;br /&gt;
Where are you living in the imaginary?&lt;/p&gt;
&lt;p&gt;💖 chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Failure</title><link>https://chan.dev/failure</link><guid isPermaLink="true">https://chan.dev/failure</guid><description>Failure isn&apos;t the work that doesn&apos;t land. It&apos;s the work you abandon. Pick it up. Feel the shame. Continue.</description><pubDate>Wed, 27 Mar 2019 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;👋 Hi!&lt;/p&gt;
&lt;p&gt;We haven’t talked in a while.
That’s my fault.&lt;/p&gt;
&lt;p&gt;If this the first time I’ve emailed you,
I’m chantastic.
This is a dialogue about adulting, career, head-meat, and web development.&lt;/p&gt;
&lt;p&gt;Today’s about picking after failure.
I started this newsletter with a goal of 20 posts in the first month and weekly posts after that.
As of today, that would have been 54 posts.&lt;/p&gt;
&lt;p&gt;I did 7.&lt;/p&gt;
&lt;p&gt;I was tempted to pretend like I never started —
Leave your email in the ether of this abandoned account forever —
Avoiding the awkward “Hey, remember me? I’m the guy who invited you here before realizing he was afraid of writing” email.
The email I’m writing now.&lt;/p&gt;
&lt;p&gt;I’m glad I failed.
It means I did something new,
Something unsustainable for me.
That’s way better than masterfully pulling off the same-same all day.&lt;/p&gt;
&lt;p&gt;I’m excited to talk with you again.
I’ve missed you.&lt;/p&gt;
&lt;p&gt;So, what are you hiding from?
What have you started but abandoned?
Can you embrace shame and start again?&lt;/p&gt;
&lt;p&gt;Pick it back up.
Let’s continue together.&lt;/p&gt;
&lt;p&gt;Your friend,&lt;/p&gt;
&lt;p&gt;chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>You Can&apos;t Do in a Month What You Won&apos;t Do in a Day</title><link>https://chan.dev/you-can&apos;t-do-in-a-month-what-you-wont-do-in-a-day</link><guid isPermaLink="true">https://chan.dev/you-can&apos;t-do-in-a-month-what-you-wont-do-in-a-day</guid><description>Procrastination and perfectionism hinder progress. Focus on daily tasks and make progress towards your goals.</description><pubDate>Fri, 21 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You can’t do in a month what you can’t do in a day.&lt;/p&gt;
&lt;p&gt;I took a sabbatical this month.
For 30 days, I had no work to do.&lt;/p&gt;
&lt;p&gt;I thought I’d clean the garage,
Fix my bike,
Get fit,
Organize two decades of photos,
Refresh my video courses,
And write a book.&lt;/p&gt;
&lt;p&gt;I didn’t.&lt;/p&gt;
&lt;p&gt;Instead,
I packed more lunchboxes,
Met more friend for coffee,
Replied to more texts,
Watched more movies,
Colored more pages,
Got more breaks repaired,
And killed a gopher (that persistent shit).&lt;/p&gt;
&lt;p&gt;I worked on my “projects”
But I didn’t get meaningfully closer to hitting publish.&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;The problem isn’t time.
The problem is procrastination and perfectionism.
Nothing felt urgent in the first weeks.
Nothing “felt right” in the last weeks.
These are the same feelings I have regardless of time.
Available time just spread them out.&lt;/p&gt;
&lt;p&gt;If I can’t do it in a day,
I won’t do it in month.
The problem isn’t the calendar,
The problem is my head meat.&lt;/p&gt;
&lt;p&gt;I’m learning.
This month is teaching me that projects are accomplished day by day.
Today is all we have.
And a days work is to put in the miles.
Run, write, read, record, and — most importantly — hit publish.
The destination will arrive, in time.&lt;/p&gt;
&lt;p&gt;The day is young.
How can you make progress on your big idea today?&lt;/p&gt;
&lt;p&gt;💝 chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Fail Fast. Fail Safe</title><link>https://chan.dev/fail-fast-fail-safe</link><guid isPermaLink="true">https://chan.dev/fail-fast-fail-safe</guid><description>At Disneyland, Disney illustrators taught me rough sketching: lay down lots of lines, surface the shape, then ink the best one. Developers can steal this.</description><pubDate>Mon, 17 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://res.cloudinary.com/chantastic/image/upload/c_scale,w_1280/v1685921246/chan.dev/fail-fast-fail-safe-image.jpg&quot; alt=&quot;rough sketch of Baymax from Disneyland&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You won’t get anything right on your first attempt.
You can’t.
Creativity takes knowledge we don’t yet have.
So get comfortable making mistakes.&lt;/p&gt;
&lt;p&gt;I was at Disneyland last week.
At the ripe age of 35,
I learned how to draw by making mistakes.&lt;/p&gt;
&lt;p&gt;Disney illustrators use a technique called rough sketching.
They start by laying down lines with a pencil —
Lots of lines.
These lines are exploratory.
They help surface a desired shape.
Only after the shape is right does an artist select and ink in the illustration.
They create in a two step process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Discover the shape.&lt;/li&gt;
&lt;li&gt;Ink the best line.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This two step process isn’t limited to visual arts.
We developers can steal it.
Here’s how I apply it to code.&lt;/p&gt;
&lt;h2&gt;Fail fast. Draw lots of lines&lt;a href=&quot;#fail-fast-draw-lots-of-lines&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Get code on screen — lots of code.
Start with curiosity.
Don’t worry about correctness.
Worry about quantity.
Put bad ideas on screen.
Lay out all the options.
Implement the whole feature before sweating the details.&lt;/p&gt;
&lt;h2&gt;Fail safely. Work in pencil&lt;a href=&quot;#fail-safely-work-in-pencil&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Avoid permanence.
Keep assumptions flexible.
Don’t be eager to abstract.
Forget about sharing.
Duplicate where you have to.
Rewrite.
Don’t refactor.
Make mistakes.
Explore.&lt;/p&gt;
&lt;p&gt;This process can feel foreign.
When I started drawing the Baymax above, I thought:
“I can draw a freaking circle.”
“Can we skip the step where I draw 100 wrong circles?”
What I created was 10 pieces of paper with one bad circle on them.
I had to learn how to embrace my mistakes.&lt;/p&gt;
&lt;p&gt;Editing is easier than inventing.
Embracing your mistakes will save you time.
Building an entire feature, before committing abstractions, will save you a lot of rework.
So be fast to explore and slow to assume.&lt;/p&gt;
&lt;p&gt;🌈 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>code</category></item><item><title>My $500 lesson on copyright</title><link>https://chan.dev/my-500-lesson-on-copyright</link><guid isPermaLink="true">https://chan.dev/my-500-lesson-on-copyright</guid><description>Learn from a costly lesson about copyright protection, including registering your work, defending it, and tracking earnings to ensure you&apos;re fairly compensated.</description><pubDate>Fri, 07 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you want to protect your work,
You need to do three things.&lt;/p&gt;
&lt;p&gt;Disclaimer:
I’m not a lawyer.
This isn’t legal advice.
This is just what I remember paying a lawyer $500 to tell me.
Ask a lawyer for the full scoop.&lt;/p&gt;
&lt;p&gt;Good?
Let’s continue&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Register your work.&lt;/strong&gt;
Registered work is easier to protect.
Copyright.gov has a page for registering your work.
&lt;a href=&quot;https://www.copyright.gov/registration/&quot; target=&quot;_blank&quot;&gt;https://www.copyright.gov/registration/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Protect your work.&lt;/strong&gt;
Take down work that violates your copyright.
Enforce attribution for licensed work.
Put it in writing.
Your diligence builds a strong case that you value your work.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get paid for your work.&lt;/strong&gt;
Intend to collect damages?
You must prove lost earnings.
Get your analytics in place.
Know what each infringement costs you in dollars.
Lost twitter followers are worthless.&lt;/p&gt;
&lt;p&gt;That’s what I got.
Do you have lessons that cost you a lot of money to learn?&lt;/p&gt;
&lt;p&gt;💌 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>content</category></item><item><title>My why</title><link>https://chan.dev/my-why</link><guid isPermaLink="true">https://chan.dev/my-why</guid><description>When facing unemployment, I realized the importance of character and adaptability. This experience inspired me to commit to helping others discover their worth.</description><pubDate>Wed, 05 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My &lt;strong&gt;why&lt;/strong&gt; showed up as a pink slip.&lt;/p&gt;
&lt;p&gt;As the first born son in an asian family,
I was expected to take over the family business.
My family was supportive of my “hobbies”
But they expected me to come around — eventually.&lt;/p&gt;
&lt;p&gt;It was fine.
I wasn’t ambitious.
So, the certainty was comforting.
And I used that certainty to eject from hobbies that became “boring”.&lt;/p&gt;
&lt;p&gt;I wasn’t prepared for the market to collapse.
I wasn’t prepared for the family business to fail.
I wasn’t prepared to by laid off —
By my dad.
I wasn’t prepared.&lt;/p&gt;
&lt;p&gt;Being unemployed is something.
Being unemployable is something else.
My “experience” was a liability to legitimate companies.
I’d never &lt;strong&gt;worked&lt;/strong&gt; for anything.
In 2011, Masters in Finance were taking massive pay cuts to keep food on the table.
A company couldn’t legally pay me the pittance my inexperienced deserved.
I was 28 with a mortgage, family, parents in poverty, and a skillset that couldn’t get an internship.
I was cast off and hopeless.&lt;/p&gt;
&lt;p&gt;This led me to my why.&lt;/p&gt;
&lt;p&gt;We humans are silly.
We want to prove our worth
But we keep attaching it to external things:
A job,
A car,
Instagram followers,
Likes,
Retweets…&lt;/p&gt;
&lt;p&gt;We’re more than those accessories.
Humans are adaptable.
Our worth transcends position,
knowledge,
And even celebrity.&lt;/p&gt;
&lt;p&gt;We’re only as stuck as we believe ourselves to be.
Character can grow from anything.
After finding my character,
I discovered my worth.
I work to help others discover their character.&lt;/p&gt;
&lt;p&gt;How do you value your worth?&lt;/p&gt;
&lt;p&gt;💓 chantastic&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item><item><title>Find Your Why</title><link>https://chan.dev/find-your-why</link><guid isPermaLink="true">https://chan.dev/find-your-why</guid><description>You need a motive to convict someone of a crime. If you were on trial for your work, could &apos;why&apos; convict you?</description><pubDate>Tue, 04 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You need a motive to convict someone of a crime.
Motive is just a crimey word for &lt;strong&gt;why&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why&lt;/strong&gt; is philosophy.
When you have &lt;strong&gt;why&lt;/strong&gt;,
&lt;em&gt;Who&lt;/em&gt;,
&lt;em&gt;What&lt;/em&gt;,
&lt;em&gt;Where&lt;/em&gt;,
&lt;em&gt;When&lt;/em&gt;,
And &lt;em&gt;how&lt;/em&gt; quickly follow.&lt;/p&gt;
&lt;p&gt;If you were on trial for your work,
Could &lt;strong&gt;why&lt;/strong&gt; convict you?
Is your work littered with evidence of your &lt;strong&gt;why&lt;/strong&gt;?
&lt;strong&gt;Why&lt;/strong&gt; not?&lt;/p&gt;
&lt;p&gt;Brilliant leaders ask &lt;strong&gt;“why?”&lt;/strong&gt;.
Great organizations know &lt;strong&gt;why&lt;/strong&gt;.
Admit it…
Just thinking of &lt;strong&gt;why&lt;/strong&gt; gets you excited.
&lt;strong&gt;Why&lt;/strong&gt; is thrilling.&lt;/p&gt;
&lt;p&gt;What are you working on right now?
Is it backed by &lt;strong&gt;why&lt;/strong&gt;?
If not,
&lt;strong&gt;Why&lt;/strong&gt; not?&lt;/p&gt;
&lt;p&gt;Let’s find your &lt;strong&gt;why&lt;/strong&gt;.
Just hit reply.&lt;/p&gt;
&lt;p&gt;💝 chantastic&lt;/p&gt;</content:encoded><category>life</category></item><item><title>Labor Well</title><link>https://chan.dev/labor-well</link><guid isPermaLink="true">https://chan.dev/labor-well</guid><description>I commit to four hours of work I know I can do. The other four belong to my team, my managers, and the whims of a fragile internet.</description><pubDate>Mon, 03 Sep 2018 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Krishna instructed Arjuna:
“We have a right to our labor, but not to the fruits of our labor.”
What did he mean?
He meant that we control the &lt;em&gt;way&lt;/em&gt; we work but not the outcome of our work.
We own our process,
Not the plan.&lt;/p&gt;
&lt;p&gt;So, how can we own our process when our work is unpredictable?
Impromptu meetings,
Constant interruptions,
Outages,
Eager managers,
Confused customers,
New teammates disrupt our flow every day.
How do we plan for those?&lt;/p&gt;
&lt;p&gt;Embrace them.&lt;/p&gt;
&lt;p&gt;Each day, I commit to four hours of work that I know I can do.
That’s it.
Four hours.
Some days I manage more but most days I don’t.
The remaining four hours belong to my team,
My managers,
My customers,
And the whims of a fragile internet.&lt;/p&gt;
&lt;p&gt;Starting my 4-hour workday was uncomfortable.
Compared to the ambitious plans of my coworkers, my process sounded Anemic,
Unimpressive,
Unimportant,
Unambitious.
But the discomfort was momentary.
Each day,
I went home done.
The next day,
I moved to the next thing.
No excuses,
No repeat stand-ups.
I became a predictable part of my team.
I got the same amount done as I had before but now I was dependable.&lt;/p&gt;
&lt;p&gt;This week,
Plan for less.
It may feel weird but press on.
You’ll get more done.&lt;/p&gt;
&lt;p&gt;Happy Labor Day,&lt;/p&gt;
&lt;p&gt;💖 chantastic&lt;/p&gt;
&lt;p&gt;P.S.
Paul Graham wrote a great piece on splitting your between “making time” and “manager time”.
You’ll like it.
&lt;a href=&quot;http://www.paulgraham.com/makersschedule.html&quot; target=&quot;_blank&quot;&gt;http://www.paulgraham.com/makersschedule.html&lt;/a&gt;&lt;/p&gt;</content:encoded><category>life</category><category>career</category></item></channel></rss>