I Know My Code Is Bad Because I Start Defending It

Published: (December 28, 2025 at 04:47 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

When I Know My Code Is Bad

There’s a moment when I know my code is bad. Not when tests fail. Not when something breaks. It’s when someone asks a simple question and I start explaining instead of pointing.

That’s the smell.

Good code doesn’t need a defense. Bad code comes with context, history, and a quiet “don’t touch that part.” At that point, you’re not documenting. You’re apologizing.

I’ve noticed when code is clear, I’m calm. When it’s messy, I get defensive. I say things like “it works” or “we’ll clean it later.” Those aren’t explanations. They’re excuses.

Now I use one test: if I came back to this code in a few months, would I trust myself touching it without fear? If not, it’s not done. It’s just shipped.

What’s the best excuse you’ve ever made for bad code?

Back to Blog

Related posts

Read more »

Stop Slopware

https://ficd.sh/blog/your-project-sucks/ Comments URL: https://news.ycombinator.com/item?id=46366285 Points: 55 Comments: 77...