The Tortured Object
October 31, 2023
As I was learning about design patterns and anti-patterns, I came across an anti-pattern that I hadn’t seen online. So, I decided to write about it so others can learn more about it: the tortured object. I know the tortured object sounds weird, but it’ll make sense as you keep reading. The tortured object is an anti-pattern that involves a failing design pattern in which a factory pattern can be implemented to simplify the problem.
