2 ms·
This "append-only" style also seems like it could lead to new code being added just to "undo" what the existing code is doing, which is obviously waste. Remind
by kyllo 7y ago
This "append-only" style also seems like it could lead to new code being added just to "undo" what the existing code is doing, which is obviously waste.
Reminds me of a process I saw at work years ago. An employee was given an Excel macro to run on a weekly spreadsheet file. The instructions included "Unhide cells D through F". It turned out that the macro had code in it to hide cells D through F, but the employee didn't know how to just remove that code from the macro, so they had to manually undo something the code did, every single time they ran it.
- mannykannot 7y agoIt is more than just a waste - how do you know what might depend on what you are undoing? Other, that is, than by having a deep understanding of what the code does and how it works, which is the problem that this approach is supposed to solve.