3 ms·
> Refactored code is almost always radically better Sometimes it is, but it is hardly the rule. New issues will always be introduced. Also, some developers get
by miked85 6y ago
> Refactored code is almost always radically better
Sometimes it is, but it is hardly the rule. New issues will always be introduced. Also, some developers get into an endless cycle of unnecessary refactoring just to use the latest and greatest of some library or framework for no real technical reason.
- nickelcitymario 6y agoI'm not saying refactoring is always worthwhile (it usually isn't, in my experience anyway). But the refactor is generally done with the benefit of hindsight of all the things you would have done differently if only you'd known then what you know now. It's like saying that the second draft or edited manuscript of a novel isn't going to be better than the initial draft. Of course it's better the second time. In theory, you fixed what was wrong with the first one and implemented new and/or improved ideas. If your refactored code is worse than the original, I feel like you're doing something wrong.
- letitbeirie 6y agoRefactoring can also leave the code better off while simultaneously leaving the business much worse off. Just ask Netscape.