<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Trevor Harmon&apos;s Blog</title><description>The blog &amp; portfolio of Trevor Harmon.</description><link>https://thetrevorharmon.com</link><item><title>AI fills in the blank</title><link>https://thetrevorharmon.com/blog/ai-fills-in-the-blank</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/ai-fills-in-the-blank</guid><description>The article &quot;Vibing a Non-Trivial Ghostty Feature&quot; by Mitchell Hashimoto was shared on my work slack, and there was a particular phrase he…</description><pubDate>Fri, 21 Nov 2025 06:00:00 GMT</pubDate><content:encoded>The article &quot;Vibing a Non-Trivial Ghostty Feature&quot; by Mitchell Hashimoto was shared on my work slack, and there was a particular phrase he…</content:encoded></item><item><title>Don&apos;t use the spread operator in a loop</title><link>https://thetrevorharmon.com/blog/dont-use-the-spread-operator-in-a-loop</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/dont-use-the-spread-operator-in-a-loop</guid><description>The spread operator is convenient but can have big impacts on performance.</description><pubDate>Mon, 25 Nov 2024 06:00:00 GMT</pubDate><content:encoded>I recently stumbled on this article that talks about a one line change that had a huge performance boost. The change? Removing the spread…</content:encoded></item><item><title>Const isn&apos;t constant</title><link>https://thetrevorharmon.com/blog/const-isnt-constant</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/const-isnt-constant</guid><description>In every Javascript app I&apos;ve worked on, the linter has enforced preference towards  over . And yet I&apos;ve always wondered why code like this…</description><pubDate>Wed, 07 Aug 2024 05:00:00 GMT</pubDate><content:encoded>In every Javascript app I&apos;ve worked on, the linter has enforced preference towards  over . And yet I&apos;ve always wondered why code like this…</content:encoded></item><item><title>Thoughts on building habits</title><link>https://thetrevorharmon.com/blog/thoughts-on-building-habits</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/thoughts-on-building-habits</guid><description>How I managed to get a habit to stick for 1500+ days (and counting!)</description><pubDate>Tue, 30 Jul 2024 05:00:00 GMT</pubDate><content:encoded>In 2020, I was facing a dilemma. It was during the summer of the pandemic (well, the first summer), and despite having plenty of time on my…</content:encoded></item><item><title>Loaves and fishes</title><link>https://thetrevorharmon.com/blog/loaves-and-fishes</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/loaves-and-fishes</guid><description>Giving our all to the Lord, no matter how simple the offering.</description><pubDate>Fri, 28 Jun 2024 05:00:00 GMT</pubDate><content:encoded>I was recently pondering about offerings that we give the Lord when my thoughts turned to these verses: In this story, there is a very large…</content:encoded></item><item><title>Loose null checks in JavaScript</title><link>https://thetrevorharmon.com/blog/loose-null-checks-in-javascript</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/loose-null-checks-in-javascript</guid><description>Strict equality checks in JavaScript always make sense–except for null.</description><pubDate>Mon, 03 Jun 2024 05:00:00 GMT</pubDate><content:encoded/></item><item><title>Advanced state management with React and CodeMirror</title><link>https://thetrevorharmon.com/blog/advanced-state-management-with-react-and-codemirror</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/advanced-state-management-with-react-and-codemirror</guid><description>Going beyond the basics with these two libraries.</description><pubDate>Mon, 25 Mar 2024 05:00:00 GMT</pubDate><content:encoded/></item><item><title>Connecting ANTLR to CodeMirror 6: Connecting a Language Server</title><link>https://thetrevorharmon.com/blog/connecting-antlr-to-code-mirror-6-connecting-a-language-server</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/connecting-antlr-to-code-mirror-6-connecting-a-language-server</guid><description>Connecting my Zephyr language server to CodeMirror.</description><pubDate>Fri, 16 Feb 2024 06:00:00 GMT</pubDate><content:encoded/></item><item><title>Connecting ANTLR to CodeMirror 6: Building a Language Server</title><link>https://thetrevorharmon.com/blog/connecting-antlr-to-codemirror-6-building-a-language-server</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/connecting-antlr-to-codemirror-6-building-a-language-server</guid><description>How to build a language server using an ANTLR grammar–featuring Zephyr, my toy language.</description><pubDate>Thu, 15 Feb 2024 06:00:00 GMT</pubDate><content:encoded>For the past couple of years, I’ve worked on ShopifyQL Notebooks, a data exploration tool offered by Shopify. The tool enables Shopify…</content:encoded></item><item><title>CodeMirror and React</title><link>https://thetrevorharmon.com/blog/codemirror-and-react</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/codemirror-and-react</guid><description>A few things you need to know when integrating CodeMirror 6 with React.</description><pubDate>Tue, 24 Oct 2023 05:00:00 GMT</pubDate><content:encoded>Over the past 10 months, I&apos;ve been working with the CodeMirror framework to write and integrate a custom code editor into a React app.…</content:encoded></item><item><title>Learning CodeMirror</title><link>https://thetrevorharmon.com/blog/learning-codemirror</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/learning-codemirror</guid><description>An introduction to CodeMirror, with practical examples of its primitives.</description><pubDate>Wed, 20 Sep 2023 05:00:00 GMT</pubDate><content:encoded>In July 2022, I was tasked with integrating CodeMirror, a “code editor component for the web”, into ShopifyQL Notebooks. Learning the ins…</content:encoded></item><item><title>Building a ShopifyQL Editor</title><link>https://thetrevorharmon.com/blog/building-a-shopifyql-editor</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/building-a-shopifyql-editor</guid><description>How I integrated CodeMirror into ShopifyQL Notebooks.</description><pubDate>Thu, 14 Sep 2023 05:00:00 GMT</pubDate><content:encoded>In July 2022 I was tasked with integrating CodeMirror into ShopifyQL Notebooks. I had to discover how to connect our ShopifyQL language…</content:encoded></item><item><title>Displaying Mermaid charts in Gatsby</title><link>https://thetrevorharmon.com/blog/displaying-mermaid-charts-in-gatsby</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/displaying-mermaid-charts-in-gatsby</guid><description>I like mermaid charts. But I didn&apos;t like any of the mermaid plugins for Gatsby. So I wrote one.</description><pubDate>Thu, 24 Aug 2023 05:00:00 GMT</pubDate><content:encoded>I like diagrams. I find they do a great job explaining my thought processes and giving a better understanding to what are often abstract…</content:encoded></item><item><title>What I&apos;ve been up to lately</title><link>https://thetrevorharmon.com/blog/what-ive-been-up-to-lately</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/what-ive-been-up-to-lately</guid><description>I took a break from my blog for 3 years. What did I do in the meantime?</description><pubDate>Fri, 21 Jul 2023 05:00:00 GMT</pubDate><content:encoded>At the start of 2020, I was feeling lots of momentum with my blog. I had been writing consistently for over a year, I had my first speaking…</content:encoded></item><item><title>Sell things fast with Gatsby and Shopify</title><link>https://thetrevorharmon.com/blog/sell-things-fast-with-gatsby-and-shopify</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/sell-things-fast-with-gatsby-and-shopify</guid><description>A starting guide to building a lightning-fast Shopify store on Gatsby. ⚡</description><pubDate>Thu, 23 Apr 2020 05:00:00 GMT</pubDate><content:encoded>Speed is the most important factor in converting patrons to buyers online. According to a study by Akamai, a 100ms delay causes conversion…</content:encoded></item><item><title>How to prepare and use variable fonts on the web</title><link>https://thetrevorharmon.com/blog/how-to-prepare-and-use-variable-fonts-on-the-web</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-prepare-and-use-variable-fonts-on-the-web</guid><description>A primer on subsetting, formatting, and CSS font features.</description><pubDate>Mon, 27 Jan 2020 06:00:00 GMT</pubDate><content:encoded>When I redesigned my blog, I decided to move away from using Work Sans and instead go with a newish font called Inter, a lovely typeface by…</content:encoded></item><item><title>Introducing 2.0 in 2020</title><link>https://thetrevorharmon.com/blog/introducing-2-0-in-2020</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/introducing-2-0-in-2020</guid><description>The next version of thetrevorharmon.com</description><pubDate>Thu, 09 Jan 2020 06:00:00 GMT</pubDate><content:encoded>Sometime in early 2019 I started to have that itch. That feeling that every creator has when they regularly look at something they made. I…</content:encoded></item><item><title>Designing Album Artwork</title><link>https://thetrevorharmon.com/blog/designing-album-artwork</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/designing-album-artwork</guid><description>The album artwork I&apos;ve designed over the years for my music endeavours
</description><pubDate>Sat, 07 Dec 2019 06:00:00 GMT</pubDate><content:encoded>I&apos;ve been writing and recording music since I was 15. Not all the music was particularly good music, but it&apos;s been a lot of fun throughout…</content:encoded></item><item><title>Designing for Michael Barrow &amp; the Tourists</title><link>https://thetrevorharmon.com/blog/designing-for-michael-barrow-and-the-tourists</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/designing-for-michael-barrow-and-the-tourists</guid><description>A collection of all of the visual content I produced for the band
</description><pubDate>Fri, 06 Dec 2019 06:00:00 GMT</pubDate><content:encoded>Throughout 2016-2018, I was the lead guitarist for Michael Barrow &amp; the Tourists. In addition to playing lead guitar, I also produced most…</content:encoded></item><item><title>Binary Thinking vs Directional Thinking - @DanielPriestley</title><link>https://thetrevorharmon.com/blog/binary-thinking-vs-directional-thinking-danielpriestley</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/binary-thinking-vs-directional-thinking-danielpriestley</guid><description>Daniel Priestley: The only way forward in this transformational time is to make decisions that are mostly right, sort-of right, on-balance…</description><pubDate>Thu, 24 Oct 2019 05:00:00 GMT</pubDate><content:encoded>Daniel Priestley: The only way forward in this transformational time is to make decisions that are mostly right, sort-of right, on-balance…</content:encoded></item><item><title>What I learned from my first month working remote</title><link>https://thetrevorharmon.com/blog/what-I-learned-from-my-first-month-working-remote</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/what-I-learned-from-my-first-month-working-remote</guid><description>Reflections on what I&apos;ve learned and how I made my first month a success.</description><pubDate>Mon, 14 Oct 2019 05:00:00 GMT</pubDate><content:encoded>Earlier this year I determined that consulting wasn&apos;t for me and that I needed to look for a new opportunity. I was fortunate to find my way…</content:encoded></item><item><title>Why Slow Mornings May Be the Secret to Tech-Life Balance - @ajzaleski</title><link>https://thetrevorharmon.com/blog/why-slow-mornings-may-be-the-secret-to-tech-life-balance-ajzaleski</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/why-slow-mornings-may-be-the-secret-to-tech-life-balance-ajzaleski</guid><description>I often think about how I use technology and if it makes my life better or worse. @ajzaleski provides some great ideas for how to achieve a…</description><pubDate>Mon, 23 Sep 2019 05:00:00 GMT</pubDate><content:encoded>I often think about how I use technology and if it makes my life better or worse. @ajzaleski provides some great ideas for how to achieve a…</content:encoded></item><item><title>Email signup forms with Gatsby and Mailchimp</title><link>https://thetrevorharmon.com/blog/email-signup-forms-with-gatsby-and-mailchimp</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/email-signup-forms-with-gatsby-and-mailchimp</guid><description>A simple tutorial, some sample code, and–you guessed it–a signup form.</description><pubDate>Wed, 24 Jul 2019 05:00:00 GMT</pubDate><content:encoded>If you&apos;re using Gatsby to power your blog, chances are that you need an easy way for others to sign up for your posts. While some choose to…</content:encoded></item><item><title>Getting Closure on React Hooks – @swyx</title><link>https://thetrevorharmon.com/blog/getting-closure-on-react-hooks-swyx</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/getting-closure-on-react-hooks-swyx</guid><description>This fantastic talk from JSConf by Shawn Wang (known as @swyx) explains what&apos;s going on in the background with React Hooks. After watching…</description><pubDate>Mon, 22 Jul 2019 05:00:00 GMT</pubDate><content:encoded>This fantastic talk from JSConf by Shawn Wang (known as @swyx) explains what&apos;s going on in the background with React Hooks. After watching…</content:encoded></item><item><title>How to use S3 select to query JSON in Node.js</title><link>https://thetrevorharmon.com/blog/how-to-use-s3-select-to-query-json-in-node-js</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-use-s3-select-to-query-json-in-node-js</guid><description>A simple example to get you started on querying JSON data out of S3 (with sample code!).</description><pubDate>Wed, 05 Jun 2019 05:00:00 GMT</pubDate><content:encoded>About a year ago, AWS publicly released S3 Select, a service that lets you query data in S3 with SQL-style queries. They announced support…</content:encoded></item><item><title>Code IRL: Javascript closures</title><link>https://thetrevorharmon.com/blog/code-irl-javascript-closures</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/code-irl-javascript-closures</guid><description>A real world example of how to use Javascript closures to write better code.</description><pubDate>Wed, 01 May 2019 05:00:00 GMT</pubDate><content:encoded>Sometimes it&apos;s hard to find a real world example for certain code concepts. Here&apos;s an example of using Javscript closures in the wild. A…</content:encoded></item><item><title>Three Simple Ways to Write Cleaner Code</title><link>https://thetrevorharmon.com/blog/three-simple-ways-to-write-cleaner-code</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/three-simple-ways-to-write-cleaner-code</guid><description>Three practices you can start today that will make your code more readable now and easier to understand in the future.</description><pubDate>Tue, 23 Apr 2019 05:00:00 GMT</pubDate><content:encoded>I&apos;ve been reviewing a lot of code lately and have seen some good and not-so-good practices. There is code that works, and then there is code…</content:encoded></item><item><title>Configuring Jest and Enzyme in Create React App on Typescript</title><link>https://thetrevorharmon.com/blog/configuring-jest-and-enzyme-in-create-react-app-on-typescript</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/configuring-jest-and-enzyme-in-create-react-app-on-typescript</guid><description>A guide to getting around an Enzyme internal error and get testing with Jest + Enzyme.</description><pubDate>Tue, 02 Apr 2019 05:00:00 GMT</pubDate><content:encoded>I was recently trying to get a Jest/Enzyme testing environment working with React (Create React App with Typescript) and all of the…</content:encoded></item><item><title>The value of iterative design</title><link>https://thetrevorharmon.com/blog/the-value-of-iterative-design</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/the-value-of-iterative-design</guid><description>My six attempts to design &quot;Sweet Honey&quot; taught me that iterating on creative work can be difficult, but produces better results in the end.</description><pubDate>Wed, 13 Mar 2019 05:00:00 GMT</pubDate><content:encoded>For the better part of the past 3 years, I&apos;ve been associated with Michael Barrow &amp; the Tourists, a band from Provo, UT. Part of my role for…</content:encoded></item><item><title>A developer&apos;s guide to the Open Graph protocol</title><link>https://thetrevorharmon.com/blog/a-developers-guide-to-the-open-graph-protocol</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/a-developers-guide-to-the-open-graph-protocol</guid><description>Learn about the protocol behind iMessage link previews, Twitter cards, and Facebook link previews.</description><pubDate>Tue, 12 Feb 2019 06:00:00 GMT</pubDate><content:encoded>I recently asked myself the question &quot;how do link previews in iMessage work, and why doesn&apos;t my site have a preview?&quot;. I discovered that…</content:encoded></item><item><title>What I learned from a failed startup</title><link>https://thetrevorharmon.com/blog/what-I-learned-from-a-failed-startup</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/what-I-learned-from-a-failed-startup</guid><description>Four lessons I learned from working as an engineer for a startup that ran out of cash and went bankrupt.</description><pubDate>Tue, 29 Jan 2019 06:00:00 GMT</pubDate><content:encoded>&quot;Some of you might have noticed that your paychecks didn&apos;t process this last weekend. That&apos;s because we missed payroll.&quot; August 21, 2017 was…</content:encoded></item><item><title>StaticQuery and Typescript</title><link>https://thetrevorharmon.com/blog/staticquery-and-typescript</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/staticquery-and-typescript</guid><description>How to use Gatsby&apos;s StaticQuery while working in a Typescript environment.</description><pubDate>Thu, 29 Nov 2018 06:00:00 GMT</pubDate><content:encoded>I was recently working on my portfolio site, and I wanted to easily pull in the site title with a graphQL query. After a bunch of trial and…</content:encoded></item><item><title>How to silence false SASS warnings in React</title><link>https://thetrevorharmon.com/blog/how-to-silence-false-sass-warnings-in-react</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-silence-false-sass-warnings-in-react</guid><description>Typescript on React can sometimes think that your SASS is missing. Here’s the actual problem, and how to fix it.</description><pubDate>Tue, 27 Nov 2018 06:00:00 GMT</pubDate><content:encoded>I was working on a React project and I kept running into an error that read . The file was definitely there, and the project was building…</content:encoded></item><item><title>How to lint Typescript in a Gatsby project</title><link>https://thetrevorharmon.com/blog/how-to-lint-typescript-in-a-gatsby-project</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-lint-typescript-in-a-gatsby-project</guid><description>Linting Typescript is simple to set up in Gatsby with the help of a plugin.</description><pubDate>Tue, 06 Nov 2018 06:00:00 GMT</pubDate><content:encoded>I wanted to set up linting in a Gatsby project I was working on, but there weren’t any great resources for linting Typescript. I wrote a…</content:encoded></item><item><title>How to quickly deploy a Gatsby site with Netlify</title><link>https://thetrevorharmon.com/blog/how-to-quickly-deploy-a-gatsby-site-with-netlify</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-quickly-deploy-a-gatsby-site-with-netlify</guid><description>I recently started using Netlify to host my personal site, and now I don’t think I’ll go back. Here’s how to get started.</description><pubDate>Mon, 17 Sep 2018 05:00:00 GMT</pubDate><content:encoded>Disclaimer #1: I wrote this because I had issues getting the beta version of Gatsby (Gatsby 2) working on Netlify. I figured it might help…</content:encoded></item><item><title>How to make a static site with flexible content (using Gatsby &amp; Contentful)</title><link>https://thetrevorharmon.com/blog/how-to-make-a-static-site-with-flexible-content-using-gatsby-and-contentful</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-make-a-static-site-with-flexible-content-using-gatsby-and-contentful</guid><description>I recently redesigned my portfolio site with Gatsby, and Contentful as a headless CMS made it dead simple to manage content. Here’s how.</description><pubDate>Mon, 10 Sep 2018 05:00:00 GMT</pubDate><content:encoded>One of the reasons why I chose to use Gatsby is because it gave me the power of React with the speed of vanilla HTML. However, I knew that…</content:encoded></item><item><title>How to make a super-fast static site with Gatsby, Typescript, and SASS</title><link>https://thetrevorharmon.com/blog/how-to-make-a-super-fast-static-site-with-gatsby-typescript-and-sass</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-make-a-super-fast-static-site-with-gatsby-typescript-and-sass</guid><description>I recently redesigned my personal site with Gatsby. Here’s how to get started on your own.</description><pubDate>Wed, 05 Sep 2018 05:00:00 GMT</pubDate><content:encoded>I was able to build a super-fast static site generated from a headless CMS using Gatsby. I liked it so much that I put together a starter…</content:encoded></item><item><title>How to use Apple Font Tools to tweak a font</title><link>https://thetrevorharmon.com/blog/how-to-use-apple-font-tools-to-tweak-a-font</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/how-to-use-apple-font-tools-to-tweak-a-font</guid><description>I used Apple’s font tools to fix the line-height of a font for an iOS app. Here’s how I did it.</description><pubDate>Tue, 19 Jun 2018 05:00:00 GMT</pubDate><content:encoded>Recently I was working on embedding a custom font into the Neighbor iOS app. I discovered that the font I was trying to embed had an issue…</content:encoded></item><item><title>What Facebook can teach us about the new MacBook Pro</title><link>https://thetrevorharmon.com/blog/what-facebook-can-teach-us-about-the-new-macbook-pro</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/what-facebook-can-teach-us-about-the-new-macbook-pro</guid><description>Why the radical redesign isn&apos;t such a bad thing.</description><pubDate>Wed, 02 Nov 2016 05:00:00 GMT</pubDate><content:encoded>At the end of 2007, a friend of mine told me about Facebook, a new social network that was &quot;less sketchy than MySpace&quot;. After showing me the…</content:encoded></item><item><title>On Building CougarCash</title><link>https://thetrevorharmon.com/blog/on-building-cougarcash</link><guid isPermaLink="false">https://thetrevorharmon.com/blog/on-building-cougarcash</guid><description>How I created an app that transferred money in less than 20 seconds.</description><pubDate>Tue, 08 Sep 2015 05:00:00 GMT</pubDate><content:encoded>In 2014, BYU rebranded their student ID card system as &quot;CougarCash&quot;, allowing students to use their student ID cards as a debit fund on…</content:encoded></item></channel></rss>