Principle of least astonishment
最小惊讶原则(Principle of least astonishment) 最小惊讶原则通常是在用户界面方面引用,但同样适用于编写的代码。代码应该尽可能减少让读者惊喜。
基于2374个网页-相关网页
Principle of Least Surprise
这是一个著名的原则,在Ruby社区中经常被引用,但通常称它为“最小惊讶原则”(Principle of Least Surprise),缩写为POLS(作者更喜欢缩写LOLA)。
基于12个网页-相关网页