I want to study design patterns recently, but there are many design patterns. I would like to ask what are the commonly used design patterns?
淡淡烟草味2017-05-27 17:43:16
Used in my own business development
Chain of responsibility model - used for complex long process processing
Command mode - decoupling the caller and the callee, and doing some extended logic
In addition, don’t think about reading the book on design patterns from beginning to end in one go. This will only come in handy when needed
滿天的星座2017-05-27 17:43:16
" Design patterns are used throughout many examples: adapter, bridge, chain of responsibility, command, decorator, appearance, factory method, flyweight, roll call, data transfer object, empty object, proxy, singleton, state, strategy, template Methods and visitors" -- "THINKING IN JAVA"
高洛峰2017-05-27 17:43:16
When I was learning design patterns, I read books and read blogs, and I felt that I basically understood them. However, I couldn’t use them naturally during development. Within a few months, I forgot everything and only remembered a few nouns. After reading some source codes, I have a deep understanding of some design patterns (spring mvc, Tomcat source code).
仅有的幸福2017-05-27 17:43:16
You can take a look here
Object-oriented and design patterns - QueenKing - SegmentFault /a/11...