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
" 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"
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).
Factory mode, observer mode, strategy mode
Look at this
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
" 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"
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).
You can take a look here
Object-oriented and design patterns - QueenKing - SegmentFault /a/11...
Factory, strategy.