Magic string
Appearance
The Magic String anti-pattern is a situation where a programmer defines an input that they believe will never come externally, and uses it in a conditional to invoke otherwise hidden functionality. A user of this program would likely provide input that gives an expected response in most situations. However, if the user does in fact innocently provide the pre-defined input, invoking the internal functionality, the program response is often quite unexpected to the user (thus appearing 'magical').