DEV Community

Pankaj Gupta
Pankaj Gupta

Posted on

Rate this code crime scene (we've all left one behind)

Found this in a project I touched eight months ago. No context. No memory of writing it. Just vibes.

# TODO: fix this properly
# - me, 2 years ago
def is_active(status):
    if status == True:
        return True
    else:
        return False
Enter fullscreen mode Exit fullscreen mode

The TODO was two years old.

And right below it, completely unbothered:

print("here1")
print("here2")
print("WHY IS THIS NOT WORKING")
Enter fullscreen mode Exit fullscreen mode

Still in production. Nobody has touched it since.

The funniest part is I genuinely don't remember why any of this existed. At some point "temporary debugging" quietly became part of the architecture.

Crime scene rating: 10/10.

What's the most cursed thing you've found in your own codebase? Drop the snippet. No judgment. I'll go first.

Top comments (0)