1. 计算机领域里,没有什么问题是加一层间接寻址解决不了的。
There's nothing in computing that can't be broken by another level of indirection.
这是 Rob Pike 的修改版。
经常 level of insriection
误引用为 abstraction layer
。
原始版本出自 Butler Lampson
All problems in computer science can be solved by another level of indirection
但是 David Wheeler 完成了下半句:
All problems in computer science can be solved by another level of indirection, except for the problem of too many layers of indirection.
还有 Kevlin Henney 的下半句:
ll problems in computer science can be solved by another level of indirection, except for the problem of too many layers of indirection."
From Beautiful Code: Another Level of Indirection
这句话幽默地指出,在计算机编程中,通过引入额外的抽象层或中间层,几乎可以解决任何复杂的问题。这种思路在软件设计和架构中很常见。
阅读全文