<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Necoz</title>
    <description>The latest articles on DEV Community by Necoz (necoz).</description>
    <link>https://dev.to/necoz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15923%2F19042de3-8257-4cc5-b2c0-adebba8cbeaa.png</url>
      <title>DEV Community: Necoz</title>
      <link>https://dev.to/necoz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/necoz"/>
    <language>en</language>
    <item>
      <title>Building More Than Projects: How We Can Grow Together as a Developer Community</title>
      <dc:creator>Pratyush Ranjan Roul</dc:creator>
      <pubDate>Sat, 28 Nov 2026 14:44:53 +0000</pubDate>
      <link>https://dev.to/necoz/building-more-than-projects-how-we-can-grow-together-as-a-developer-community-3bgl</link>
      <guid>https://dev.to/necoz/building-more-than-projects-how-we-can-grow-together-as-a-developer-community-3bgl</guid>
      <description>&lt;p&gt;Every developer starts somewhere.&lt;/p&gt;

&lt;p&gt;Some start with a simple website. Others experiment with Android applications, open-source repositories, automation, or their first programming language.&lt;/p&gt;

&lt;p&gt;But there's one thing I've realized while building projects:&lt;/p&gt;

&lt;p&gt;Building something is important, but having a community that helps you grow makes the journey much more meaningful.&lt;/p&gt;

&lt;p&gt;My Experience as a Developer&lt;/p&gt;

&lt;p&gt;I've been working on different projects under the Cometflow name, exploring Android development, web technologies, utility-based software, UI/UX design, and open-source development.&lt;/p&gt;

&lt;p&gt;One of my ongoing projects is Cometflow Do, an Android application built around a simple idea: making everyday digital utilities easier to access without turning everything into an AI chatbot.&lt;/p&gt;

&lt;p&gt;Working on projects like this has taught me several things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A good idea is only the beginning. Execution matters.&lt;/li&gt;
&lt;li&gt;UI/UX can completely change how people experience software.&lt;/li&gt;
&lt;li&gt;Debugging and fixing build failures are part of real development.&lt;/li&gt;
&lt;li&gt;Open-source projects need documentation, feedback, and continuous improvement.&lt;/li&gt;
&lt;li&gt;Community feedback can reveal problems that developers might never notice themselves.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I've also experienced the challenges of developing with limited resources. Sometimes a feature doesn't work, a build fails, or an implementation needs to be reconsidered.&lt;/p&gt;

&lt;p&gt;But that's part of learning and building.&lt;/p&gt;

&lt;p&gt;Why Communities Like Necoz Matter&lt;/p&gt;

&lt;p&gt;A developer community shouldn't just be a place where people share links to their projects.&lt;/p&gt;

&lt;p&gt;It should be a place where people can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Share what they're building.&lt;/li&gt;
&lt;li&gt;Get genuine feedback and technical help.&lt;/li&gt;
&lt;li&gt;Collaborate on open-source projects.&lt;/li&gt;
&lt;li&gt;Learn from other developers' experiences.&lt;/li&gt;
&lt;li&gt;Discover interesting tools and technologies.&lt;/li&gt;
&lt;li&gt;Help beginners take their first steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The best communities don't just collect members. They create opportunities for members to build something meaningful together.&lt;/p&gt;

&lt;p&gt;How Can We Make Necoz Bigger Together?&lt;/p&gt;

&lt;p&gt;I believe growth should come from value, not just numbers.&lt;/p&gt;

&lt;p&gt;Here are a few ideas I'd love to see us explore:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build in Public&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Members could regularly share development progress, challenges, screenshots, and lessons learned.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Community Projects&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We could collaborate on small open-source projects where beginners and experienced developers work together.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Weekly Developer Challenges&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Simple challenges involving JavaScript, Python, Android, APIs, UI/UX, or automation could encourage members to experiment and learn.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Project Feedback Sessions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Members could submit their projects and receive constructive feedback on design, functionality, performance, and documentation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Beginner-Friendly Contributions&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Create opportunities for newcomers to contribute through documentation, testing, bug reports, translations, and small code improvements.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Celebrate Community Achievements&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Feature interesting projects, contributors, milestones, and technical discoveries from Necoz members.&lt;/p&gt;

&lt;p&gt;Imagine a community where someone joins with zero open-source experience and eventually becomes a contributor, project maintainer, or independent developer.&lt;/p&gt;

&lt;p&gt;That's the kind of growth worth building.&lt;/p&gt;

&lt;p&gt;My Contribution&lt;/p&gt;

&lt;p&gt;I don't want to simply suggest ideas and wait for someone else to implement them.&lt;/p&gt;

&lt;p&gt;I'd love to contribute by sharing my development experiences, discussing technical challenges, showcasing practical projects, helping test community projects, and participating in collaborations.&lt;/p&gt;

&lt;p&gt;My own project, Cometflow Do, is one example of what I'm experimenting with. I'm also interested in learning from other developers and discovering opportunities to collaborate.&lt;/p&gt;

&lt;p&gt;I believe everyone has something valuable to contribute, regardless of their experience level.&lt;/p&gt;

&lt;p&gt;One Question for Everyone at Necoz&lt;/p&gt;

&lt;p&gt;If we could collectively build one meaningful open-source project as a community, what should it be?&lt;/p&gt;

&lt;p&gt;A developer toolkit? An Android application? A productivity platform? Something completely different?&lt;/p&gt;

&lt;p&gt;Let's discuss ideas, share skills, and actually build something together.&lt;/p&gt;

&lt;p&gt;Necoz shouldn't just be a community we join. It should be something we build together.&lt;/p&gt;

&lt;p&gt;Let's make it bigger, more helpful, more collaborative, and more welcoming for every developer.&lt;/p&gt;

&lt;p&gt;And who knows? Maybe some of the best projects we'll build haven't even been imagined yet.&lt;/p&gt;

&lt;p&gt;— A fellow builder from the Cometflow community.&lt;/p&gt;




&lt;p&gt;P.S. If you're interested in my current Android utility project, check out my another website  &lt;/p&gt;

&lt;p&gt;Cometflow Space &lt;a href="https://cometflow-space-new.vercel.app" rel="noopener noreferrer"&gt;https://cometflow-space-new.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cometflow Do (official website)&lt;/p&gt;

&lt;p&gt;cometflow-do-website.x-studios-ops.workers.dev&lt;/p&gt;

</description>
      <category>community</category>
      <category>necoz</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What If Your Phone Could Solve Everyday Digital Problems Without Depending on AI?</title>
      <dc:creator>Pratyush Ranjan Roul</dc:creator>
      <pubDate>Sat, 28 Nov 2026 11:03:31 +0000</pubDate>
      <link>https://dev.to/necoz/what-if-your-phone-could-solve-everyday-digital-problems-without-depending-on-ai-1m08</link>
      <guid>https://dev.to/necoz/what-if-your-phone-could-solve-everyday-digital-problems-without-depending-on-ai-1m08</guid>
      <description>&lt;p&gt;Technology is evolving rapidly. Almost every application today wants to become an AI-powered assistant. But sometimes, users don't need another chatbot. They simply need a tool that works.&lt;/p&gt;

&lt;p&gt;Need to convert an image? Inspect a file? Calculate a checksum? Understand metadata? Detect a MIME type?&lt;/p&gt;

&lt;p&gt;These are simple tasks, yet people often need to visit multiple websites, install different applications, or deal with unnecessary complexity.&lt;/p&gt;

&lt;p&gt;What if one application could bring these utilities together?&lt;/p&gt;

&lt;p&gt;That's the idea behind Cometflow Do.&lt;/p&gt;

&lt;p&gt;The Problem With Modern Utility Applications&lt;/p&gt;

&lt;p&gt;Many utility applications suffer from similar problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Too many advertisements and unnecessary UI elements.&lt;/li&gt;
&lt;li&gt;Complicated workflows for simple operations.&lt;/li&gt;
&lt;li&gt;Dependence on internet connectivity.&lt;/li&gt;
&lt;li&gt;Multiple applications needed for different tasks.&lt;/li&gt;
&lt;li&gt;Privacy concerns when uploading files to online services.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal shouldn't always be to add more intelligence. Sometimes, the best innovation is making existing tasks easier.&lt;/p&gt;

&lt;p&gt;Introducing Cometflow Do&lt;/p&gt;

&lt;p&gt;Cometflow Do is an Android utility platform built around a simple philosophy:&lt;/p&gt;

&lt;p&gt;Utility first. Simplicity always.&lt;/p&gt;

&lt;p&gt;Instead of positioning itself as another AI chatbot, Cometflow Do focuses on helping users discover and execute practical digital utilities through a conversational-style interface.&lt;/p&gt;

&lt;p&gt;The interface makes tool discovery feel natural while the underlying utilities focus on performing actual tasks.&lt;/p&gt;

&lt;p&gt;What Makes It Interesting?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Conversational Approach to Utility Discovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Users shouldn't need to remember the exact name of every tool.&lt;/p&gt;

&lt;p&gt;Cometflow Do aims to make utility discovery easier through natural-language commands and intelligent intent understanding.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Convert this image to PDF."&lt;/li&gt;
&lt;li&gt;"Calculate this file's checksum."&lt;/li&gt;
&lt;li&gt;"Inspect this file's metadata."&lt;/li&gt;
&lt;li&gt;"Compress this image."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The idea is to understand what the user wants and connect that intent to the appropriate utility.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Local-First Philosophy&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Privacy matters, especially when working with personal files.&lt;/p&gt;

&lt;p&gt;Cometflow Do's direction emphasizes on-device processing wherever supported, reducing unnecessary dependence on external services.&lt;/p&gt;

&lt;p&gt;The broader vision is simple: keep everyday operations efficient while respecting user privacy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Growing Utility Ecosystem&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cometflow Do is designed around a growing collection of practical utilities.&lt;/p&gt;

&lt;p&gt;Some examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image to PDF&lt;/li&gt;
&lt;li&gt;Image Compressor&lt;/li&gt;
&lt;li&gt;MIME Detector&lt;/li&gt;
&lt;li&gt;Metadata Inspector&lt;/li&gt;
&lt;li&gt;Checksum Calculator&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These represent the kinds of everyday tasks that the platform aims to simplify.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Smarter Tool Discovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A utility platform becomes more useful when users can find the right functionality without navigating complicated menus.&lt;/p&gt;

&lt;p&gt;Cometflow Do focuses on improving intent recognition, typo tolerance, tool discovery and clarification when a command is ambiguous.&lt;/p&gt;

&lt;p&gt;The objective isn't to guess blindly. It's to understand the request and help users reach the correct tool.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Minimal Experience&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A powerful application doesn't necessarily need a complicated interface.&lt;/p&gt;

&lt;p&gt;Cometflow Do follows a clean, chat-inspired UI direction with an emphasis on accessibility, simplicity and practical functionality.&lt;/p&gt;

&lt;p&gt;The Bigger Vision&lt;/p&gt;

&lt;p&gt;Cometflow Do is part of a broader ecosystem called Cometflow.&lt;/p&gt;

&lt;p&gt;The vision is to build useful digital products that make technology more accessible without introducing unnecessary complexity.&lt;/p&gt;

&lt;p&gt;Rather than building another application that simply follows trends, the focus is on creating products that solve actual problems.&lt;/p&gt;

&lt;p&gt;Why This Approach Matters&lt;/p&gt;

&lt;p&gt;AI is powerful, but not every problem requires AI.&lt;/p&gt;

&lt;p&gt;A file conversion doesn't need a chatbot conversation. A checksum calculation doesn't need a cloud-based language model.&lt;/p&gt;

&lt;p&gt;Sometimes, deterministic software, good intent recognition and a thoughtfully designed interface are enough.&lt;/p&gt;

&lt;p&gt;That's the philosophy behind Cometflow Do.&lt;/p&gt;




&lt;p&gt;Explore Cometflow&lt;/p&gt;

