search

Home  >  Q&A  >  body text

Common design patterns in java

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?

仅有的幸福仅有的幸福2768 days ago938

reply all(8)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-27 17:43:16

    Factory mode, observer mode, strategy mode

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-27 17:43:16

    Look at this

    reply
    0
  • 淡淡烟草味

    淡淡烟草味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

    reply
    0
  • 滿天的星座

    滿天的星座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"

    reply
    0
  • 高洛峰

    高洛峰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).

    reply
    1
  • 牛天护

    Teacher Gao

    牛天护 · 2023-01-15 10:57:47
  • 仅有的幸福

    仅有的幸福2017-05-27 17:43:16

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-27 17:43:16

    Factory, strategy.

    reply
    0
  • Cancelreply