The new Joomla solves most of the issues with retarded code. Currently designing a template for the new version myself. I personally don't like it as a CMS, and would rather use Drupal. But I'm just the web designer on this so it's not my problem.
__________________