For git users:
echo ".DS_Store" >> ~/.gitignore
git config --global core.excludesfile ~/.gitignore
If you spend many man hours dealing w/ .DS_Store files in source code repos you're doing something wrong.