<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Software Engineering on Joseph Hale</title>
    <link>https://thehale.dev/topics/software-engineering/</link>
    <description>Recent content in Software Engineering on Joseph Hale</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    
    
    
    
      <lastBuildDate>Mon, 23 Nov 2026 19:05:52 -0700</lastBuildDate>
    
    <atom:link href="https://thehale.dev/topics/software-engineering/index.xml" rel="self" type="application/rss+xml" />
      <item>
        <title>Solving a Tricky Email Invoicing Bug</title>
        <link>https://thehale.dev/essays/email-invoicing-debugging/</link>
        <pubDate>Thu, 09 Jan 2025 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/essays/email-invoicing-debugging/</guid>
        <description>&lt;p&gt;Solved a really involved bug today&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;Some of our B2B customers were unable to email invoices to their clients, delaying incoming payments.&lt;/p&gt;&#xA;&lt;p&gt;My coworker traced the problem to the built-in Python function &lt;code&gt;email.utils.getaddresses&lt;/code&gt;, which was being used to extract email addresses from some text. In a test environment the function was returning the expected email addresses, but in production no emails were found.&lt;/p&gt;&#xA;&lt;p&gt;Adding to the confusion, Python&amp;rsquo;s &lt;code&gt;sys.version&lt;/code&gt; and &lt;code&gt;sys.implementation&lt;/code&gt; reported identical Python versions and builds in each environment. Additionally, scans of our code and our dependencies&amp;rsquo; code found no monkey-patches of the email parsing function. How could a built-in language function behave differently between apparently identical environments?&lt;/p&gt;</description>
      </item>
      <item>
        <title>Potential impacts of the xz attack on new open-source contributors</title>
        <link>https://thehale.dev/essays/xz-impacts-open-source-contributors/</link>
        <pubDate>Sat, 20 Apr 2024 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/essays/xz-impacts-open-source-contributors/</guid>
        <description>&lt;p&gt;New developers often ask me how they can start contributing to open-source software. My typical recommendations are succinct: start small, contribute to what you use, follow the project&amp;rsquo;s CONTRIBUTING guidelines. But, given this month&amp;rsquo;s discovery of a &lt;a href=&#34;https://www.cve.org/CVERecord?id=CVE-2024-3094&amp;amp;utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=xz-impacts-open-source-contributors&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;severe security vulnerability&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt; introduced via a &lt;a href=&#34;https://research.swtch.com/xz-timeline?utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=xz-impacts-open-source-contributors&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;social engineering attack&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt;, I want to give additional guidance. Specifically, I want to encourage hopeful first-time open-source software contributors to (1) demonstrate increased empathy for maintainers and (2) exemplify patience and kindness throughout the contribution process.&lt;/p&gt;</description>
      </item>
      <item>
        <title>Finding Python performance problems</title>
        <link>https://thehale.dev/guides/python-profiling/</link>
        <pubDate>Tue, 26 Mar 2024 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/python-profiling/</guid>
        <description>&lt;p&gt;When a Python program is running too slowly, use a profiler to measure which parts of the code are hurting performance the most.&lt;/p&gt;&#xA;&lt;h2 id=&#34;measure-code-performance-with-cprofile&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#measure-code-performance-with-cprofile&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  Measure Code Performance with &lt;code&gt;cProfile&lt;/code&gt;&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#measure-code-performance-with-cprofile&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;Start by writing a &lt;a href=&#34;https://realpython.com/primer-on-python-decorators/?utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=python-profiling&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;decorator&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt; which will add profiling metrics to the decorated function:&lt;/p&gt;</description>
      </item>
      <item>
        <title>Using Quasar in a custom Vue component library</title>
        <link>https://thehale.dev/guides/quasar-component-library-storybook/</link>
        <pubDate>Fri, 01 Mar 2024 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/quasar-component-library-storybook/</guid>
        <description>&lt;p&gt;&lt;a href=&#34;https://quasar.dev/?utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=quasar-component-library-storybook&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;Quasar&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt; is a popular Vue framework with a large component library and best-in-class support for building apps for web/mobile/browser extension/electron/etc. from the same codebase. Yet, despite significant community interest, it has been difficult to find solid, versatile answers for how to create custom component libraries based on Quasar. This tutorial provides those answers, demonstrating how to create a standalone Quasar component library which can be used in any Vue application, whether or not that app runs via the Quasar CLI, the Vue CLI, or another tool.&lt;/p&gt;</description>
      </item>
      <item>
        <title>Creating a custom Vue component library with Storybook and Vitest</title>
        <link>https://thehale.dev/guides/vue-component-library-storybook-vitest/</link>
        <pubDate>Thu, 29 Feb 2024 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/vue-component-library-storybook-vitest/</guid>
        <description>&lt;p&gt;Many developers are familiar with using a component library (e.g. Vuetify, Quasar, PrimeVue, etc.), but there comes a time when it&amp;rsquo;s useful to create your own.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Multiple projects which should share custom components.&lt;/li&gt;&#xA;&lt;li&gt;A large project which is hard to test.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This comprehensive, step-by-step guide&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; will take you from a new, empty folder all the way to a fully-functional component library with robust automated testing tools which follow software engineering best practices. The techniques described here are neither theoretical nor a mere &amp;ldquo;proof-of-concept&amp;rdquo; &amp;ndash; they have been used successfully in critical production applications.&lt;/p&gt;</description>
      </item>
      <item>
        <title>Automatically merging trusted pull requests on GitHub</title>
        <link>https://thehale.dev/guides/auto-merging-prs/</link>
        <pubDate>Sun, 29 Oct 2023 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/guides/auto-merging-prs/</guid>
        <description>&lt;p&gt;You can increase development velocity by automatically merging pull requests from individuals or bots you trust. Here&amp;rsquo;s how&amp;hellip;&lt;/p&gt;&#xA;&lt;h2 id=&#34;enable-allow-auto-merge-pull-requests-in-repository-settings&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#enable-allow-auto-merge-pull-requests-in-repository-settings&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  Enable &lt;strong&gt;Allow auto-merge&lt;/strong&gt; pull requests in repository settings&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#enable-allow-auto-merge-pull-requests-in-repository-settings&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;The default settings for GitHub repositories block auto-merging any Pull Requests. This is a beneficial security measure which makes it harder for untrusted actors to integrate malicious code into your repository.&lt;/p&gt;</description>
      </item>
      <item>
        <title>Unit Tests: How to Fix a Lamp Without Bulldozing Your Hometown</title>
        <link>https://thehale.dev/essays/unit-testing-bulldozing-lamps/</link>
        <pubDate>Sat, 23 Sep 2023 00:00:00 +0000</pubDate>
        <guid>https://thehale.dev/essays/unit-testing-bulldozing-lamps/</guid>
        <description>&lt;h2 id=&#34;a-short-story-of-debugging-desperation&#34;&gt;&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#a-short-story-of-debugging-desperation&#34; aria-hidden=&#34;true&#34; tabindex=&#34;-1&#34;&gt;&lt;/a&gt;&#xA;  A Short Story of Debugging Desperation&#xA;  &lt;a class=&#34;hash&#34; href=&#34;#a-short-story-of-debugging-desperation&#34; aria-label=&#34;Link to this heading&#34; title=&#34;Link to this heading&#34; data-copy-title=&#34;Copy a link to this heading&#34;&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;In &lt;em&gt;97 Things Every Programmer Should Know&lt;/em&gt;, &lt;a href=&#34;https://www.linkedin.com/in/thomasguest?utm_source=thehale.dev&amp;amp;utm_medium=newsletter&amp;amp;utm_campaign=unit-testing-bulldozing-lamps&#34; rel=&#34;noopener&#34; target=&#34;_blank&#34;&gt;&lt;span&gt;Thomas Guest&lt;/span&gt;&lt;span aria-hidden=&#34;true&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 512 512&#34;&gt;&lt;!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --&gt;&lt;path d=&#34;M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z&#34;/&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/a&gt; recounts a moment when he had identified a problematic piece of code in a large application, but had lost hours in recompilation time trying to experiment with the erring edge case.&lt;/p&gt;</description>
      </item>
  </channel>
</rss>
