Architecture and Design Guidlines.
来源:互联网 发布:windows下载中心在哪 编辑:程序博客网 时间:2024/05/21 19:55
Key Design Principles
When getting started with your design, bear in mind the key principles that will help you to create architecture that meets “best practices,” minimizes costs and maintenance requirements, and promotes usability and extendibility. The key principles are:
• Separation of concerns.(问题分离) Break your application into distinct features that overlap in functionality as little as possible.
• Single Responsibility Principle. (单一责任原则)Each component or a module should be responsible for only a specific feature or functionality.
• Principle of least knowledge. (最少知识原则) A component or an object should not know about internal details of other components or objects. Also known as the Law of Demeter (LoD).
• Don’t Repeat Yourself (DRY). (不要重复自己)There should be only one component providing a specific functionality; the functionality should not be duplicated in any other component.
• Avoid doing a big design upfront. (避免一开始就做很大的设计)If your application requirements are unclear, or if there is a possibility of the design evolving over time, avoid making a large design effort
prematurely. This design principle is often abbreviated as BDUF.
• Prefer composition over inheritance.(多用组合,少用继承) Wherever possible, use composition over inheritance when reusing functionality because inheritance increases the dependency between parent and child classes, thereby limiting the reuse of child classes.
- Architecture and Design Guidlines.
- Facebook Cassandra Architecture and Design
- Computer Design and Architecture Revised and Expanded
- .NET Patterns: Architecture, Design, and Process
- Cryptographic Security Architecture : Design and Verification
- Service-Oriented Architecture: Concepts, Technology, and Design
- Network Analysis, Architecture, and Design, Third Edition
- Advanced FPGA Design: Architecture, Implementation, and Optimization
- ASP.NET 3.5 Application Architecture and Design
- ASP.NET 3.5 Application Architecture and Design
- Architecture & Design
- architecture design
- Embedded Systems Architecture programming and design--Chapter 1 Summary
- Service-Oriented Modeling (SOA): Service Analysis, Design, and Architecture
- Applied SOA: Service-Oriented Architecture and Design Strategies
- The Art of Software Architecture: Design Methods and Techniques
- 【转】The Hadoop Distributed File System: Architecture and Design
- A Practical Approach to Computer Systems Design and Architecture
- 爱上jQuery
- 写在“开始”之前...
- 字符数组,字符指针,Sizeof总结
- 讨厌
- 内存的堆分配和栈分配
- Architecture and Design Guidlines.
- 32位CPU寄存器
- 写写博客,做做笔记
- 5月9号
- malloc()、free()、calloc()与realloc()
- 在多个 Eclipse 安装之间共享插件
- S3C2440--GPIO控制.
- char *v1 与 char v1[] 在strcat()上的区别
- MSSQL语句-命令大全