News for hackers. Stuff that matters.
Re:Mozilla Welcomes the Rust Foundation by miked85 on Wednesday February 10, 2021 @10:42AM (#26090639)
> 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.

Re:Mozilla Welcomes the Rust Foundation by nickelcitymario on Wednesday February 10, 2021 @01:02PM (#26092600)
I'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.

Re:Mozilla Welcomes the Rust Foundation by letitbeirie on Wednesday February 10, 2021 @01:35PM (#26093035)
Refactoring can also leave the code better off while simultaneously leaving the business much worse off. Just ask Netscape.