摘要:
KISS 定义 kiss 原则的英文描述又几个版本,计较下边的这几个 keep it simple and stupid. keep it short and simple keep it simple and straightforward 不过仔细看你会发现,他们表达的意思其实差不多,尽量保持简 阅读全文
摘要:
控制反转IOC 看下边的代码 public class UserServiceTest { public static boolean doTest() { // ... } public static void main(String[] args) {// 这部分逻辑可以放到框架中 if (do 阅读全文
摘要:
定义 “Clients should not be forced to depend upon interfaces that they do not use” 个人认为接口隔离原则,和单一原则有点像。 一个接口实现一个功能。 不过,你应该已经发现,接口隔离原则跟单一职责原则有点类似,不过稍微还是有 阅读全文
摘要:
定义 If S is a subtype of T, then objects of type T may be replaced with objects of type S, without breaking the program。 Functions that use pointers of 阅读全文