Don't POOP - The Partial/Optional Object Population Anti-Pattern

added by DotNetKicks
4/20/2021 4:48:06 PM

807 Views

The Partial/Optional Object Population (POOP) anti-pattern occurs when have a class with multiple properties, we re-use it in various parts of our application, and in different places we populate some properties and ignore others, leaving some with default values. We do this because it seems easier than creating a new class with only the properties we need.


0 comments