- 抽象
- 封装
- 多态
- 继承
- 封装变化
- 多用组合,少用继承
- 针对接口编程,不针对实现编程
- 找出应用中可能需要变化之处,把它们独立出来,不要和那些不需要变化的代码混在一起;
- 针对接口编程,而不是针对实现编程;
- 多用组合,少用继承;
- 为交互对象之间的松耦合设计而努力;
- 依赖倒置原则:要依赖抽象,不要依赖具体类;
- 最少知识原则:只和你的密友谈话;
- 好莱坞原则:别调用(打电话给)我们,我们会调用(打电话给)你
- 我们告诉子类,"不要调用我们,我们会调用你"
- 一个类应该只有一个引起变化的原因;
This project forked from charmingoh/head-first-design-pattern
:8ball:Example from HEAD FIRST DESIGN PATTERN.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.