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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Write code that is easy to delete

2 点作者 lowmemcpu将近 5 年前

1 comment

lobsang将近 5 年前
I find the difficult thing with this advise is that people always want to skip step 1.<p>From my experiance once you introduce the principle of refactoring repeated code into functions no one wants to repeat code and will go to great length to justify abstractions before they know if its needed.<p>I see this with teams following iterative product development processes as well - they never want to build the &#x27;simplest thing&#x27; first and learn. There is usually an idea of the final product and people want to jump straight to that.<p>Would be interested to know if anyone else has seen this and how they have overcome those challenges.