4 ms·
Sure but IMO most code can and should be structured to decouple the side effect from the logic that is being replaced. Example in the transferring a bank balan
by rockwotj 3y ago
Sure but IMO most code can and should be structured to decouple the side effect from the logic that is being replaced.
Example in the transferring a bank balance, you have some storage DB you interact with, but that is an abstraction and when you run the dry run of the new code you can have an implementation that just does verification on the data from the real implementation.
Anyways, it does take discipline and effort, but you can still safely make changes in this manner.
- Manfred 3y agoThe library is specifically meant for safely replacing legacy implementations and they generally aren't that well structured.