During my career, I have worked on a lot of code, and some of it clearly follows an anti-pattern design…