The four principles 是:
1 Depth is a property of the interface, not the implementation.
2 The deletion test,假想删掉这层。复杂度没了,它就是转发,可以删除。假如复杂度回到 N 个调用方,这层揪该留。
3 The interface is the test surface
4 One adapter means a hypothetical seam. Two adapters means a real one
显示更多