Design patterns are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code.
这里是一个学习设计模式的很好的网站。
总的来说,设计模式分为以下三类:
-
Creational patterns
-
Structural patterns
-
Behavioral patterns