At least Toolstation is honest!
Software is prose. It is written to communicate ideas to others, it has the interesting side effect that it can be transformed into something a computer can execute.
Often, we spend too much time on the later and not enough on the former.
Refactoring is just a formalize form of copy editing, used to make the fiction we are writing believable to our readers.
Debugging is the editing we use to make it believable to the computer.