The Singleton pattern
That night, perhaps inspired by her Object Pool singularity problem, perhaps by the tacos, or perhaps both, Phoebe had a strange dream. She was a judge dressed in long flowing black robes sitting high on her bench in a courtroom. A trial was in progress. The defendant was one Sing Elton. He was a well-dressed middle-aged gentleman who sat quietly behind a large elaborately carved oaken table next to his counsel.
The courtroom clerk cleared her throat and spoke without inflection into a microphone. “The defendant, Sing Elton, stands accused of impersonating a beneficial design pattern and is, in fact, an antipattern.”
There was a collective gasp from half of the gallery. It came from the back of the courtroom, which Phoebe only now notices. The room is filled with software developers, all of whom are clad in cargo shorts, Birkenstock sandals, and $300 replicas of vintage Metallica T-shirts. Phoebe bangs her gavel and shouts, “ORDER IN...