TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The fallacy of DRY

2 点作者 dcu超过 6 年前

1 comment

lingzb超过 6 年前
Yes too much DRY can result in the wrong trade-offs. For example, change one line of code and, in certain cases, you may need to test all the places it&#x27;s used. For UI, this can be challenging in certain cases because UI often has use case-specific quirks.<p>That said, I think erring on DRY is generally good. It&#x27;s just that when one is a little more sophisticated, one should be more thoughtful about the trade-offs in certain cases.