&lt;p&gt;If you enjoy discovering useful digital tools, applications and resources, check out Cometflow Space.&lt;/p&gt;

&lt;p&gt;🌐 &lt;a href="https://cometflow-space-new.vercel.app/" rel="noopener noreferrer"&gt;https://cometflow-space-new.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try Cometflow Do&lt;/p&gt;

&lt;p&gt;Looking for a simpler way to access everyday digital utilities?&lt;/p&gt;

&lt;p&gt;Explore Cometflow Do, an Android utility platform focused on practical tools, smarter discovery and a minimal experience.&lt;/p&gt;

&lt;p&gt;Built with a simple belief:&lt;/p&gt;

&lt;p&gt;Less unnecessary complexity. More useful technology.&lt;/p&gt;

&lt;p&gt;X Studios Ops — Building useful things for everyone.&lt;/p&gt;

</description>
      <category>techtalks</category>
      <category>productivity</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>What's Your WPM? ⌨️</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Sat, 28 Nov 2026 10:22:55 +0000</pubDate>
      <link>https://dev.to/necoz/whats-your-wpm-3lah</link>
      <guid>https://dev.to/necoz/whats-your-wpm-3lah</guid>
      <description>&lt;p&gt;&lt;strong&gt;Since it's the weekend, you might have 30 seconds to spare!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I challenge you to accept this challenge, take the typing test, and share a screenshot of your results in the comments! ⌨️🔥&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
    &lt;a href="https://monkeytype.com" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;here&lt;/a&gt;

&lt;/h2&gt;

&lt;p&gt;Happy Saturday! &lt;/p&gt;

</description>
      <category>necoz</category>
      <category>discuss</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>30 minutes, they said 😅</title>
      <dc:creator>Antonio </dc:creator>
      <pubDate>Sat, 28 Nov 2026 08:27:17 +0000</pubDate>
      <link>https://dev.to/necoz/30-minutes-they-said-1h0h</link>
      <guid>https://dev.to/necoz/30-minutes-they-said-1h0h</guid>
      <description>&lt;p&gt;The DEV newsletter landed in my inbox. Top 7 posts, news, the usual. And then, at the bottom, the Developer Census.&lt;/p&gt;

&lt;p&gt;"It takes about 30 to 35 minutes."&lt;/p&gt;

&lt;p&gt;Ok, I thought. Let's do it. Partly to help, mostly out of curiosity. I wanted to see what kind of questions they ask developers in 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minute 1
&lt;/h2&gt;

&lt;p&gt;Region. Role. Years of experience. Easy. I'm flying.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minute 20
&lt;/h2&gt;

&lt;p&gt;RTOS. QNX. Venture capital. Blockchain. Web3. AGI. Edge AI.&lt;/p&gt;

&lt;p&gt;I work in a factory during the day and write JavaScript at night. I had to stop and look up half of these words. I learned more in this survey than in some tutorials.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minute 60
&lt;/h2&gt;

&lt;p&gt;There was an attention check. A question that only exists to see if you are still awake.&lt;/p&gt;

&lt;p&gt;I was. Barely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minute 90
&lt;/h2&gt;

&lt;p&gt;I was seriously thinking about closing everything. The coffee was gone. My back was asking questions too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Minute 120, more or less
&lt;/h2&gt;

&lt;p&gt;I finished. About 2 hours for a "30 to 35 minute" survey. I sweated more on this than on some of my Chrome extension reviews.&lt;/p&gt;

&lt;p&gt;And then, the last screen: a GIF of people dancing, with a message saying thank you, you're special.&lt;/p&gt;

&lt;p&gt;I laughed so hard. After two hours, a group of dancing strangers telling me I'm special. I will remember that screen for the rest of my life. 😂&lt;/p&gt;

&lt;h2&gt;
  
  
  So
&lt;/h2&gt;

&lt;p&gt;Would I do it again? Yes. Probably. Next year. With two coffees.&lt;/p&gt;

&lt;p&gt;Did you take the census? How long did it take you? Be honest. 🐝&lt;/p&gt;

</description>
      <category>devlife</category>
      <category>humor</category>
      <category>community</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Why Do You Bookmark Articles?</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:01:03 +0000</pubDate>
      <link>https://dev.to/necoz/why-do-you-bookmark-articles-4kf</link>
      <guid>https://dev.to/necoz/why-do-you-bookmark-articles-4kf</guid>
      <description>&lt;p&gt;I have never &lt;strong&gt;bookmarked&lt;/strong&gt; an article before. It’s not that I have never come across an &lt;strong&gt;interesting article&lt;/strong&gt;. To be honest, I have just never understood why people decide to &lt;strong&gt;bookmark&lt;/strong&gt; an &lt;strong&gt;article&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You must be thinking, &lt;strong&gt;How weird is this person!&lt;/strong&gt; 😅&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvraog4sidc31tmc8zntn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvraog4sidc31tmc8zntn.gif" alt="Image dessscription" width="374" height="346"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Do you know right away when you read an &lt;strong&gt;article&lt;/strong&gt; that it’s &lt;strong&gt;worth saving?&lt;/strong&gt; Do you think about it before &lt;strong&gt;bookmarking&lt;/strong&gt;, or do you just save it instantly? What goes through your mind at that moment? I’m genuinely curious because &lt;strong&gt;everyone&lt;/strong&gt; has their own way of deciding what to save.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>bookmark</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Why Can't We Just #include "functions.c" in "main.c"? 🤔</title>
      <dc:creator>EffessDev</dc:creator>
      <pubDate>Thu, 26 Nov 2026 12:21:47 +0000</pubDate>
      <link>https://dev.to/necoz/why-cant-we-just-include-functionsc-in-mainc-1a73</link>
      <guid>https://dev.to/necoz/why-cant-we-just-include-functionsc-in-mainc-1a73</guid>
      <description>&lt;p&gt;Suppose we have two files.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;functions.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;

&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Hi!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;main.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// Empty&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And we need to call &lt;code&gt;greet()&lt;/code&gt; from &lt;code&gt;main.c&lt;/code&gt;. How do we do that? 🤔 &lt;/p&gt;

&lt;p&gt;If you are coming from other languages, you might expect to import &lt;code&gt;functions.c&lt;/code&gt; in &lt;code&gt;main.c&lt;/code&gt; and call &lt;code&gt;greet()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But C programmers usually create a file named &lt;code&gt;functions.h&lt;/code&gt; first, containing the top portion of the function (called declaration):&lt;/p&gt;

&lt;p&gt;&lt;code&gt;functions.h&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then &lt;code&gt;#include&lt;/code&gt; it in &lt;code&gt;main.c&lt;/code&gt; and call the function:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include "functions.h"&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Why not &lt;code&gt;#include&lt;/code&gt; &lt;code&gt;functions.c&lt;/code&gt; directly? Why use a header file (&lt;code&gt;functions.h&lt;/code&gt;)?&lt;/p&gt;
&lt;h2&gt;
  
  
  How &lt;code&gt;#include&lt;/code&gt; works
&lt;/h2&gt;

&lt;p&gt;The working mechanism of &lt;code&gt;#include "filename"&lt;/code&gt; is extremely simple--It just copies that file's contents into that spot before actual compilation begins (literally). &lt;code&gt;main.c&lt;/code&gt; would look like this just before compilation:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// &amp;lt;-- Contents of functions.h&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;So &lt;code&gt;functions.h&lt;/code&gt; is not strictly needed here, as long as you put &lt;code&gt;void greet(void);&lt;/code&gt; (the declaration for the function &lt;code&gt;greet()&lt;/code&gt;) in &lt;code&gt;main.c&lt;/code&gt;. Like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// &amp;lt;-- Declaration for greet()&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;So the question becomes, &lt;strong&gt;why we need to declare functions&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why do we need to declare functions? 🤔
&lt;/h2&gt;

&lt;p&gt;When we compile our program, we already specify all source files.&lt;/p&gt;

