Real-world patterns: Ghetto

Wednesday 28 May 2003

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]
Charles Miller 10:12 PM on 28 May 2003

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]
andrew 10:17 AM on 29 May 2003

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:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.