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

前端 未结 14 2292
独厮守ぢ
独厮守ぢ 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:22

    The Writing Too Much Code Anti-Pattern. It makes it harder to read and understand.

    As has been pointed out already it would be better to use an interface.

    Basically the programmers are not taking advantage of Object-Oriented Principles and instead doing things using procedural code. Every time we reach for the 'if' statement we should ask ourselves if we shouldn't be using an OO concept instead of writing more procedural code.

提交回复
热议问题