<?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: Gustavo Figueiredo</title>
    <description>The latest articles on DEV Community by Gustavo Figueiredo (@gustavodsf).</description>
    <link>https://dev.to/gustavodsf</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%2Fuser%2Fprofile_image%2F1505927%2F57e0c7b3-c7b5-44a2-9803-d92911eca2b1.jpeg</url>
      <title>DEV Community: Gustavo Figueiredo</title>
      <link>https://dev.to/gustavodsf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gustavodsf"/>
    <language>en</language>
    <item>
      <title>AI made features cheap to build, so I think we should delete more of them</title>
      <dc:creator>Gustavo Figueiredo</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:39:31 +0000</pubDate>
      <link>https://dev.to/gustavodsf/ai-made-features-cheap-to-build-so-i-think-we-should-delete-more-of-them-coh</link>
      <guid>https://dev.to/gustavodsf/ai-made-features-cheap-to-build-so-i-think-we-should-delete-more-of-them-coh</guid>
      <description>&lt;p&gt;As AI use keeps growing, writing code is becoming a commodity. Looking at that in general, I think it is time to look back and ask how we can measure better, so we can decide what code to remove.&lt;/p&gt;

&lt;p&gt;Say a team adds an export button in an afternoon, because an agent wrote it. A year later the button is still on the screen. Almost nobody clicks it. It still has tests, it still has to be checked when that screen changes, and the next person still has to understand it before touching the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers say, and what they don't
&lt;/h2&gt;

&lt;p&gt;Martin Fowler wrote about this cost years before coding agents existed, in his piece on &lt;a href="https://martinfowler.com/bliki/Yagni.html" rel="noopener noreferrer"&gt;Yagni&lt;/a&gt;. He was writing about features you build ahead of time, because you think you will need them later. The costs he lists also apply to a feature that is already live and that few people use. Building costs effort, and so does the delay of whatever you could have built instead. Then there is what he calls the cost of carry: the feature adds complexity, so every later change gets a little slower and a little riskier until someone removes it, and removing it is another cost. He also repeats a finding from Microsoft by Kohavi and colleagues, where only about a third of the features they built and deployed improved the metric they were built to improve. That article is from 2015 and the Microsoft study is older than that, so I would not treat the one-third figure as a law. I do take it as a reason to be modest about how often our guesses about value turn out right.&lt;/p&gt;

&lt;p&gt;The newer data comes from &lt;a href="https://www.gitclear.com/the_ai_code_quality_maintainability_gap" rel="noopener noreferrer"&gt;GitClear&lt;/a&gt;, which analysed 623 million code changes between 2023 and 2026. Two of their numbers stayed with me. Duplicated code blocks are up 81% compared with 2023. And the share of changes that update or remove code last touched more than twelve months earlier dropped from 1.7% to 0.46%, a fall of 74%. Their reading is that old code is not disappearing, it is being forgotten, while new code piles up around it.&lt;/p&gt;

&lt;p&gt;I should be careful with this. GitClear sells code analytics, the 2026 figures cover only part of the year, and "changes to old code" is a proxy, not a direct measure of features nobody uses. The report does not say that teams are keeping dead features. What I take from it is smaller: the work of consolidating and retiring things seems to be getting less attention as the work of adding things speeds up, and that matches what I would expect when adding costs almost nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do about it
&lt;/h2&gt;

&lt;p&gt;The first step happens before any code. I would want a rough statement of what success looks like for the feature, with a number and a date, written into the ticket that the agent or the developer starts from. It does not have to be a good number. Something like "a fifth of active users try it within two months" is enough to make the later conversation possible. Without it, a feature that changed nothing and a feature that worked look the same on a delivery dashboard, because both shipped.&lt;/p&gt;

&lt;p&gt;After launch, I would measure how many users use the feature and how often, rather than how many times it was clicked. Intercom has a short post from 2014 on &lt;a href="https://www.intercom.com/blog/before-you-plan-your-product-roadmap" rel="noopener noreferrer"&gt;auditing features&lt;/a&gt; that suggests plotting each one by those two axes, and for any feature with limited adoption you get four choices: remove it, get more people to use it, get people to use it more often, or improve it for the people who do use it. I like that the first option is on the list at all, since it is the one that rarely gets chosen in practice.&lt;/p&gt;

&lt;p&gt;A feature flag is one way to start removing a feature. In Intercom's &lt;a href="https://www.intercom.com/blog/how-to-sunset-a-feature" rel="noopener noreferrer"&gt;guide to sunsetting a feature&lt;/a&gt;, the first step is to use a flag to stop showing the feature to new sign-ups, without taking it away from people who already rely on it.&lt;/p&gt;

&lt;p&gt;The flag itself can become leftover code. A &lt;a href="https://www.statsig.com/blog/feature-flag-code-cleanup" rel="noopener noreferrer"&gt;Statsig post on flag cleanup&lt;/a&gt; describes what often stays after the rollout: an if/else that nobody owns. The next person who changes that code cannot tell which branch still matters. Their suggestion is to open the removal ticket on the day the flag is created, assign it to whoever owns the rollout, and set a due date, say thirty to forty-five days after full rollout. I find this the most convincing idea in the whole topic, because it moves the decision to the one moment when somebody still remembers why the flag exists. The post is from a flag vendor, so they have a stake in it, but nothing in the advice needs their product. Statsig also points out that some flags are kill switches and should stay, which is a fair exception.&lt;/p&gt;

&lt;p&gt;When a feature really has to go, Intercom's advice is to split the users into people who tried it once and people who depend on it. The first group can lose it with barely a notice. The second needs a clear reason, a date, an alternative and a way to take their data with them, and a month to a year of warning depending on the damage. That sounds like a lot of effort for something almost nobody uses, and it is. Intercom's answer is that "what harm is it doing?" is the wrong question to ask about a feature, because a product with a clear purpose has no room for things nobody wants.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where I am less sure
&lt;/h2&gt;

&lt;p&gt;Low usage is not the same as low value. An admin screen that one person per customer opens twice a year can be essential, and a usage chart will rank it at the bottom. Any review needs somebody who knows the customers and can say "that one stays." I also doubt that a number written before the build is always honest, since it is easy to pick a target you know you will hit.&lt;/p&gt;

&lt;p&gt;Some of this is harder where I have worked. In systems that move money, like the ledger work I did at Inoa and Dock, I would expect old behaviour to carry obligations that a product analytics chart will never show, so I would check with the people responsible for audits and reconciliation before removing anything. And an endpoint that another team calls from their own scripts will not appear in UI analytics at all, so server logs matter as much as events.&lt;/p&gt;

&lt;p&gt;Then there is the incentive problem. Shipping gets noticed, and deleting rarely does. I do not have a good answer for that beyond making removal part of the same ticket and the same review as the launch.&lt;/p&gt;

&lt;p&gt;I would also use an agent for the tedious half of a deletion, like finding what else only the removed code was using, but I would not ask it to decide that something is dead. That judgement needs the usage data and a person who has talked to users.&lt;/p&gt;

&lt;p&gt;I am still working out how often a review like this is worth running. Quarterly feels about right to me for a product with real traffic, but that is a guess and not something I have tested. If your team has a routine for deciding what to remove, I would like to hear what it looks like and what made it stick.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>softwareengineering</category>
      <category>productivity</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
