Misused design patterns

前端 未结 15 1797
故里飘歌
故里飘歌 2021-02-01 19:54

Are there, in the canonical Gang of Four list, any design patterns that you often find misused, misunderstood or overused (other than the highly debated Singleton)? In other wor

15条回答
  •  你的背包
    2021-02-01 20:41

    The big one I see is the singleton pattern where not enough care and dilligence is applied as to how and when a singleton's destructor should be called.

    For such a ubiquitous pattern there is hardly any discussion about the proper process to decide when a singleton must die.

    Just my 0.02.

    cheers,

    Rob

提交回复
热议问题