News for hackers. Stuff that matters.
Re:B-threads: programming in a way that allows for easier ch... by kyllo on Monday July 29, 2019 @02:45PM (#20557915)
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.

Re:B-threads: programming in a way that allows for easier ch... by mannykannot on Tuesday July 30, 2019 @11:03AM (#20565430)
It 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.