3 ms·
What you should do is write code in a way where rewriting parts of it is actually possible. If you don't do it that way you will eventually have to rewrite the
by atoav 5y ago
What you should do is write code in a way where rewriting parts of it is actually possible. If you don't do it that way you will eventually have to rewrite the whole thing anyways at some point.
And this is done by drawing in the right amount of borders in the right spot. I am not saying microservices, but you need clear interfaces between your different layers.
Rewriting is absolutely a chance to get things right but:
1. Never rewrite because you cannot understand the code anymore, or can't be bothered to read it
2. Never rewrite the whole thing at once