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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Coding exercises to practice refactoring legacy code

2 点作者 a7b3fa超过 4 年前

2 条评论

uberman超过 4 年前
Practice writing good clean code and even do some practice refactoring exercises. That is great.<p>Do not, <i>absolutely do not do</i> un-needed refactoring in the context of a bug fix (or feature request). I would fail a code review that did this and I would dismiss a job candidate that told me the actively look for opportunities to do refactoring like this. If your bug fix results in a new bug there is no telling what you did or why.<p>If you want to do a refactoring, propose it as a sprint unrelated to a bug fix. That way your bugs get fixes that are just fixes, your new features are just features and your refactoring is just cleanup. All properly prioritized. Get any of them wrong and you can understand what was the justification and how to potentially fix things or back them out.<p>Repeatedly muddle them all together and I would fire you.
评论 #25554512 未加载
arreche超过 4 年前
Does anyone know of an online community to practice these exercises doing pair programming?