It's when you start to think you know everything that people don't like to work with you. I haven't met that many people in my software career ~15yrs that have enjoyed working with a know-it-all.
You can of course be super smart at your job and know a TON, but when you start acting cocky and like you know everything it usually doesn't end well.