News for hackers. Stuff that matters.
Re:Throw away your first draft of your code by withinboredom on Friday August 04, 2023 @03:37PM (#37004819)
> Admittedly, there's nothing sexy about refactoring.

There's the "strangler fig" (my favorite) method of refactoring. It's where you rewrite just a small portion of the software, little bits at a time. Instead of doing a full rewrite.

IMHO, it's the best way to refactor. You can switch out both "old" and "new" versions at-will until you're 100% sure you've covered all the edge cases.

There are no comments on this comment yet.