this post was submitted on 19 Jun 2026
2 points (100.0% liked)

Hacker News

5039 readers
630 users here now

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] nous@programming.dev 1 points 1 day ago

TBH I would not use a duplicate code detector at all. That would solve the problem. I tend to find excessive deduplication to be a bigger problem then have some unnecessary duplication.

If you need a tool to find duplicate code you are probably down the route of excess. They only really time you need to deduplicate code is when it causes a problem for maintenance. Then it is typically trivially easy to find it without a special tool.