「在物件导向革命的最初几年,我们将 LSP 视为指导『继承的使用』的一种方式。然而,LSP 可以扩展到架构层面,只要简单地违反可替代性,就会导致系统的架构受到大量额外机制的污染」
取自: Clean Architecture (p.67 & p.69)
上面两篇 Journal 仅供膜拜大神用,只是想让读者们感受现在看似直观的软件设计原则们,都是当年大神们呕心沥血的结晶。仅以此感谢这些人的付出
LSP 或许是五大原则中最需花时间理解、也最难完全遵守的一个...
符合 LSP 的继承关系需至少满足下列 7 条规则 (Rules)
前三条是最重要的,好的继承至少不能违反这三条
Ref: What is an example of the Liskov Substitution Principle?
"Objects are regarded as being modifiable only through their methods (encapsulation)"
制图...
// 产 Code
"If S is a subtype of T, then objects of type T may be replaced with objects of type S (i.e., an object of type T may be substituted with any object of a subtype S) without altering any of the desirable properties of the program"
取自: https://en.wikipedia.org/wiki/Liskov_substitution_principle
Reference
资料型态(Data type) 在JavaScript中有以下的资料型态去储存我们的资料,想像一下平...
在介绍 gulp-gh-pages 之前 我们必须先在 GitHub 上新增一个远端数据库 点选 N...
先前大致上看了这三个网域供应商都有各自的云端主机空间平台提供,接下来就针对空间与功能做个评比分享给大...
Recurrent Neural Network 循环精神网路 RNN是一种专门设计用以解决时间序列...
fragment的lifecycle与activity类似,但多了几个专属於fragment的 观察...