- 如果模块、接口、类、方法使用了设计模式,在命名时需体现出具体模式。 将设计模式体现在名字中,有利于阅读者快速理解架构设计理念。比如说:`public class OrderFactory;public class LoginProxy;public class ResourceObserver;`
- 如果模块、接口、类、方法使用了设计模式,在命名时需体现出具体模式。 将设计模式体现在名字中,有利于阅读者快速理解架构设计理念。比如说:`public class OrderFactory;public class LoginProxy;public class ResourceObserver;`