TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Refactoring vs Just Changin' Crap

40 pointsby batasrkialmost 16 years ago

3 comments

russellalmost 16 years ago
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 未加载
Osmosealmost 16 years ago
I like how most of the comments aren't about the article, but instead about what "Hello" + 4 equals.
评论 #683744 未加载
评论 #683785 未加载
stcredzeroalmost 16 years ago
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?