It's part of life, you can't expect everyone to like you. It also depends on what kind of people you work with. You will have your ups and downs in life this is true for any field of work not just software development.
I think the main reason this happens in Software development is that people have big egos and consider themselves more intelligent than others.
I think the main reason this happens in Software development is that people have big egos and consider themselves more intelligent than others.