---
title: "A Poorly Pruned Branch"
url: https://daily.dev/posts/a-poorly-pruned-branch-xk7kmhmpp
source_url: https://thedailywtf.com/articles/a-poorly-pruned-branch
type: article
source: "The Daily WTF"
published: 2024-05-15T11:00:33.204Z
updated: 2024-05-15T11:00:31.600Z
tags: ["general-programming", "php", "version-control"]
reading_time: 1
upvotes: 8
comments: 1
language: 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.

# A Poorly Pruned Branch

**[The Daily WTF](https://daily.dev/sources/thedailywtf)** · 1 min read · 8 upvotes · 1 comments

## Summary

A developer manually changed the code to disable a branch, leaving behind a mysterious and awkward condition.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thedailywtf.com/articles/a-poorly-pruned-branch>

## Community discussion

Top comments from developers on daily.dev.

**@randy** · 0 upvotes

> We definitely don't allow that in the current product's codebase, but we do have a habit of commenting-out (and usually commenting why) code is no longer valid in the legacy codebase. That said, the legacy code is a bit of a shit-show anyway, and will be "dead" in the nearish future, so... Yeah.
>
> What I think is funny are the comments about having a negation in an `if` statement. I just did a search-all for `if \(!` in the current codebase and got "104+ matches in 38+ files." And I know probably a good half of them are mine! 🤣 And yes, many are "if this thing doesn't exist, return." And...

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#php](https://daily.dev/tags/php), [#version-control](https://daily.dev/tags/version-control)

[View this post on daily.dev](https://daily.dev/posts/a-poorly-pruned-branch-xk7kmhmpp)
