I’ve been pretty focused on learning software patterns and only recently learnt that what I perceived as bad code
can sometimes actually called an Anti Pattern.
“An anti-pattern is a common response to a recurring problem that is usually ineffective and risks being highly counterproductive.” - wikipedia.org
Golden Hammer Anti-pattern
This is the repetitive use of one pattern that has worked amazingly in some applications however is not the best fit for your current problem domain.
“ … everything always ends up using this architecture. A flat head screw? Hammer. Phillips head screw? Hammer. You need an Allen wrench? No you don’t, hammer it.” - freecodecamp.org