The Fishbowl has some interesting points about a topic that many of us would prefer to avoid - the nasty bits of code we have to write to get around limitations in the frameworks, libraries, and languages we use:
You are in some way subject to architectural, framework or language constraints that force you to write ugly code. For example, your UI framework requires one kind of object, your persistence framework requires another, and you keep having to convert between the two.
Hide your ugly code inside a Ghetto. 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. On the other hand, it does the job, and it keeps the bad elements away from more cultured code.
Yes, I've had to do this with BottomFeeder. I think everyone has. WhatIreally like is his Examples of Use:
None that this author is willing to admit to.
Heh. Yeah, I get that :)