&lt;p&gt;Example build command (using the C compiler &lt;code&gt;gcc&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gcc main.c functions.c -o final_program
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Since we already specify all source files here, manual &lt;code&gt;import&lt;/code&gt; inside the files (like Python) isn't needed. We do not import source files inside source files, we simply build (compile) them together.&lt;/p&gt;
&lt;h2&gt;
  
  
  The key part
&lt;/h2&gt;

&lt;p&gt;But each one of those source files compile separately, often in parallel so as to utilise the multiple cores in your CPU. In our case, &lt;code&gt;main.c&lt;/code&gt; and &lt;code&gt;functions.c&lt;/code&gt; get compiled in parallel. This is the main reason why we need to declare functions.&lt;/p&gt;

&lt;p&gt;Lets assume the compiler is compiling this part of &lt;code&gt;main.c&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;    &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Here, we are calling a function which is not defined in the current file. The compiler doesn't know how to call &lt;code&gt;greet()&lt;/code&gt;, like which arguments to pass, the types of the arguments, the return type, etc. Without that info, the compiler wouldn't be able to translate it to machine code &lt;/p&gt;

&lt;p&gt;When we add a declaration &lt;code&gt;void greet(void);&lt;/code&gt; in &lt;code&gt;main.c&lt;/code&gt;, we are promising the compiler that a function named &lt;code&gt;greet&lt;/code&gt; that takes no arguments and return nothing exists in one of the source files (note: &lt;code&gt;void&lt;/code&gt; means "nothing"). Now, the compiler has our promise so it doens't throw an error saying that this function doesn't exist, as well as the necessary information to compile the calling part. The address to the actual function is left empty.&lt;/p&gt;

&lt;p&gt;After compilation, each source file becomes an object file, with the file extension &lt;code&gt;.o&lt;/code&gt; (&lt;code&gt;main.o&lt;/code&gt;, &lt;code&gt;functions.o&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Then, something called a &lt;strong&gt;linker&lt;/strong&gt;, combines these object files together, giving us the final executable. It will fill in the empty function addresses, and throws an error if the function we promised to exit doesn't exist in any of the source files.&lt;/p&gt;

&lt;p&gt;So, that's solved now. But we didn't answer the original question, did we?&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Can't We Just &lt;code&gt;#include "functions.c&lt;/code&gt; in &lt;code&gt;main.c&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;We said:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Each one of those source files compile separately, often in parallel so as to utilise the multiple cores in your CPU."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But if we &lt;code&gt;#include&lt;/code&gt; the contents of all files in &lt;code&gt;main.c&lt;/code&gt;, &lt;code&gt;main.c&lt;/code&gt; would be a single large file before compilation, and we would loose that benefit.&lt;/p&gt;

&lt;p&gt;Also, compilers reuse object files. Assume we compiled our project first, then made a few changes to &lt;code&gt;functions.c&lt;/code&gt;, and recompiled. The compiler wouldn't compile &lt;code&gt;main.c&lt;/code&gt; again to &lt;code&gt;main.o&lt;/code&gt;! It detects that &lt;code&gt;main.c&lt;/code&gt; wasn't changed, and reuses &lt;code&gt;main.o&lt;/code&gt;. If we had &lt;code&gt;#include&lt;/code&gt;ed &lt;code&gt;functions.c&lt;/code&gt; in &lt;code&gt;main.c&lt;/code&gt;, this wouldn't have been possible, since the compiler sees a single, concatenated &lt;code&gt;main.c&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;There is also another problem that happens if you &lt;code&gt;#include "functions.c"&lt;/code&gt; in more than one file. Because &lt;code&gt;#include&lt;/code&gt; just copies the code in, &lt;code&gt;greet()&lt;/code&gt; gets defined more than once across your compiled files, and the linker throws a &lt;strong&gt;multiple definition&lt;/strong&gt; error when combining them.&lt;/p&gt;

&lt;p&gt;Putting &lt;code&gt;#pragma once&lt;/code&gt; in &lt;code&gt;functions.c&lt;/code&gt; wouldn't fix this, because it only stops a file from being included more than once inside the same single file during one compilation. It does not stop if separate &lt;code&gt;.c&lt;/code&gt; files &lt;code&gt;#include functions.c&lt;/code&gt; and create duplicate definitions for the linker.&lt;/p&gt;
&lt;h2&gt;
  
  
  Thanks for reading 🙂
&lt;/h2&gt;

&lt;p&gt;This is my first post for Necoz and was inspired by &lt;a class="mentioned-user" href="https://dev.to/csm18"&gt;@csm18&lt;/a&gt;!&lt;/p&gt;


&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/necoz/string-type-in-c-3aep" class="crayons-story__hidden-navigation-link"&gt;String Type In C&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
      &lt;a href="https://dev.to/necoz/string-type-in-c-3aep" class="crayons-article__context-note crayons-article__context-note__feed"&gt;&lt;p&gt;Builds custom structs with heap allocation&lt;/p&gt;

&lt;/a&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/necoz"&gt;
            &lt;img alt="Necoz logo" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15923%2F19042de3-8257-4cc5-b2c0-adebba8cbeaa.png" class="crayons-logo__image"&gt;
          &lt;/a&gt;

          &lt;a href="/csm18" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1590922%2F1d71d879-5f9e-42d7-a40e-436badadd278.png" alt="csm18 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/csm18" class="crayons-story__secondary fw-medium m:hidden"&gt;
              csm
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                csm
                
                
              
              &lt;div id="story-author-preview-content-5106419" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/csm18" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1590922%2F1d71d879-5f9e-42d7-a40e-436badadd278.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;csm&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/necoz" class="crayons-story__secondary fw-medium"&gt;Necoz&lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/necoz/string-type-in-c-3aep" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 24&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/necoz/string-type-in-c-3aep" id="article-link-5106419"&gt;
          String Type In C
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/c"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;c&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/beginners"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;beginners&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/necoz"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;necoz&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/necoz/string-type-in-c-3aep" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;55&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/necoz/string-type-in-c-3aep#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              15&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

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


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


&lt;p&gt;I wrote this entire article from my phone during a bus commute. Feel free to report if there are any typos/issues! 😊&lt;/p&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>c</category>
    </item>
    <item>
      <title>Which OpenAPI Codegen Should You Choose in 2026? 🤔 openapi-typescript vs Hey API vs Orval vs Kubb v5 🔥</title>
      <dc:creator>nyaomaru</dc:creator>
      <pubDate>Wed, 25 Nov 2026 17:15:25 +0000</pubDate>
      <link>https://dev.to/necoz/which-openapi-codegen-should-you-choose-in-2026-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-m8c</link>
      <guid>https://dev.to/necoz/which-openapi-codegen-should-you-choose-in-2026-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-m8c</guid>
      <description>&lt;p&gt;Hoi hoi!&lt;/p&gt;

&lt;p&gt;I'm &lt;a class="mentioned-user" href="https://dev.to/nyaomaru"&gt;@nyaomaru&lt;/a&gt;, a frontend engineer who loves TypeScript, OSS, and getting lost in forests of generated code. 🌳&lt;/p&gt;

&lt;p&gt;Six months ago, I compared four OpenAPI code generators in this article 👇&lt;/p&gt;


&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p" class="crayons-story__hidden-navigation-link"&gt;Which OpenAPI Codegen Should You Choose? openapi-typescript vs hey-api vs Orval vs Kubb&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/nyaomaru" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1436158%2Fa78bc4ed-7796-4760-baa5-06283c2404d6.png" alt="nyaomaru profile" class="crayons-avatar__image" width="800" height="790"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/nyaomaru" class="crayons-story__secondary fw-medium m:hidden"&gt;
              nyaomaru
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                nyaomaru
                
                
              
              &lt;div id="story-author-preview-content-3688298" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/nyaomaru" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1436158%2Fa78bc4ed-7796-4760-baa5-06283c2404d6.png" class="crayons-avatar__image" alt="" width="800" height="790"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;nyaomaru&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 20&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p" id="article-link-3688298"&gt;
          Which OpenAPI Codegen Should You Choose? openapi-typescript vs hey-api vs Orval vs Kubb
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/typescript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;typescript&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/openapi"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;openapi&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/frontend"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;frontend&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;62&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/nyaomaru/which-openapi-codegen-should-you-choose-openapi-typescript-vs-hey-api-vs-orval-vs-kubb-100p#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              15&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            18 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

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


&lt;/div&gt;


&lt;p&gt;I chose Hey API.&lt;/p&gt;

&lt;p&gt;I'm still using it in production, and I'm pretty happy with it.&lt;/p&gt;

&lt;p&gt;But Kubb has changed a lot with v5! 🚀&lt;/p&gt;

&lt;p&gt;Faster generation? Better clients? A new plugin architecture?&lt;/p&gt;

&lt;p&gt;Oh no. Time to go back into the forest. 🌳🌳🌳&lt;/p&gt;

&lt;p&gt;Let's see what has changed!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7mmf9fdrotklvnav6d18.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7mmf9fdrotklvnav6d18.gif" alt="open api test" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🎯 TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Why I would choose it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;Types with minimal generated code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;Clean SDKs and comfortable DX&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;Flexible client, query, and mock generation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb v5&lt;/td&gt;
&lt;td&gt;Extensible code generation with much-improved clients&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I'm keeping Hey API in my existing projects.&lt;/p&gt;

&lt;p&gt;But for my next project? Kubb looks quite tempting. 👀&lt;/p&gt;




&lt;h2&gt;
  
  
  🕰️ Six months later
&lt;/h2&gt;

&lt;p&gt;Here are the versions I tested (Kubb plugins have their own versions) 👇&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;May 2026&lt;/th&gt;
&lt;th&gt;November 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;7.13.0&lt;/td&gt;
&lt;td&gt;7.13.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;0.96.1&lt;/td&gt;
&lt;td&gt;0.99.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;8.8.1&lt;/td&gt;
&lt;td&gt;8.48.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;4.37.2&lt;/td&gt;
&lt;td&gt;5.20.2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Kubb had a major architectural overhaul, while Hey API and Orval continued improving their existing ecosystems.&lt;/p&gt;

&lt;p&gt;Let's see what that actually means for us.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏎️ How fast are they now?
&lt;/h2&gt;

&lt;p&gt;For this investigation, I generated a synthetic OpenAPI specification using &lt;code&gt;drf-spectacular&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1,200 operations&lt;/li&gt;
&lt;li&gt;484 component schemas&lt;/li&gt;
&lt;li&gt;51,878 lines&lt;/li&gt;
&lt;li&gt;Approximately 1.28 MB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I reran the previous versions using this new specification.&lt;/p&gt;

&lt;p&gt;All measurements below are from the same &lt;code&gt;Ryzen 9 7900&lt;/code&gt; machine running &lt;code&gt;WSL2&lt;/code&gt; and &lt;code&gt;Node.js 26&lt;/code&gt;. Each result is the median of eight measured executions after one warm-up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Types only
&lt;/h3&gt;

&lt;p&gt;Generating 484 shared component schemas&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Peak RSS (max)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;438 ms&lt;/td&gt;
&lt;td&gt;191 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;527 ms&lt;/td&gt;
&lt;td&gt;240 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;866 ms&lt;/td&gt;
&lt;td&gt;145 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;337 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;156 MiB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Wait, &lt;code&gt;Kubb&lt;/code&gt;?! 😳&lt;/p&gt;

&lt;h3&gt;
  
  
  Types + Fetch SDK
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;I benchmarked both old and current versions on the same synthetic schema and machine.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Old version&lt;/th&gt;
&lt;th&gt;Current version&lt;/th&gt;
&lt;th&gt;Reduction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;7,406 ms&lt;/td&gt;
&lt;td&gt;1,329 ms&lt;/td&gt;
&lt;td&gt;82.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;3,457 ms&lt;/td&gt;
&lt;td&gt;1,723 ms&lt;/td&gt;
&lt;td&gt;50.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;6,236 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,155 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;81.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's a massive improvement for both &lt;code&gt;Hey API&lt;/code&gt; and &lt;code&gt;Kubb&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;openapi-typescript&lt;/code&gt; took 751 ms to generate the full operation types, but it uses a generic runtime client rather than generating an SDK for every endpoint, so I've kept it separate.&lt;/p&gt;

&lt;p&gt;Generation scopes and output structures still differ, and these aren't measurements against the original production API.&lt;/p&gt;

&lt;p&gt;Also, generation isn't everything. A single TypeScript compilation took approximately 2.44 seconds for &lt;code&gt;Hey API&lt;/code&gt; and 3.80 seconds for &lt;code&gt;Kubb&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Fast generation doesn't necessarily mean faster everything.&lt;/p&gt;

&lt;p&gt;Still, impressive work! 🚀&lt;/p&gt;




&lt;h2&gt;
  
  
  🌳 How big is the forest?
&lt;/h2&gt;

&lt;p&gt;Here's the generated output for the full specification.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Files&lt;/th&gt;
&lt;th&gt;Source size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1.45 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;1.78 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;1,926&lt;/td&gt;
&lt;td&gt;2.18 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;2,897&lt;/td&gt;
&lt;td&gt;3.13 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A house, a small town, a forest, and a very ambitious forest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;openapi-typescript/
  types.ts

hey-api/
  types.gen.ts
  sdk.gen.ts
  client.gen.ts
  client/
  core/

orval/
  api.ts
  schemas/

kubb/
  clients/
  types/
  .kubb/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I still prefer &lt;code&gt;Hey API&lt;/code&gt;'s relatively compact structure.&lt;/p&gt;

&lt;p&gt;But &lt;code&gt;Kubb&lt;/code&gt;'s distributed files aren't necessarily a bad thing. Smaller individual files can make generated code easier to navigate and review.&lt;/p&gt;

&lt;p&gt;These are generated source sizes, by the way—not application bundle sizes.&lt;/p&gt;


&lt;h2&gt;
  
  
  🧑‍💻 Let's actually call an API
&lt;/h2&gt;

&lt;p&gt;Suppose we have three endpoints 👇&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET  /users
GET  /users/{id}
POST /users
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  openapi-typescript
&lt;/h3&gt;

&lt;p&gt;Using its official companion, &lt;code&gt;openapi-fetch&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;createClient&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;paths&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;baseUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;BASE_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;GET&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/users"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;GET&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/users/{id}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/users"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ada"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;No generated function for every endpoint.&lt;/p&gt;

&lt;p&gt;Just typed URLs, HTTP methods, and a generic client.&lt;/p&gt;

&lt;p&gt;Small. Simple. Useful. 👍&lt;/p&gt;
&lt;h3&gt;
  
  
  Hey API
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;getUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;createUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ada"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This is one of the main reasons I chose Hey API.&lt;/p&gt;

&lt;p&gt;I don't need to remember the argument order of 1,200 functions.&lt;/p&gt;

&lt;p&gt;Just &lt;code&gt;query&lt;/code&gt;, &lt;code&gt;path&lt;/code&gt;, and &lt;code&gt;body&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;My little brain is happy. 😸🧠&lt;/p&gt;
&lt;h3&gt;
  
  
  Orval
&lt;/h3&gt;

&lt;p&gt;With &lt;code&gt;useNamedParameters: true&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;getUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;createUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ada"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Request options can be passed separately, and custom mutators allow you to centralize transport logic. 👍&lt;/p&gt;
&lt;h3&gt;
  
  
  Kubb v5
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;getUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;createUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ada"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This looks familiar. 👀&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Kubb&lt;/code&gt; now gives me &lt;strong&gt;the consistent request structure I like in Hey API&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;One of my previous concerns is gone. 😸🚀&lt;/p&gt;


&lt;h2&gt;
  
  
  ⚠️ What happens when things explode?
&lt;/h2&gt;

&lt;p&gt;Let's say our API returns&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;200&lt;/code&gt;: &lt;code&gt;User[]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;400&lt;/code&gt;: &lt;code&gt;{ message: string }&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;409&lt;/code&gt;: &lt;code&gt;{ conflict: string }&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I like result-based error handling, but sometimes I also want exceptions.&lt;/p&gt;

&lt;p&gt;More importantly, I want TypeScript to know which error I'm dealing with.&lt;/p&gt;
&lt;h3&gt;
  
  
  openapi-fetch
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="s2"&gt;"message"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Hey API
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
  &lt;span class="s2"&gt;"message"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You get typed error responses, but checking the nested HTTP status alone doesn't narrow the error body.&lt;/p&gt;
&lt;h3&gt;
  
  
  Orval
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;409&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;conflict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Nice!&lt;/p&gt;

&lt;p&gt;The top-level status acts as a discriminant. 😸&lt;/p&gt;
&lt;h3&gt;
  
  
  Kubb v5
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;throwOnError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"message"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;Kubb&lt;/code&gt; also provides status-based narrowing. The additional guard handles the possible empty error body. 👍&lt;/p&gt;
&lt;h3&gt;
  
  
  To throw or not to throw
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Hey API&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;throwOnError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Kubb&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;throwOnError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;Hey API&lt;/code&gt; defaults to result-style HTTP errors in the tested SDK; &lt;code&gt;Kubb&lt;/code&gt; defaults to throwing. Both let me choose.&lt;/p&gt;

&lt;p&gt;Or, with &lt;code&gt;Kubb&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;throwOnError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unwrap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I particularly like this little &lt;code&gt;.unwrap()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Give me the data or reject. Thank you very much!&lt;/p&gt;

&lt;p&gt;There are still differences in what each client considers an error.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Behavior&lt;/th&gt;
&lt;th&gt;Hey API&lt;/th&gt;
&lt;th&gt;Kubb&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Result-style HTTP errors&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configurable throwing&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status-discriminated result&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.unwrap()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network failure in nonthrowing mode&lt;/td&gt;
&lt;td&gt;Returned error in tests&lt;/td&gt;
&lt;td&gt;Rejected in tests&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nonthrowing HTTP mode doesn't mean nothing can throw!&lt;/p&gt;


&lt;h2&gt;
  
  
  🪝 What about TanStack Query?
&lt;/h2&gt;

&lt;p&gt;All four have a way to integrate with TanStack Query.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// openapi-react-query&lt;/span&gt;
&lt;span class="nv"&gt;$api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;queryOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"get"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/users"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Hey API&lt;/span&gt;
&lt;span class="nf"&gt;getUsersOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Orval&lt;/span&gt;
&lt;span class="nf"&gt;getGetUsersQueryOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Kubb&lt;/span&gt;
&lt;span class="nf"&gt;getUsersQueryOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;One interesting difference appeared in the runtime tests:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;HTTP 400 in tested query configuration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-react-query&lt;/td&gt;
&lt;td&gt;Rejects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;Rejects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;Resolves by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;Rejects by default&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;TanStack Query needs a rejected promise to recognize a failed request.&lt;/p&gt;

&lt;p&gt;For Orval's tested Fetch configuration, enabling &lt;code&gt;override.fetch.forceSuccessResponse: true&lt;/code&gt; changes that behavior.&lt;/p&gt;

&lt;p&gt;Not a deal-breaker. Just something worth configuring before your query happily reports that everything is fine while your API is on fire. 🔥&lt;/p&gt;


&lt;h2&gt;
  
  
  🤯 The enum problem, again
&lt;/h2&gt;

&lt;p&gt;Remember those little enums that caused so much trouble last time?&lt;/p&gt;

&lt;p&gt;They're back.&lt;/p&gt;

&lt;p&gt;Consider these schema fragments:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;BlankEnum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;
  &lt;span class="na"&gt;enum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;NullEnum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;enum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Here's what happened:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;openapi-typescript&lt;/th&gt;
&lt;th&gt;Hey API&lt;/th&gt;
&lt;th&gt;Orval&lt;/th&gt;
&lt;th&gt;Kubb&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Empty-string enum (3.0 fixture)&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Null-only enum (3.1 fixture)&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;❌&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Kubb's previous blank-enum issue is fixed! 🎉&lt;/p&gt;

&lt;p&gt;Its v4 already handled the tested null-only case correctly, so that isn't a new v5 improvement.&lt;/p&gt;

&lt;p&gt;Interestingly, Hey API still has a problem with the null-only enum.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;NullEnum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;never&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Oops.&lt;/p&gt;

&lt;p&gt;Adding &lt;code&gt;type: 'null'&lt;/code&gt; fixes the TypeScript type, but the generated Zod validator can still accept unrelated values.&lt;/p&gt;

&lt;p&gt;The verified workaround for this OpenAPI 3.1 case is:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;NullEnum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"null"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now we get the correct type and validator:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;NullEnum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;zNullEnum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;There's also an &lt;a href="https://github.com/hey-api/hey-api/issues/4239" rel="noopener noreferrer"&gt;existing upstream issue&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It's a specific edge case, not a general problem with nullable properties.&lt;br&gt;
But this is why I test generated types instead of simply trusting them.&lt;/p&gt;


&lt;h2&gt;
  
  
  🛡️ Type safety at runtime
&lt;/h2&gt;

&lt;p&gt;TypeScript is wonderful. Unfortunately, my backend doesn't care. 😹&lt;/p&gt;

&lt;p&gt;All four default clients accepted invalid response data in my tests. With runtime validation, all four rejected it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Validation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;Generated Zod&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;Generated Zod&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;Generated Zod&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h3&gt;
  
  
  Encoding and decoding
&lt;/h3&gt;

&lt;p&gt;Kubb has another interesting feature: directional transformations.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;postTimestamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;at&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;With &lt;code&gt;inferred: 'codec'&lt;/code&gt; and a custom datetime printer, Kubb generated the ISO string ↔ &lt;code&gt;Date&lt;/code&gt; transformations and integrated them into the client.&lt;/p&gt;

&lt;p&gt;These are directional Zod transforms, not native bidirectional &lt;code&gt;z.codec&lt;/code&gt; objects.&lt;/p&gt;

&lt;p&gt;Less glue code. Happy cats. 🐈&lt;/p&gt;
&lt;h3&gt;
  
  
  Server-Sent Events
&lt;/h3&gt;

&lt;p&gt;Both Hey API and Kubb handled typed SSE in my tests.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Hey API&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;heyEvents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Kubb&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;kubbEvents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Different wrappers, same typed streaming goodness.&lt;/p&gt;


&lt;h2&gt;
  
  
  🧰 The ecosystem
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;openapi-typescript&lt;/th&gt;
&lt;th&gt;Hey API&lt;/th&gt;
&lt;th&gt;Orval&lt;/th&gt;
&lt;th&gt;Kubb&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fetch&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Axios&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React Query&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SWR&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Zod generation&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Faker / MSW&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native custom plugins&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are official integrations and companions, not necessarily built-in features. Other extension mechanisms exist.&lt;/p&gt;

&lt;p&gt;One correction from my previous comparison: Hey API also supports Faker, MSW, and SWR. I verified Faker/MSW behavior and SWR generation.&lt;/p&gt;

&lt;p&gt;The ecosystems are getting crowded. In a good way! 😸&lt;/p&gt;


&lt;h2&gt;
  
  
  🏗️ Kubb v5: More than an OpenAPI generator?
&lt;/h2&gt;

&lt;p&gt;This is where Kubb gets interesting.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OpenAPI
   ↓
Unified AST
   ↓
Plugins + Resolvers + Macros
   ↓
Generated code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Kubb v5 lets plugins share a normalized AST instead of independently parsing the specification.&lt;/p&gt;

&lt;p&gt;But what does that actually give us?&lt;/p&gt;
&lt;h3&gt;
  
  
  Resolvers
&lt;/h3&gt;

&lt;p&gt;Let's say my project requires an &lt;code&gt;Api&lt;/code&gt; prefix and &lt;code&gt;.model.ts&lt;/code&gt; filenames.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;pluginTs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;resolverTs&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@kubb/plugin-ts'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;pluginTs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;resolver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`Api${resolverTs.name(name)}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nf"&gt;baseName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;extname&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`${name}.model${extname}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The result?&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- GetUsersOptions&lt;/span&gt;
&lt;span class="gi"&gt;+ ApiGetUsersOptions&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Even better, the Fetch plugin automatically imports the renamed type from the renamed file.&lt;/p&gt;

&lt;p&gt;No regex magic. No broken imports. Strict TypeScript compilation passed.&lt;/p&gt;
&lt;h3&gt;
  
  
  Macros
&lt;/h3&gt;

&lt;p&gt;I also tested removing descriptions from TypeScript output while preserving them in Zod output.&lt;/p&gt;

&lt;p&gt;It worked. Each plugin can transform its own AST without affecting the others.&lt;/p&gt;
&lt;h3&gt;
  
  
  Kubb Kit and Registry
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://kubb.dev/docs/5.x/reference/kit" rel="noopener noreferrer"&gt;Kubb Kit&lt;/a&gt; lets developers build custom generators using the same infrastructure as official plugins.&lt;/p&gt;

&lt;p&gt;And the &lt;a href="https://kubb.dev/registry" rel="noopener noreferrer"&gt;Kubb Registry&lt;/a&gt; lets the community distribute extensions.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://kubb.dev/registry" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fkubb.dev%2F_og%2Fs%2Fo_5df8ae67953ba91c.png" height="420" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://kubb.dev/registry" rel="noopener noreferrer" class="c-link"&gt;
            Kubb registry · Kubb
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            The list of Kubb extensions that the Kubb CLI, Kubb Studio and kubb.dev read. It is a set of static JSON documents under one base URL.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fkubb.dev%2Flogo.svg" width="1024" height="1024"&gt;
          kubb.dev
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Hey API also supports custom plugins, so extensibility isn't unique to Kubb.&lt;/p&gt;

&lt;p&gt;But the combination of shared AST, resolvers, macros, and Kit makes Kubb particularly interesting for building a company-wide generation platform.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤖 AI can grow a forest overnight
&lt;/h2&gt;

&lt;p&gt;AI makes generating code faster. Keeping it consistent? Not so much.&lt;/p&gt;

&lt;p&gt;Imagine five AI agents building five features, each inventing different API wrappers and error handling.&lt;/p&gt;

&lt;p&gt;Congratulations! Five different forests. 🌳🌴🌲🎋🌵&lt;/p&gt;

&lt;p&gt;Why keep telling AI the same rules when we can encode them into a shared generator?&lt;/p&gt;

&lt;p&gt;Let AI help build the plugins. Let deterministic codegen enforce the conventions.&lt;/p&gt;

&lt;p&gt;One shared plugin can serve ten projects instead of ten AI agents reinventing the same thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maybe the best use of AI isn't generating more code. It's building better tools that generate code for us.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And that's exactly why Kubb's architecture caught my attention.&lt;/p&gt;




&lt;h2&gt;
  
  
  🌱 Maintaining the forest
&lt;/h2&gt;

&lt;p&gt;I also tested how generated code changes when the API evolves.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Changed files&lt;/th&gt;
&lt;th&gt;Added / removed lines&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;openapi-typescript&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;+2 / −2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hey API&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;+9 / −9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orval&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;+14 / −14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kubb&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;+59 / −59&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These results are from renaming one &lt;code&gt;operationId&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;All four generated identical output with unchanged input, and breaking schema changes were caught by application type checks.&lt;/p&gt;

&lt;p&gt;More files aren't necessarily worse. Just keep your forest under control! 🌳&lt;/p&gt;




&lt;h2&gt;
  
  
  🤝 Kubb Studio
&lt;/h2&gt;

&lt;p&gt;Kubb also introduced &lt;a href="https://kubb.studio" rel="noopener noreferrer"&gt;Kubb Studio&lt;/a&gt;, a separate collaboration service.&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://kubb.studio/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fkubb.studio%2F_og%2Fd%2Fc_KubbStudio%252Ctitle_Turn%252Byour%252BAPI%252Bspec%252Binto%252Btyped%252Bclients.%252Chighlight_Review%252Bevery%252Bchange.%252Cdescription_~VGhlIHdlYiBJREUgZm9yIEt1YmIuIEdlbmVyYXRlIG9uIHlvdXIgb3duIG1hY2hpbmVzLCByZXZpZXcgZXZlcnkgY2hhbmdlZCBmaWxlLCB0aGVuIHB1Ymxpc2ggc25hcHNob3RzIGZyb20gQ0ku%252Cs_R7WTYtLdA-nVJJgl.png" height="420" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://kubb.studio/" rel="noopener noreferrer" class="c-link"&gt;
            Kubb Studio · Generate typed clients from your API spec
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Generate TypeScript clients, TanStack Query hooks and Zod schemas from your API spec on your own machines. Review every change, then ship from CI. Start free.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fkubb.studio%2Ffavicon-32x32.png" width="32" height="32"&gt;
          kubb.studio
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It offers UI-based plugin configuration, generated-file comments, and npm snapshots through GitHub Actions.&lt;/p&gt;

&lt;p&gt;That could help frontend teams work against upcoming backend contracts before release.&lt;/p&gt;

&lt;p&gt;I haven't tested it hands-on yet, but it's an interesting direction!&lt;/p&gt;

&lt;h2&gt;
  
  
  📓 Side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;openapi-typescript&lt;/th&gt;
&lt;th&gt;Hey API&lt;/th&gt;
&lt;th&gt;Orval&lt;/th&gt;
&lt;th&gt;Kubb v5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Approach&lt;/td&gt;
&lt;td&gt;Types&lt;/td&gt;
&lt;td&gt;SDK&lt;/td&gt;
&lt;td&gt;Configurable generators&lt;/td&gt;
&lt;td&gt;Extensible generators&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Request style&lt;/td&gt;
&lt;td&gt;Typed URL&lt;/td&gt;
&lt;td&gt;Named options&lt;/td&gt;
&lt;td&gt;Configurable&lt;/td&gt;
&lt;td&gt;Named options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;Minimal&lt;/td&gt;
&lt;td&gt;Compact&lt;/td&gt;
&lt;td&gt;Configurable&lt;/td&gt;
&lt;td&gt;Distributed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Errors&lt;/td&gt;
&lt;td&gt;Result&lt;/td&gt;
&lt;td&gt;Result / Throw&lt;/td&gt;
&lt;td&gt;Status / Throw&lt;/td&gt;
&lt;td&gt;Result / Throw / Unwrap&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Generated&lt;/td&gt;
&lt;td&gt;Generated&lt;/td&gt;
&lt;td&gt;Generated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extensions&lt;/td&gt;
&lt;td&gt;Scripts / AST&lt;/td&gt;
&lt;td&gt;Plugins&lt;/td&gt;
&lt;td&gt;Transformers / hooks&lt;/td&gt;
&lt;td&gt;Kit / Resolvers / Macros&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  🚀 Back out of the forest
&lt;/h2&gt;

&lt;p&gt;Six months ago, I chose Hey API. And I'm keeping it.&lt;/p&gt;

&lt;p&gt;But Kubb v5 surprised me.&lt;/p&gt;

&lt;p&gt;It's faster, its clients have improved, and its architecture offers something beyond a ready-made SDK.&lt;/p&gt;

&lt;p&gt;In the AI era, I think shared development foundations matter more than ever.&lt;/p&gt;

&lt;p&gt;For my next large frontend project, I'd love to give Kubb a try.&lt;/p&gt;

&lt;p&gt;Six months ago, I wanted a smaller forest.&lt;/p&gt;

&lt;p&gt;Now, I want to design how it grows.&lt;/p&gt;

&lt;p&gt;Before AI plants another million trees. 🌳🤖&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🙌💚&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>frontend</category>
      <category>backend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Trapped Inside the Frozen Cave for 5 Days! ❄️ | Python Lists Adventure</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Wed, 25 Nov 2026 15:51:08 +0000</pubDate>
      <link>https://dev.to/necoz/trapped-inside-the-frozen-cave-for-5-days-python-lists-adventure-2d65</link>
      <guid>https://dev.to/necoz/trapped-inside-the-frozen-cave-for-5-days-python-lists-adventure-2d65</guid>
      <description>&lt;p&gt;It was a beautiful winter morning on Necoz Planet.&lt;/p&gt;

&lt;p&gt;Snow was falling everywhere.&lt;/p&gt;

&lt;p&gt;Tom, Milo, Luna, and Max decided to go on a mountain adventure.&lt;/p&gt;

&lt;p&gt;Tom was carrying a backpack.&lt;/p&gt;

&lt;p&gt;Milo was carrying 17 sandwiches.&lt;/p&gt;

&lt;p&gt;Max was carrying... absolutely nothing.&lt;/p&gt;

&lt;p&gt;Luna asked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Max, where are your supplies?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I have confidence!&lt;/strong&gt; 😎&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great. We'll eat your confidence when we're hungry.&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;Everyone laughed.&lt;/p&gt;

&lt;p&gt;But they had NO IDEA what was waiting for them...&lt;/p&gt;

&lt;h2&gt;
  
  
  ❄️ The Mysterious Cave
&lt;/h2&gt;

&lt;p&gt;After walking for three hours, they discovered a HUGE cave hidden behind a frozen waterfall.&lt;/p&gt;

&lt;p&gt;There was a strange message carved into the entrance:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ENTER IF YOU DARE. THE MOUNTAIN NEVER FORGETS.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo looked at the entrance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sounds friendly enough!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's literally the opposite of friendly.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But curiosity won.&lt;/p&gt;

&lt;p&gt;One by one, they entered the cave.&lt;/p&gt;

&lt;p&gt;Inside, everything was beautiful.&lt;/p&gt;

&lt;p&gt;Glowing blue crystals covered the walls.&lt;/p&gt;

&lt;p&gt;Tiny underground waterfalls sparkled.&lt;/p&gt;

&lt;p&gt;And strange little lights floated in the air.&lt;/p&gt;

&lt;p&gt;Max shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THIS IS AMAZING!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KRRRRRRRRRRRRRRRR!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A massive earthquake shook the mountain!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The entrance collapsed!&lt;/p&gt;

&lt;p&gt;A giant rock blocked the exit.&lt;/p&gt;

&lt;p&gt;Silence.&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Umm... guys?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We're trapped.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Okay. But... who has the sandwiches?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;😭😭😭&lt;/p&gt;

&lt;h2&gt;
  
  
  🧺 Day 1: Creating a Survival Inventory
&lt;/h2&gt;

&lt;p&gt;The cats realized they needed to survive until they found another exit.&lt;/p&gt;

&lt;p&gt;First, they collected everything they had.&lt;/p&gt;

&lt;p&gt;Tom opened his backpack.&lt;/p&gt;

&lt;p&gt;Inside were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;4 sandwiches&lt;/li&gt;
&lt;li&gt;2 water bottles&lt;/li&gt;
&lt;li&gt;1 flashlight&lt;/li&gt;
&lt;li&gt;3 chocolate bars&lt;/li&gt;
&lt;li&gt;1 blanket&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Luna said:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We need to organize everything!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom opened his Python laptop (yes, somehow he brought a laptop into a cave 😂).&lt;/p&gt;

&lt;p&gt;He created a Python List.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;supplies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Water"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Flashlight"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Chocolate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Blanket"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;supplies&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Sandwich', 'Water', 'Flashlight', 'Chocolate', 'Blanket']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See? Everything is organized!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can you add pizza?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NO. We are in a cave, not a restaurant.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;😂&lt;/p&gt;

&lt;h2&gt;
  
  
  🍫 Day 2: The Great Food Disaster
&lt;/h2&gt;

&lt;p&gt;The next morning, Milo woke up hungry.&lt;/p&gt;

&lt;p&gt;He looked at the supplies.&lt;/p&gt;

&lt;p&gt;There were only 4 sandwiches left.&lt;/p&gt;

&lt;p&gt;But something terrible had happened...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MILO HAD EATEN TWO SANDWICHES DURING THE NIGHT!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MILOOOOOO!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I was sleepwalking!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;While holding a sandwich?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Very talented sleepwalking.&lt;/strong&gt; 😭&lt;/p&gt;

&lt;p&gt;They updated their food list.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;food&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Chocolate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Water"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;food&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;food&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Sandwich', 'Chocolate', 'Water']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One sandwich is gone!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technically, it's inside me now.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🤣&lt;/p&gt;

&lt;p&gt;They decided to divide the remaining food equally and save some for tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  🦇 Day 3: Something Was Moving in the Darkness!
&lt;/h2&gt;

&lt;p&gt;That night, while everyone was sleeping...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TAP... TAP... TAP...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna opened her eyes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Guys?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nobody answered.&lt;/p&gt;

&lt;p&gt;Then...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SCRAAAAATCH!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Something was moving behind the rocks!&lt;/p&gt;

&lt;p&gt;Max grabbed the flashlight.&lt;/p&gt;

&lt;p&gt;Tom grabbed the blanket.&lt;/p&gt;

&lt;p&gt;Milo grabbed the last chocolate bar.&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHY ARE YOU GRABBING CHOCOLATE?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EMOTIONAL SUPPORT!&lt;/strong&gt; 😭&lt;/p&gt;

&lt;p&gt;They slowly walked toward the sound.&lt;/p&gt;

&lt;p&gt;And suddenly...&lt;/p&gt;

&lt;p&gt;A tiny creature jumped out!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A BABY CAVE BAT!&lt;/strong&gt; 🦇&lt;/p&gt;

&lt;p&gt;It was scared and hungry.&lt;/p&gt;

&lt;p&gt;Luna smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awww! It's just a little baby!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They gave it a tiny piece of fruit.&lt;/p&gt;

&lt;p&gt;The bat became their new friend.&lt;/p&gt;

&lt;p&gt;They named it &lt;strong&gt;BUBBLES&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Bubbles started flying around the cave.&lt;/p&gt;

&lt;p&gt;And guess what?&lt;/p&gt;

&lt;p&gt;It knew the entire cave system!&lt;/p&gt;

&lt;h2&gt;
  
  
  🌊 Day 4: The Underground River
&lt;/h2&gt;

&lt;p&gt;Bubbles led them to a secret underground river.&lt;/p&gt;

&lt;p&gt;There was fresh water!&lt;/p&gt;

&lt;p&gt;Everyone celebrated.&lt;/p&gt;

&lt;p&gt;But there was one problem.&lt;/p&gt;

&lt;p&gt;The river was too wide to cross.&lt;/p&gt;

&lt;p&gt;Max found some wooden pieces nearby.&lt;/p&gt;

&lt;p&gt;Tom suggested creating a small raft.&lt;/p&gt;

&lt;p&gt;They collected the materials into another list.&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;materials&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Rope"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;materials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Big Stick"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;materials&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Wood', 'Rope', 'Wood', 'Wood', 'Big Stick']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They built a tiny raft.&lt;/p&gt;

&lt;p&gt;Max stepped onto it.&lt;/p&gt;

&lt;p&gt;The raft immediately tilted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SPLAAAAASH!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max fell into the freezing water!&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONGRATULATIONS! YOU HAVE DISCOVERED SWIMMING!&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;Fortunately, everyone was safe.&lt;/p&gt;

&lt;p&gt;They crossed the river together.&lt;/p&gt;

&lt;p&gt;And on the other side...&lt;/p&gt;

&lt;p&gt;They discovered something unbelievable.&lt;/p&gt;

&lt;p&gt;A small tunnel with fresh air coming from inside!&lt;/p&gt;

&lt;h2&gt;
  
  
  😱 Day 5: The Biggest Surprise!
&lt;/h2&gt;

&lt;p&gt;The cats followed the tunnel.&lt;/p&gt;

&lt;p&gt;It became narrower and darker.&lt;/p&gt;

&lt;p&gt;Then Bubbles suddenly stopped.&lt;/p&gt;

&lt;p&gt;It flew toward a tiny hole in the wall.&lt;/p&gt;

&lt;p&gt;Luna noticed something strange.&lt;/p&gt;

&lt;p&gt;There was sunlight coming through!&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WAIT... IS THAT DAYLIGHT?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They started removing small rocks.&lt;/p&gt;

&lt;p&gt;One by one.&lt;/p&gt;

&lt;p&gt;Rock after rock.&lt;/p&gt;

&lt;p&gt;Until...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOOOOOM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The final rock fell!&lt;/p&gt;

&lt;p&gt;A beautiful snowy valley appeared in front of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THEY WERE OUT!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All four cats jumped with happiness.&lt;/p&gt;

&lt;p&gt;Milo shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FREEDOMMMMM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FOODMMMM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THAT IS NOT A WORD!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🤣&lt;/p&gt;

&lt;h2&gt;
  
  
  🎁 The Unexpected Ending
&lt;/h2&gt;

&lt;p&gt;Just when they thought their adventure was over...&lt;/p&gt;

&lt;p&gt;A mysterious old cat appeared outside the cave.&lt;/p&gt;

&lt;p&gt;He looked at them and laughed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Well, well, well... You finally escaped!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna asked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who are you?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The old cat smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I am the guardian of this mountain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YOU KNEW WE WERE INSIDE?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian nodded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Of course. I built that cave!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Everyone stared at him.&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SO YOU COULD HAVE HELPED US?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian laughed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That cave was a survival test. I wanted to see if you could work together!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WE ALMOST BECAME FROZEN CAT BURGERS!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian opened a giant wooden box.&lt;/p&gt;

&lt;p&gt;Inside were...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;100 PIZZAS, 50 BURGERS, AND A MOUNTAIN OF CHOCOLATE!!!&lt;/strong&gt; 🍕🍔🍫&lt;/p&gt;

&lt;p&gt;Milo started crying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THIS... THIS IS THE BEST DAY OF MY LIFE!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But there was one final surprise.&lt;/p&gt;

&lt;p&gt;The guardian handed Tom a golden key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Congratulations! You have earned access to the legendary Necoz Treasure Room.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom looked at the key.&lt;/p&gt;

&lt;p&gt;Then looked at his friends.&lt;/p&gt;

&lt;p&gt;Then looked at the food.&lt;/p&gt;

&lt;p&gt;He smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can we eat first?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EVERYONE:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YEEEEEEEEES!!!&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;And that's how four little cats survived five days inside a mysterious cave...&lt;/p&gt;

&lt;p&gt;With teamwork, courage, a little Python, and WAY TOO MUCH chocolate!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THE END.&lt;/strong&gt; 💚&lt;/p&gt;




</description>
      <category>python</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Lazy Senior Dev Mode Made My App Smaller. Was It Better?</title>
      <dc:creator>Earl Grey</dc:creator>
      <pubDate>Wed, 25 Nov 2026 04:03:43 +0000</pubDate>
      <link>https://dev.to/necoz/lazy-senior-dev-mode-made-my-app-smaller-was-it-better-90i</link>
      <guid>https://dev.to/necoz/lazy-senior-dev-mode-made-my-app-smaller-was-it-better-90i</guid>
      <description>&lt;p&gt;&lt;em&gt;Raise your hand if you've been curious about &lt;a href="https://github.com/DietrichGebert/ponytail" rel="noopener noreferrer"&gt;Ponytail&lt;/a&gt;. 🙋 Same spec, same model, same prompt. One build with the rules off, one with them on.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; I'd been using Ponytail's principles in my builds and got curious what they really change. So I rebuilt one of my summer apps twice with Claude Code, once with the Ponytail ruleset off and once with it on, and compared both against my original. Ponytail's build came out smaller, a little cheaper, and the only one with no must-fix bugs, though how much smaller depends on how you measure. Whether that made it the better app is a different question.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I had three copies of the same app open in three tabs, and I liked the biggest one best.&lt;/p&gt;

&lt;p&gt;All three did the same thing. The app is called Spell It: you type a word, and it builds that word out of periodic table symbols. Type banana and you get &lt;code&gt;Ba · Na · Na&lt;/code&gt;, which is barium, sodium, sodium. A fruit, spelled entirely in chemistry. The fun part is typing your own name to see if you're made of elements too. One was the version I shipped last summer. The other two were built that morning by &lt;a href="https://code.claude.com/docs/en/overview" rel="noopener noreferrer"&gt;Claude Code&lt;/a&gt;, Anthropic's coding agent, from the same spec. One of those had a ruleset called Ponytail switched on. The other didn't.&lt;/p&gt;

&lt;p&gt;The Ponytail build was the smallest. It passed every check. When an auditor went through all three, it was the only one with no must-fix problems. And it was the one I'd least want to show someone.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/earlgreyhot1701D" rel="noopener noreferrer"&gt;
        earlgreyhot1701D
      &lt;/a&gt; / &lt;a href="https://github.com/earlgreyhot1701D/ponytail-spell-it" rel="noopener noreferrer"&gt;
        ponytail-spell-it
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Same PRD, built with and without the Ponytail ruleset, compared against my original
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Ponytail x Spell It&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Same PRD. Same model. Same prompt. One build with the &lt;a href="https://github.com/DietrichGebert/ponytail" rel="noopener noreferrer"&gt;Ponytail&lt;/a&gt; ruleset off, one with it on, both compared against the version I made last summer.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Short version: Ponytail made the app smaller (half the lines, about a quarter less by file size), a little cheaper and faster, with no must-fix bugs. It also took out the parts I liked.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Read the full write-up on &lt;a href="https://dev.to/necoz/lazy-senior-dev-mode-made-my-app-smaller-was-it-better-90i" rel="nofollow"&gt;dev.to&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The experiment is frozen as it ran on Nov 21, 2026 (tag &lt;code&gt;experiment-2026-11-21&lt;/code&gt;). Anything added later is listed in &lt;a href="https://github.com/earlgreyhot1701D/ponytail-spell-it/ADDENDUM.md" rel="noopener noreferrer"&gt;ADDENDUM.md&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/earlgreyhot1701D/ponytail-spell-it/assets/article/cover.webp"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fearlgreyhot1701D%2Fponytail-spell-it%2FHEAD%2Fassets%2Farticle%2Fcover.webp" alt="Ponytail x Spell It case study card. Same PRD, same model, same prompt. Half the lines, same app, better questions. Line counts: original 989, Ponytail off 416, Ponytail full 206, which is about 79% fewer lines than the original and about 50% fewer than Ponytail off. A tile row spells banana as Ba, Na, Na."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;The problem&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;AI coding agents tend to build more than you asked for. Extra abstractions, extra files, a library where the browser already has the feature. The code works, but it's bigger than it needs to be, and bigger code is harder to read, review, and trust.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/DietrichGebert/ponytail" rel="noopener noreferrer"&gt;Ponytail&lt;/a&gt; is an open source ruleset that tries to fix…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/earlgreyhot1701D/ponytail-spell-it" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Lazy, on purpose
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/DietrichGebert/ponytail" rel="noopener noreferrer"&gt;Ponytail&lt;/a&gt; is an open source ruleset by Dietrich Gebert that you install into a coding agent. Its pitch is that AI agents over-build: extra files, extra abstractions, a library where the browser already has the feature. Ponytail tells the agent to act like the laziest senior dev in the room and climb a ladder before writing anything. Does this need to exist? Is it already in the codebase? Does the standard library handle it? Does the browser? Can it be one line? Only then, the minimum code that works, plus one small test if the logic is tricky.&lt;/p&gt;

&lt;p&gt;The repo's own benchmark reports about 53% less code, 41% less time, and 26% lower cost than the same agent without it.&lt;/p&gt;

&lt;p&gt;I wasn't new to it. I'd been using Ponytail's principles in my own builds, not the plugin. In &lt;a href="https://dev.to/earlgreyhot1701d/dead-keys-i-brought-back-the-typing-games-kiro-did-the-heavy-lifting-5gc2"&gt;Dead Keys&lt;/a&gt;, my typing game for the Kiroween hackathon, Ponytail's rules file rode along unchanged as a steering file for &lt;a href="https://kiro.dev" rel="noopener noreferrer"&gt;Kiro&lt;/a&gt;, AWS's AI coding tool. A steering file is a set of instructions the agent reads on every task. What I'd never done was check what those rules changed. Every app I'd built with them, I'd only ever seen one way. So this one was just to see: same app, rules off, rules on, side by side.&lt;/p&gt;

&lt;h2&gt;
  
  
  One spec, three builds
&lt;/h2&gt;

&lt;p&gt;I picked Spell It, one of the small apps I built every day in July for Netlify's &lt;a href="https://github.com/earlgreyhot1701D/hot-ar-summer-2026" rel="noopener noreferrer"&gt;Hot AR Summer 2026&lt;/a&gt;. It's tiny, but it has real logic: finding the spelling that fits the most letters is a little search problem, so Ponytail's "add a test" rule had something to bite on. It also has plenty of room to over-build, and it already had a finished design to compare against.&lt;/p&gt;

&lt;p&gt;Claude (&lt;a href="https://platform.claude.com/docs/en/models/overview" rel="noopener noreferrer"&gt;Opus 5.5&lt;/a&gt;, in chat) read my original and wrote a PRD from it: a one-page spec of what the app must do. Every feature got a label. MUST means build it. STUB means leave a comment for later, don't build it. NEVER means no storage, no network calls, no AI calls. The PRD also had nine acceptance checks, tests the finished app had to pass, plus the original's colors and fonts, and nothing about how to write the code.&lt;/p&gt;

&lt;p&gt;Then the setup, kept as boring as possible:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Built&lt;/td&gt;
&lt;td&gt;Last summer&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;Opus 5.5&lt;/td&gt;
&lt;td&gt;Opus 5.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ponytail&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;td&gt;Full&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Got&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;The PRD and one prompt&lt;/td&gt;
&lt;td&gt;The PRD and one prompt&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each build ran in a fresh session, in an empty folder holding only the PRD, with no personal rules files. Ponytail was installed for both. For A, I switched it off with its own off command before sending anything. Both got the exact same prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Build the app described in PRD.md. Put it in one index.html in this folder. When you're done, tell me how to check it against the acceptance checks.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My job was to stay out of the way. I'd planned one-line follow-ups for any failed check. Neither build needed one.&lt;/p&gt;

&lt;p&gt;Here's the same demo on all three: type banana, click periodic, type jazz.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Original&lt;/strong&gt; (my summer 2026 version)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F20kutlj6sw81wpucg76t.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F20kutlj6sw81wpucg76t.gif" alt="Spell It, my summer 2026 version: a dark brass instrument panel with a big gold SPELL IT title. Typing banana shows three element tiles, Ba, Na, Na, and the verdict Fully spellable. Clicking periodic shows seven tiles with D marked No element. Typing jazz shows four letters that could not be placed." width="800" height="720"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build A&lt;/strong&gt; (Claude Code, Ponytail off)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgp8rq3n0mf1q5u65ltei.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgp8rq3n0mf1q5u65ltei.gif" alt="Build A, Claude Code with Ponytail off: the same demo in a simpler brass panel. Banana spells Ba, Na, Na. Periodic shows one letter that could not be placed. Jazz shows four." width="800" height="720"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build B&lt;/strong&gt; (Claude Code, Ponytail full)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft59tm18jlw9axcjwla4g.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft59tm18jlw9axcjwla4g.gif" alt="Build B, Claude Code with Ponytail full: the same demo with the plainest layout of the three, a left-aligned title and flat panels. Results match the other two builds for banana, periodic and jazz." width="800" height="720"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Half the lines. Not half the code.
&lt;/h2&gt;

&lt;p&gt;Here's what came back. JavaScript is the logic. CSS is the look.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;A: off&lt;/th&gt;
&lt;th&gt;B: full&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;JavaScript lines&lt;/td&gt;
&lt;td&gt;319&lt;/td&gt;
&lt;td&gt;151&lt;/td&gt;
&lt;td&gt;109&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CSS lines&lt;/td&gt;
&lt;td&gt;595&lt;/td&gt;
&lt;td&gt;227&lt;/td&gt;
&lt;td&gt;61&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total lines&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;989&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;416&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;206&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;File size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;28.9 KB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14.1 KB&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10.8 KB&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acceptance checks&lt;/td&gt;
&lt;td&gt;9 of 9&lt;/td&gt;
&lt;td&gt;8 of 9&lt;/td&gt;
&lt;td&gt;9 of 9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build cost&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;$0.85&lt;/td&gt;
&lt;td&gt;$0.73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build time&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;1m 49s&lt;/td&gt;
&lt;td&gt;1m 29s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;By lines, B is half the size of A. By file size, it's about a quarter smaller. The gap is real, but part of it is formatting: B packs more onto each line. All 118 elements fit on about 12 lines in B. My original spreads them over 40.&lt;/p&gt;

&lt;p&gt;Ponytail also saved a little time and money, but not much:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A: off&lt;/th&gt;
&lt;th&gt;B: full&lt;/th&gt;
&lt;th&gt;Saved&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Build time&lt;/td&gt;
&lt;td&gt;1m 49s&lt;/td&gt;
&lt;td&gt;1m 29s&lt;/td&gt;
&lt;td&gt;20 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build cost&lt;/td&gt;
&lt;td&gt;$0.85&lt;/td&gt;
&lt;td&gt;$0.73&lt;/td&gt;
&lt;td&gt;12 cents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Why so little? I picked a tiny app on purpose, so the builds were small to begin with, and there wasn't much to save. Every session also costs something just to get started. In one of my audit sessions, turning Ponytail on cost $0.30 before it did any work at all. On a bigger app, the savings would have more room to show up.&lt;/p&gt;

&lt;p&gt;Both builds also wrote self-checks, small tests that run the acceptance table every time the page loads. Counting &lt;code&gt;console.assert&lt;/code&gt; lines, A has 7 and B has 8. My original has none.&lt;/p&gt;

&lt;p&gt;The number that surprised me was A. Plain Claude Code, no Ponytail, came in under half the size of my original. The PRD did a lot of that work before Ponytail ever showed up. When every feature is labeled MUST, STUB or NEVER, there isn't much left to over-build.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cut came from the look
&lt;/h2&gt;

&lt;p&gt;Look at the CSS row again. B has about a tenth of my original's styling by lines, and about a quarter by file size. Either way, most of it is gone.&lt;/p&gt;

&lt;p&gt;That's where the background texture went, and the brass frame with the little screws in the corners, and the big title. Ponytail treats those as things nobody asked for.&lt;/p&gt;

&lt;p&gt;And here's the part that's on me: nobody did ask. My PRD listed the colors, the fonts and a thin brass frame. It never mentioned the texture or the screws. Ponytail builds what the spec says, so design that isn't written down disappears. For a utility, that's fair. For a toy, the pizzazz is the point, and next time it goes in the spec.&lt;/p&gt;

&lt;p&gt;I gave each build a gut score, one to five, for "would I ship it as is":&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;A: off&lt;/th&gt;
&lt;th&gt;B: full&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A and B are one-shots. They'd get there with a few UI tweaks. They just didn't start there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug went to the build without Ponytail
&lt;/h2&gt;

&lt;p&gt;The one acceptance check that failed was mine to design and A's to miss: paste in a very long word and the page shouldn't freeze. I tested with 10,200 letters.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Time per keystroke&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Original&lt;/td&gt;
&lt;td&gt;0.03 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A: off&lt;/td&gt;
&lt;td&gt;1.1 to 1.8 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B: full&lt;/td&gt;
&lt;td&gt;about 0.3 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I hadn't set a number for "freeze" before testing. Afterward, I drew the line at one second per keystroke. The gap was wide enough that any line between half a second and a second gives the same answer.&lt;/p&gt;

&lt;p&gt;A froze. When it finished building, A had told me a 10,200-letter word "shows results right away." Later, A's own review admitted it had only checked that the word worked, not how fast, and called its earlier claim wrong.&lt;/p&gt;

&lt;p&gt;The fix the review suggested was one attribute: cap how many letters the input box takes. My original has done that since July, with an 80-letter limit. Summer me had already solved a bug that a brand-new build shipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fewer lines isn't the score
&lt;/h2&gt;

&lt;p&gt;If you've been building for a while, you might be squinting at that first table. Fewer lines isn't the same as better software. I agree, and this test shows it. Even the line count was misleading.&lt;/p&gt;

&lt;p&gt;My original is the longest of the three, and it's the one I'd ship. Most of its extra lines are the background, the frame, and the big title, the parts a person notices. Build B is the smallest, and some of its lines are self-tests my original never had. The one real bug had nothing to do with size; the fix is a single attribute.&lt;/p&gt;

&lt;p&gt;I think line count measures what you have to read and maintain. It doesn't measure whether the software is right, fast, accessible, or fun. Ponytail is good at cutting that first cost. The rest is still on me.&lt;/p&gt;

&lt;h2&gt;
  
  
  The judge needed checking too
&lt;/h2&gt;

&lt;p&gt;Ponytail ships with an audit command that reviews a whole project and ranks what to fix. I ran it on all three.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Original&lt;/th&gt;
&lt;th&gt;A: off&lt;/th&gt;
&lt;th&gt;B: full&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Must-fix&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Should-fix&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nice to have&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It found real things. My original still had a placeholder where the social share image should be. All three builds made screen readers read the whole result aloud on every keystroke, which is a gap in my PRD, not in any builder.&lt;/p&gt;

&lt;p&gt;It also made things up. It called my sign-off line, "Powered by NLP," a false claim about the code. It described Spell It as a college-affiliated project, which it isn't. And it suggested a test where banana spells as &lt;code&gt;B · A · Na · Na&lt;/code&gt;. A isn't an element. That test would fail.&lt;/p&gt;

&lt;p&gt;So the audit earned its place, with the same rule I use for everything else: check it against the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who did what
&lt;/h2&gt;

&lt;p&gt;This was a three-way build, like most of mine.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code (Opus 5.5)&lt;/strong&gt; built A and B from the PRD, in two separate sessions on my computer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude (Opus 5.5, in chat)&lt;/strong&gt; wrote the PRD from my original, ran every acceptance check in an automated browser, timed the long-word freeze, made the GIFs, and caught that it had under-tested the long word the first time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ponytail&lt;/strong&gt; ran the reviews and audits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I&lt;/strong&gt; picked the app, set the rules for a fair test, stayed off the keyboard during the builds, checked the auditor's claims, and scored what I'd ship.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it can't tell you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One small app, one run per build. It's a case study, not a benchmark, and AI builds vary from run to run.&lt;/li&gt;
&lt;li&gt;Ponytail was installed but switched off for A, not uninstalled.&lt;/li&gt;
&lt;li&gt;The PRD was written from my original, so the original had a head start on matching it.&lt;/li&gt;
&lt;li&gt;A and B were audited in the same session that built them. The original got a fresh session.&lt;/li&gt;
&lt;li&gt;Nobody tested it with a real screen reader or on a real phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Everything is in the repo: the PRD, all three builds, the full scorecard, and the raw audit output. Every build is one HTML file. Download it, double-click it, and type your name.&lt;/p&gt;

&lt;p&gt;The repo is frozen as the experiment ran, under a tag. Anything I added later, including scripts that rerun the size, check, and timing numbers in this post, and the screenshots behind the costs, is listed in its addendum.&lt;/p&gt;

&lt;p&gt;If you want to repeat the test, the README has the steps. It cost me $2.95 across all three sessions, audits included.&lt;/p&gt;

&lt;p&gt;I came in expecting a number. I left with a question I'd like other builders' takes on: when an agent makes your code smaller, how do you tell whether it cut fat or cut flavor?&lt;/p&gt;

&lt;p&gt;Mostly by playing with it.&lt;/p&gt;




&lt;p&gt;This is my first post as a member of &lt;a href="https://dev.to/necoz"&gt;Necoz&lt;/a&gt;, a community that builds small, simple, useful tools. Fitting, for a post about small, simple code. Thanks for having me. 🐱&lt;/p&gt;

&lt;p&gt;Quick context if you are new here. I work in the California courts, running court operations for the county. I started building with AI in July 2025 and I have been learning in public ever since. I do not write the code. I direct, the agents generate, I validate and decide. I build the &lt;a href="https://clewlabs.org" rel="noopener noreferrer"&gt;Clew Suite&lt;/a&gt;, a set of civic tech tools for making complex systems easier to inspect. That is the lens I am writing from.&lt;/p&gt;

&lt;p&gt;Built and tested with AI assistance in November 2026. Ponytail's benchmark numbers come from its &lt;a href="https://github.com/DietrichGebert/ponytail" rel="noopener noreferrer"&gt;README&lt;/a&gt;. These tools move fast, so check the source before you quote me.&lt;/p&gt;

&lt;p&gt;AI Assisted. Human Approved. Powered by NLP.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>claude</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Why Your AI Release Notes Hallucinate: The "Why vs What" Problem in Git History</title>
      <dc:creator>𝗝𝗼𝗵𝗻</dc:creator>
      <pubDate>Tue, 24 Nov 2026 16:30:00 +0000</pubDate>
      <link>https://dev.to/necoz/why-your-ai-release-notes-hallucinate-the-why-vs-what-problem-in-git-history-5ch0</link>
      <guid>https://dev.to/necoz/why-your-ai-release-notes-hallucinate-the-why-vs-what-problem-in-git-history-5ch0</guid>
      <description>&lt;p&gt;I once deployed an automated release pipeline that piped raw &lt;code&gt;git diff&lt;/code&gt; outputs straight into an LLM prompt. Two hours later, our generated release notes claimed that version &lt;code&gt;1.4.0&lt;/code&gt; "optimized JSON payload serialization for low-latency clients."&lt;/p&gt;

&lt;p&gt;In reality, the underlying commit was an emergency patch for a memory leak that crashed Kubernetes pods under peak traffic. The code diff happened to delete several buffer allocations, and the model fabricated an appealing performance feature out of thin air.&lt;/p&gt;

&lt;p&gt;That incident exposed a fundamental blind spot in how engineering teams automate changelogs with AI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1526374965328-7f61d4dc18c5%3Fauto%3Dformat%26fit%3Dcrop%26w%3D1200%26q%3D80" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1526374965328-7f61d4dc18c5%3Fauto%3Dformat%26fit%3Dcrop%26w%3D1200%26q%3D80" alt="Command line terminal displaying code logs" width="1200" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Commits Record the "What", Not the "Why"
&lt;/h2&gt;

&lt;p&gt;When we ask an LLM to read a git commit or unified diff, we are asking it to divine human intent from syntax changes. &lt;/p&gt;

&lt;p&gt;A diff tells you that &lt;code&gt;timeoutMs&lt;/code&gt; changed from &lt;code&gt;5000&lt;/code&gt; to &lt;code&gt;15000&lt;/code&gt;. It does not tell you that downstream payment gateways began dropping socket handshakes during cloud provider migrations. Without grounding context, the model resolves the ambiguity by inventing the most statistically plausible narrative: "improved network stability."&lt;/p&gt;

&lt;p&gt;This becomes dangerous when breaking changes are involved. According to the &lt;a href="https://www.conventionalcommits.org/en/v1.0.0/" rel="noopener noreferrer"&gt;Conventional Commits v1.0.0 specification&lt;/a&gt;, breaking changes can reside inside commit message footers or body paragraphs. A naive diff parser summarizes the altered function signature, while completely erasing the migration path requested by the engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Agent PR Trap: Slick but Unsupported Rationales
&lt;/h2&gt;

&lt;p&gt;The problem deepens as more code is authored by autonomous AI coding agents. Agent-generated pull requests often arrive with beautifully formatted markdown descriptions. When I analyzed hundreds of these descriptions, I identified three recurring archetypes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Grounded intent:&lt;/strong&gt; Accurately relays verifiable user and business motivations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unsupported-plausible:&lt;/strong&gt; A polished, convincing explanation that sounds authoritative but has zero backing in the actual issue or user bug report.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementation-only:&lt;/strong&gt; A dry walkthrough of AST changes without explaining user impact.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Standard summarization prompts routinely latch onto the &lt;strong&gt;unsupported-plausible&lt;/strong&gt; archetype. The resulting changelog looks convincing to release managers, but distributes false technical claims to your users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mining Ground Truth from Linked Issues
&lt;/h2&gt;

&lt;p&gt;To stop LLMs from hallucinating reasons, I re-engineered the extraction pipeline in &lt;a href="https://www.npmjs.com/package/@nyaomaru/changelog-bot" rel="noopener noreferrer"&gt;@necoz-oss/changelog-bot&lt;/a&gt; (hosted on &lt;a href="https://github.com/necoz-oss/changelog-bot" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;). &lt;/p&gt;

&lt;p&gt;Instead of relying solely on PR descriptions or diffs, the engine tracks back to where the problem was originally defined: the linked GitHub issue. Under the &lt;a href="https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue" rel="noopener noreferrer"&gt;GitHub Issue Linking specification&lt;/a&gt;, closing keywords establish verifiable causal links.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Match GitHub closing keywords preceding an issue reference or URL.&lt;/span&gt;
&lt;span class="c1"&gt;// See: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CLOSING_KEYWORD_PATTERN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;\&lt;span class="nf"&gt;b&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;?|&lt;/span&gt;&lt;span class="nf"&gt;fix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?|&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;：&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;\&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;\&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="p"&gt;]&lt;/span&gt;\&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;markdownUrl&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;issueUrl&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;issues&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;urlIssueNumber&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;repoPrefix&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;#&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;issueNumber&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gi&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resolveLinkedIssueNumbers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;prBody&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prBody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matchAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CLOSING_KEYWORD_PATTERN&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;issueNumbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;matches&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;issueNumber&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;urlIssueNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;issueNumbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Mining issue context introduces network risk. To protect CI runners against &lt;a href="https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api" rel="noopener noreferrer"&gt;GitHub API rate limits&lt;/a&gt;, I bounded issue resolution concurrency and implemented strict sanitization. Noisy stack traces and debug dumps are stripped before candidate snippets reach the evaluation step, falling back gracefully to heuristic summaries if the API degrades.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1555066931-4365d14bab8c%3Fauto%3Dformat%26fit%3Dcrop%26w%3D1200%26q%3D80" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimages.unsplash.com%2Fphoto-1555066931-4365d14bab8c%3Fauto%3Dformat%26fit%3Dcrop%26w%3D1200%26q%3D80" alt="Modern software development code editor interface" width="1200" height="800"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Naive Diff Summarizers vs. Grounded Release Pipelines
&lt;/h2&gt;

&lt;p&gt;The differences between an ad-hoc AI prompt and a ground-truth pipeline determine whether your changelog can be trusted in production.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Architectural Dimension&lt;/th&gt;
&lt;th&gt;Naive Git Diff + LLM Prompt&lt;/th&gt;
&lt;th&gt;Grounded Pipeline (ChangelogBot Approach)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Primary Context Source&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Raw lines added and deleted&lt;/td&gt;
&lt;td&gt;Linked issue bodies and closing keywords&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Noise Filtering&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ingests raw stack traces and AST churn&lt;/td&gt;
&lt;td&gt;Sanitizes logs; bounds concurrent API requests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hallucination Defense&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None (pure probability generation)&lt;/td&gt;
&lt;td&gt;Counterfactual calibration and archetype scoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Delivery Decoupling&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Hardcoded to create PRs or write files&lt;/td&gt;
&lt;td&gt;Unix-compliant output (&lt;code&gt;stdout&lt;/code&gt;, &lt;code&gt;file&lt;/code&gt;, &lt;code&gt;pull-request&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;API Failure Fallback&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Hard CI build failure&lt;/td&gt;
&lt;td&gt;Graceful degradation to deterministic heuristics&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Benchmarking with Counterfactual Evaluation
&lt;/h2&gt;

&lt;p&gt;How do you verify whether an extractor captures genuine rationale rather than plausible fluff? You cannot rely on human intuition when reviewing hundreds of releases.&lt;/p&gt;

&lt;p&gt;I built a counterfactual test corpus containing matched case families. For each pull request, the benchmark provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A verified rationale grounded in real user reports.&lt;/li&gt;
&lt;li&gt;Counterfactual decoy rationales (plausible statements that describe unrelated features or false root causes).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By tracking the False Positive Rate (FPR) when the extractor is presented with decoy options, I could mathematically penalize models that pick convincing-sounding lies. If an extraction engine cannot consistently reject a counterfactual candidate, it has no place in an automated production release pipeline.&lt;/p&gt;
&lt;h2&gt;
  
  
  Decoupling Delivery for Safe CI Workflows
&lt;/h2&gt;

&lt;p&gt;The final anti-pattern I eliminated was coupling changelog generation to write-heavy side effects. &lt;/p&gt;

&lt;p&gt;Traditional tools halt your CI pipeline if you do not grant them a write-scoped GitHub personal access token to open a pull request. I restructured &lt;code&gt;changelog-bot&lt;/code&gt; so that changelog generation is completely decoupled from delivery:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--output stdout&lt;/code&gt;: Emits clean, streamable release markdown to standard out, redirecting all telemetry and diagnostic logs strictly to &lt;code&gt;stderr&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--output file&lt;/code&gt;: Appends updates locally to &lt;code&gt;CHANGELOG.md&lt;/code&gt; with zero network overhead.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--output pull-request&lt;/code&gt;: Reserves write token requirements strictly for automated PR creation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation means developers can test release notes locally or pipe them into custom release scripts without provisioning repository write access.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Takeaway
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stop summarizing diffs:&lt;/strong&gt; Diffs tell you what changed in syntax; linked issues explain why the change mattered to users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Benchmark against decoys:&lt;/strong&gt; Use counterfactual test sets to quantify whether your LLM can reject plausible but ungrounded claims.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep delivery decoupled:&lt;/strong&gt; Ensure your changelog generator can emit pure markdown to &lt;code&gt;stdout&lt;/code&gt; without mandating write permissions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What failure modes have you encountered when feeding git logs or PR descriptions into LLMs?&lt;/p&gt;


&lt;h3&gt;
  
  
  Connect with Me
&lt;/h3&gt;

&lt;p&gt;If you found this article helpful, let's connect!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;💻 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/johnnylemonny" rel="noopener noreferrer"&gt;johnnylemonny&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://github.com/johnnylemonny" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnfgxlwy9m3uz4zdxzy9b.gif" alt="johnnylemonny GitHub Banner" width="720" height="165"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag__user ltag__user__id__3868757"&gt;
    &lt;a href="/johnnylemonny" class="ltag__user__link profile-image-link"&gt;
      &lt;div class="ltag__user__pic"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=150,height=150,fit=cover,gravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3868757%2F1f787f85-4ec3-4a2e-ba8b-097436abcbd2.gif" alt="johnnylemonny image"&gt;
      &lt;/div&gt;
    &lt;/a&gt;
  &lt;div class="ltag__user__content"&gt;
    &lt;h2&gt;
&lt;a class="ltag__user__link" href="/johnnylemonny"&gt;𝗝𝗼𝗵𝗻&lt;/a&gt;Follow
&lt;/h2&gt;
    &lt;div class="ltag__user__summary"&gt;
      &lt;a class="ltag__user__link" href="/johnnylemonny"&gt;Freelance fullstack developer creating fast, modern, and refined applications. I focus on simplicity, performance, and real value for users. I also write tech-related articles here.&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;



</description>
      <category>ai</category>
      <category>devops</category>
      <category>github</category>
      <category>programming</category>
    </item>
    <item>
      <title>String Type In C</title>
      <dc:creator>csm</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:02:45 +0000</pubDate>
      <link>https://dev.to/necoz/string-type-in-c-3aep</link>
      <guid>https://dev.to/necoz/string-type-in-c-3aep</guid>
      <description>&lt;p&gt;If we go and search for "string type in C" on internet or ask AI, we get a line saying "C has no string type".&lt;br&gt;
I know, we get results like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqg195ck3mpn7gv271bgm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqg195ck3mpn7gv271bgm.png" alt=" " width="742" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Most of the tutorials tell how to use a char array for strings but no one tells us how to build a string type using structs and heap allocation.&lt;/p&gt;

&lt;p&gt;So here is simple string type:&lt;/p&gt;

&lt;h2&gt;
  
  
  First, the code!
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;#include &amp;lt;string.h&amp;gt;&lt;/span&gt;

&lt;span class="k"&gt;typedef&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;size_t&lt;/span&gt; &lt;span class="n"&gt;len&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;size_t&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;panic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nb"&gt;puts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="nf"&gt;string_new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;panic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"error: NULL passed to string_new()"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;len&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;strlen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;len&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;malloc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;panic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"error: Memory allocation failed!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nf"&gt;strcpy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;string_free&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;len&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;cap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nb"&gt;free&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;string_new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"King Nyaomaru"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


    &lt;span class="nb"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Welcome %s!\n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;string_free&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Explanation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First, the main function is the main function from where the program starts.&lt;/li&gt;
&lt;li&gt;This program does these things:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Create a string, that is, instance of the struct type string, that we have at the top of the program.
- Format and print the welcome message using our string name. Yep, I followed the Necoz tradition!
- Then free the string's memory using its free function.
- Return 0, that is success!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  string struct
&lt;/h3&gt;

&lt;p&gt;Its a simple struct that has three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;s (char* pointer that will hold the address to a heap memory location where we put the data (characters)&lt;/li&gt;
&lt;li&gt;len (It will store how many characters the s field has currently&lt;/li&gt;
&lt;li&gt;cap (The total amount of memory, in bytes, allocated that &lt;code&gt;s&lt;/code&gt; points to)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I will leave the string creation and freeing details to the next posts!&lt;/p&gt;

&lt;p&gt;This is a basic version. We can extend the string functions to append or prepend or resize and all kinds of stuff are possible!&lt;/p&gt;

&lt;h2&gt;
  
  
  Acknowledgement
&lt;/h2&gt;

&lt;p&gt;This is my first post under Necoz.&lt;br&gt;
I want to thank &lt;a class="mentioned-user" href="https://dev.to/nyaomaru"&gt;@nyaomaru&lt;/a&gt; and &lt;a class="mentioned-user" href="https://dev.to/star123"&gt;@star123&lt;/a&gt; for making me part of this wonderful org!&lt;/p&gt;

</description>
      <category>c</category>
      <category>beginners</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Tuesday music</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:27:12 +0000</pubDate>
      <link>https://dev.to/necoz/tuesday-music-c52</link>
      <guid>https://dev.to/necoz/tuesday-music-c52</guid>
      <description>&lt;p&gt;Wait a minute! Did all the music disappear from DEV? Where are the songs and playlists? I think it's time to bring some music back to our community! That's why I'm introducing Tuesday Music! 🎶 Every Tuesday, let's share our favourite songs, discover new music, and enjoy each other's playlists&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://open.spotify.com/embed/playlist/6003cV1aWcXsdJ6fqRzVE4" width="100%" height="380px" allow="encrypted-media"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>music</category>
      <category>necoz</category>
    </item>
  </channel>
</rss>
