Hacker News new | ask | show | jobs
by modestygrime 1106 days ago
> The less code you need to solve your problem, the better.

Couldn't agree more. I always reject PRs with dead code in them. The author will argue that they added it for some future use case, but in my opinion it is never acceptable to have dead / unreachable code. It's confusing for future readers of your code and you can always add it later if your imaginary use case ever becomes real.