3 ms·
So what I think this points to is the importance of what I'm going to call "psychological reversibility" in programming: the ability for the developer (with the
by pjc50 8y ago
So what I think this points to is the importance of what I'm going to call "psychological reversibility" in programming: the ability for the developer (with the aid of their tools) to answer three kinds of question:
- how did this (wrong) control flow get here? Normally simple with stack traces, may be more complex with event systems. Part of the original rationale against GOTO.
- how did this (wrong) data item or variable get here?
- how did this piece of state get into this (wrong) state? This is often very hard to answer if the state is outside the program. DOMs are a large piece of global state that everyone working in the browser environment has to deal with.