3 ms·
In similar situations, I've done full rewrites and I've done refactor over time. Refactoring over time is by far the least risky, and is where you should start
by tomohawk 4y ago
In similar situations, I've done full rewrites and I've done refactor over time.
Refactoring over time is by far the least risky, and is where you should start. And the start of that is understanding the scenarios and getting tests in place. At some point, you'll know the refactoring is working, or you'll know a rewrite is needed.
But that is just the technical side. Most of your risk is not there.
As others have mentioned, you need to get your new bosses on board and aware of what the situation really is in terms they understand (specific business risks, specific business opportunities) and make sure they have your back. You will be the first to go if they are taken by surprise. They need to understand the jeopardy to business that already exists, and that while the team has reached a point of relative stability, it is perilous, and some risks will need to be taken to get to a point of actual stability.
The other main risk is the team itself. What do they value? Is it in line with where you know things need to go? If they walk, who will maintaing the beast?