What is the name of this bad practice / anti-pattern?

前端 未结 14 2413
独厮守ぢ
独厮守ぢ 2021-02-03 18:02

I\'m trying to explain to my team why this is bad practice, and am looking for an anti-pattern reference to help in my explanation. This is a very large enterprise app, so here

14条回答
  •  没有蜡笔的小新
    2021-02-03 18:44

    I don't think it has a name but maybe check the master list at http://en.wikipedia.org/wiki/Anti-pattern knows? http://en.wikipedia.org/wiki/Hard_code probably looks the closer.

    I think that your example probably doesn't have a name - whereas your proposed solution does it is called Composite.

    http://www.dofactory.com/Patterns/PatternComposite.aspx

提交回复
热议问题