O'Reilly logo
  • WEI EN WEI EN thinks this is interesting:

Given that the program works, isn’t any statement about its structure merely an aesthetic judgment, a dislike of “ugly” code? After all, the compiler doesn’t care whether the code is ugly or clean. But when I change the system, there is a human involved, and humans do care. A poorly designed system is hard to change—because it is difficult to figure out what to change and how these changes will interact with the existing code to get the behavior I want. And if it is hard to figure out what to change, there is a good chance that I will make mistakes and introduce bugs.

From

Cover of Refactoring: Improving the Design of Existing Code

Note

程式碼是寫給人看的,越是人看不懂的程式碼改起來就容易出錯