Common design patterns in java
仅有的幸福
仅有的幸福 2017-05-27 17:41:16
0
8
906

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?

仅有的幸福
仅有的幸福

reply all(7)
我想大声告诉你

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).

  • reply Teacher Gao
    牛天护 author 2023-01-15 10:57:47
仅有的幸福

You can take a look here
Object-oriented and design patterns - QueenKing - SegmentFault /a/11...

Peter_Zhu

Factory, strategy.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template