There are terabytes of poorly written code in the Internet's Joomla population. This is because of the nature of Joomla as an extensible application. It's wonderful because anyone can create a solution for it and it's horrible because anyone can create a solution for it. Because Joomla sites interweave the efforts and knowledge of hundreds of developers across space and time the highest virtue that its code can aspire to is cleanliness. If you've never heard of code referred to as clean, what it boils down to is simply code that is easy to read, write, and maintain. In this article, will look at why elegant code should be avoided and three simple principles to writing good, clean, Joomla code.