Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有资源定义并指导软件中的对象命名?例如,何时调用服务与处理程序?何时在名称中包含名词或动词。
我正在寻找一些明确的东西来解决争论并为我的团队提供指导。
命名最重要的一点是,所有团队都以相同的方式进行命名。这样您就可以从对象的名称中了解对象的作用,并且如果您能猜出对象应该具有的名称,您将能够找到对象。检查这个关于为什么好名字有用的链接?
期待没有银弹。以下两个是有帮助的,但按照提到的顺序
GoF 中关于设计模式的经典书籍对此非常有用: