今日已更新 346 条资讯 | 累计 28250 条内容
关于我们

标签:#hackernews

找到 9732 篇相关文章

AI 资讯

Ask HN: How do you separate intentional test boilerplate from real duplication?

I am maintaining an open-source project (deterministic open source duplicate-code detector) and a user asked for a feature which I don’t have a clear answer on how to implement. This seems a very hard problem to solve: -Tests repeat the same scenario. For a structural detector, this flags as repetition (duplication). However, tests are not something people want to delete from the codebases. -The repetitions from tests (on purpose) end up looking like undesired code duplication and the tools cann

2026-06-18 原文 →