Viruses in mac vs windows

Geri’s post reminded me about viruses in Mac Vs Windows. From time to time I hear from students about how Macs tend to get fewer viruses. Why do you think Windows has a bad rep with viruses and hacks? Is there a reason for being attacked more than a Mac? Are Macs more secure than Windows? What are your thoughts?