Real-world patterns: Ghetto

Wednesday 28 May 2003This is over 21 years old. Be careful.

Charles Miller documents the Ghetto Mini-Pattern:

The ghetto is a single file or class where issues of code cleanliness do not apply. It is entered by reputable developers with no small amount of trepidation, and left as quickly as possible.

I’m not actually sure if Charles meant this as a joke, but I think it is a useful pattern. Although patterns should ideally be used to create elegant beautiful code, they have value as well if they at least give structure and shorthand (and therefore understanding) to our darker sides as well.

» 2 reactions

Comments

[gravatar]
It's a useful pattern, but there is always that cringe-factor when you have to use it.

As for whether I was joking: http://www.jargonfile.com/jargon/html/entry/ha-ha-only-serious.html
[gravatar]
Ha! I love it. Hey Ned, remember config.cpp? Pull up!

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.