News for hackers. Stuff that matters.
Re:Ask HN: What is the first thing you implement at a new co... by eastbayjake on Wednesday June 20, 2018 @09:28AM (#17355125)
This is why we have the strangler pattern, right? You wrap the legacy functionality with a set of tests that define the functional requirements of the code, then your new refactored solution needs to keep those tests passing. (And then once you've done that, make sure that your "hacks and bugfixes" get test cases so you can make sure the next refactor accounts for them!)

There are no comments on this comment yet.