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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Refactoring vs Just Changin' Crap

40 点作者 batasrki将近 16 年前

3 条评论

russell将近 16 年前
What he said is, if you dont create tests first, refactoring is just changing shit. The behavior is supposed to be invariant across refactoring. The only way you can be sure is to test the before and after.
评论 #683968 未加载
Osmose将近 16 年前
I like how most of the comments aren't about the article, but instead about what "Hello" + 4 equals.
评论 #683744 未加载
评论 #683785 未加载
stcredzero将近 16 年前
You'd also want to make sure you're getting some <i>benefit</i> from your refactoring activity. Are you winding up with less code? Is it more readable? Most important: are you getting closer to Don't Repeat Yourself?