<P> Although The Early Show described him as "Utterly devoid of morality", Barney lives by the "Bro Code", his own code of ethics . Despite his overall questionable character, according to creator Craig Thomas, Barney is "a pretty fragile character who's really afraid of being alone . He just wants people to like him, to be important to people, and to have disciples who follow his word ." He has displayed a softer, kinder side on several occasions, however, such as preventing Marshall from sleeping with other women when he and Lily break up, and persuading Lily to come back to Marshall . </P> <P> In "The Slutty Pumpkin Returns", Barney finds out he is one quarter Canadian, much to his horror and embarrassment . </P> <P> Throughout the series, one major character development is apparent in Barney: At the beginning of the show, his character is a womanizer who completely objectifies sex and women and wants nothing to do with dating and relationships . Although he does date Robin in Season 5, he resumes his promiscuous lifestyle immediately after they break up . In Seasons 6 and 7, however, he begins to confront his personal issues, like his relationship with his estranged father and his fear of commitment . By the time late Season 7 rolls around, Barney has finally "grown up," and has now warmed to the idea of a commitment and marriage, culminating in his proposal to his girlfriend, Quinn . Although he briefly retreats to his escapades after he and Quinn break up, he does make one major final leap in his maturity when he burns The Playbook and proposes to Robin in Season 8's two - part episode "The Final Page," after finally admitting to himself that he is still in love with her . Robin accepts and they plan their wedding in the second half of the season . </P> <P> The final season revolves around Barney and Robin's wedding weekend . After some apprehension on both their parts, they get married in "The End of the Aisle" after he vows to always be honest with her . The series finale, "Last Forever", reveals that, three years after their wedding, they get divorced because Robin's hectic travel schedule prevents them from spending any time together . Barney returns to a lifestyle of meaningless sex with multiple women for several years afterward, until he gets one of his one - night stands pregnant . He hates the idea of being a father until the day his child--a girl named Ellie--is born . He falls in love with her at first sight and becomes a devoted father, turning away from his player lifestyle for good . </P>

When do barney and robin get back together