Search code examples
database-designschemaumlanti-patterns

Is performing meta-logic on data values an anti-pattern?


Consider an object

Person
   firstName
   lastName

There is a proposal that would suggest that we use lastName = "__NOLASTNAME" for a celebrity with no last name. This seems like an anti-pattern. Is there a name for it?


Solution

  • It's called Magic String:

    http://en.wikipedia.org/wiki/Magic_string