It's messy, no matter what. Here's a rather in-depth article on it: Syncing iTunes. Before any goes bitching about Apple and iTunes, it's probably worth noting that redirecting some of that ire at the RIAA and content suppliers is perhaps a more worthwhile effort.