I too usually fall into the category of normally having the opposite opinion of the majority, i find people attack you because they either do not understand (or want to understand) your views on things. I do not believe that there is a bad opinion in the sense that everyone is entitled to have their own opinions on any matter, however whether that opinion is right or wrong is subject to debate, people believe what they want for many different reasons. I have come to realize that the people who shun your views are either refusing to acknowledge your viewpoint or are ill-educated in the respective subject and feel threatened by someone who knows more than they do.
Whenever i share my opinion, i always do so knowing that it is open to debate, i will always support my opinions with reason, however i also try my best to see things from the opposite end of the spectrum to better understand the individuals i'm debating with to better understand why they think the way they do. There is a lot to learn from people who you disagree with, you can see the world through many angles and it helps you develop as a person. Peoples views might even make you think differently which also helps shape who you are.
Don't be afraid to voice your opinions, but also remember to respect the opposing argument, mutual respect for each others views is paramount to getting the best outcome of a thought process. You never truly know who you are debating with, you might be challenging a much more intelligent person than yourself, in which case you can learn from them, if your debating with someone less intelligent than yourself, teach them, help them become a better person through knowledge is power.
I love a good debate, though i think now a days there is a lot of oppression on free speech, as people take things way too seriously or out of context and become offended, there is a lot of political correctness balony that really shouldn't exist because it limits the way we can learn from each other as we are forced to act/think in a certain way to not cause offense, ya know what i say to that? If i offended you, GOOD, it means you have an opinion worth sharing, an opportunity to teach me why you think the way you do. If your aren't offended (and don't agree with me), its probably because you don't fully understand or have the lack of experience/knowledge of the subject, or you could be of the opinion that you believe whatever the majority do to prevent arguing, to that i say your opinion isn't your own.