<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa" -->

---
title: Feature flags are ruining your codebase | daily.dev
description: Feature flags have their benefits but can lead to a more complex codebase, waste time on dead code, make testing harder, and prevent hard decisions from being...
canonical: https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Feature flags are ruining your codebase | daily.dev
og:description: Feature flags have their benefits but can lead to a more complex codebase, waste time on dead code, make testing harder, and prevent hard decisions from being...
og:url: https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa
og:image: https://api.daily.dev/og/posts/dd03U2LaA.png
og:image:alt: Feature flags are ruining your codebase
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature flags are ruining your codebase

**[Community Picks](https://daily.dev/sources/community)** · 8 min read · 53 upvotes · 5 comments

## Summary

Feature flags have their benefits but can lead to a more complex codebase, waste time on dead code, make testing harder, and prevent hard decisions from being made. Different categories of feature flags should be managed differently, and it's important to acknowledge their existence to align expectations between developers and PMs. Removing feature flags can be a challenge and requires accountability. Overall, feature flags are a powerful tool when used appropriately.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://zaidesanton.substack.com/p/feature-flags-are-ruining-your-codebase>

## Community discussion

Top comments from developers on daily.dev.

**@ombratteng** · 7 upvotes

> Yesterday: feature branches are complicating your development and creating bugs in production
>
> Everyone: agreed!
>
> Today: feature flags are ruining your codebase, complicating development and leading to bugs in production
>
> Everyone: agreed!
>
> Tomorrow: feature branches are complicating your development and creating bugs in production
>
> Everyone: agreed!

**@drdreo** · 1 upvotes

> love the conclusion
> >  feature flags are a GOOD thing. They are just another powerful tool at our disposal, and we need to make sure it’s not overused.

**@ak000ay** · 0 upvotes

> IMO Feature flags are useful while refactoring the component as well

---

Tags: [#testing](https://daily.dev/tags/testing), [#product-management](https://daily.dev/tags/product-management)

[View this post on daily.dev](https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Feature flags are ruining your codebase","url":"https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa"},"datePublished":"2024-03-05T11:45:47.666Z","dateModified":"2024-05-09T09:28:18.744Z","description":"Feature flags have their benefits but can lead to a more complex codebase, waste time on dead code, make testing harder, and prevent hard decisions from being...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c8b34a63f7ac4efa363e27b18e59340?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c8b34a63f7ac4efa363e27b18e59340?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":53},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"testing,product-management","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Feature flags are ruining your codebase"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/feature-flags-are-ruining-your-codebase-dd03u2laa","comment":[{"@type":"Comment","text":"Yesterday: feature branches are complicating your development and creating bugs in production\nEveryone: agreed!\nToday: feature flags are ruining your codebase, complicating development and leading to bugs in production\nEveryone: agreed!\nTomorrow: feature branches are complicating your development and creating bugs in production\nEveryone: agreed!","datePublished":"2024-03-05T20:20:38.963Z","dateModified":"2024-03-05T20:21:29.358Z","url":"https://daily.dev/posts/dd03U2LaA#c-qrG5hxvaC","author":{"@type":"Person","name":"Ole-Martin","url":"https://daily.dev/ombratteng","image":"https://avatars.githubusercontent.com/u/1681525?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7}},{"@type":"Comment","text":"love the conclusion\n\nfeature flags are a GOOD thing. They are just another powerful tool at our disposal, and we need to make sure it’s not overused.","datePublished":"2024-03-11T14:50:33.860Z","url":"https://daily.dev/posts/dd03U2LaA#c-O1UbDbfIw","author":{"@type":"Person","name":"DrDreo","url":"https://daily.dev/drdreo","image":"https://avatars.githubusercontent.com/u/23353799?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"IMO Feature flags are useful while refactoring the component as well","datePublished":"2024-03-08T08:31:32.561Z","url":"https://daily.dev/posts/dd03U2LaA#c-xnrdXdco7","author":{"@type":"Person","name":"Akshay","url":"https://daily.dev/ak000ay","image":"https://media.daily.dev/image/upload/s--MPrS4GXA--/f_auto,q_auto/v1/avatars/avatar_RSxtIJTS5Ly9ahlxbBM4T"}}]}
```

