How I Met Your Mother: 10 Shadiest Things Barney Has Ever Done
10. Sleeping With Robin
Though Barney consistently talks of the importance of the Bro Code and how you must uphold its many rules, he does not always lead by example. In fact, we see him sleep with his best friend's ex behind his back, a direct violation of the code.
Although this isn't the worst possible thing to do to a friend, the fact that Robin and Ted had dated for an entire year should be enough reason to stay away. In addition, we all knew that Ted was not over Robin, as most of us knew that they would eventually end up together.
This means that Barney had no consideration for the feelings of his best friend, and purposefully did something that would hurt him. Barney has never been an amazingly upstanding guy, but nobody ever thought that he would out rightly try to hurt one of his best friends.
This quickly leads to Ted cutting Barney out of his life for a little while, and rightly so. The pain that Barney caused by acting upon his basic urges is something that cannot be forgiven.