<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>codegen on krtffl.dev</title>
    <link>https://krtffl.dev/tags/codegen/</link>
    <description>Recent content in codegen on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 09 Dec 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/tags/codegen/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>the boilerplate tax: fourteen entities, an 890-line router, and go</title>
      <link>https://krtffl.dev/posts/go-boilerplate-tax/</link>
      <pubDate>Mon, 09 Dec 2024 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/go-boilerplate-tax/</guid>
      <description>&lt;p&gt;there&amp;rsquo;s a file in mojodojo called &lt;code&gt;dojo.go&lt;/code&gt; that declares six sentinel errors. two of them are misspelled: &lt;code&gt;&amp;quot;coulnd&#39;t create dojo&amp;quot;&lt;/code&gt; and &lt;code&gt;&amp;quot;dojo not foud&amp;quot;&lt;/code&gt;. i knew they were misspelled when i wrote them. and then i wrote the same six errors, with the same two typos, thirteen more times — &lt;code&gt;&amp;quot;coulnd&#39;t create belt&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;fighter not foud&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;coulnd&#39;t count fees&amp;quot;&lt;/code&gt; — because every entity got its own file, and i was copy-pasting the last one.&lt;/p&gt;
&lt;p&gt;nobody re-reads the ninth near-identical file. that&amp;rsquo;s the whole story of this post.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
