Barney gives Ted's Best Man duties to The Karate Kid's William Zabka over the incident at the carousel, and Lily gives Robin a lousy bridal party.



(creator), (creator) | 2 more credits »

Watch Now

From $1.99 (SD) on Amazon Video






Episode complete credited cast:
Tracy McConnell (credit only)


Lily and Ted are carrying out their respective matron of honor and best man duties. Lily seems to be lax on carrying out her duties by forgetting to hit the send button on Robin's bridal shower evite. But Lily admits that the shower was a bit of a bust for another reason. Lily and Robin try to overcome that problem. On the other hand, Ted is doing whatever he can to be the best best man ever by accommodating Barney's every whim. But there is one thing that Ted may not be able to do for Barney, and that is not to have held Robin's hand at the carousel in the park, which Barney saw. Marshall the lawyer, who, although still on the road with Daphne, is present with the gang in a half stuffed man/half electronic state, ends up being the judge on the Barney/Ted issue. Written by Huggo

Plot Summary | Plot Synopsis


Comedy | Romance


TV-14 | See all certifications »




Release Date:

7 October 2013 (USA)  »

Company Credits

Show detailed on  »

Technical Specs


Sound Mix:


Aspect Ratio:

16:9 HD
See  »

Did You Know?


"The Bro Code" in the hotel room is actually the same book anyone can buy at a book store. A small label is seen saying "As seen on CBS's How I Met Your Mother". It's very small, but it's similar to the one at a book store. See more »


Ted Mosby: Billy Zabka's your new best man?
Barney Stinson: He's the best, around. Sorry Ted, maybe next wedding.
See more »


References Weekend at Bernie's (1989) See more »


Hey Beautiful
Written by The Solids
Performed by The Solids
See more »

Frequently Asked Questions

This FAQ is empty. Add the first question.

User Reviews

Solid Episode, But Not Very Funny
25 March 2015 | by (United Kingdom) – See all my reviews

For some explicable reason the TV channel I'm watching the reruns on, skipped the last episode, and went straight on to this one!! I hate it when it does that!!

So now I'm watching "The broken" code" without seeing the build up to the scene at the end of the last episode which starts this one!! And it was a big important one!'

Plot In A Paragraph: Barney tells Ted he seen him and Robin holding hands at the Carousel in Central Park. Accusing Ted of breaking The Bro Code, he is so upset he strips Ted of his best man duties. Lily upgrades Marshpillow, who ends up in the argument with Ted and Barney, and Robin realises she has no female friends except Lily.

No Cristin Milioti in this episode, which is a disappointment, there were only a few laughs to be had, but it was a solid episode. Which hopefully put an end to the Ted/Robin/Barney love triangle.

1 of 1 people found this review helpful.  Was this review helpful to you?

Message Boards

Recent Posts
the finale lief_peterson
Robin's accent harry-browne8
Who liked Tracy more than Robin? !!!deleted!!! (64820750)
Would you rather be a 'reacher' or a 'settler' in a relationship? majoros-maria
Britney Spears e-l-r-w
The ending - were you really surprised? Jones_RA
Discuss The Broken Code (2013) on the IMDb message boards »

Contribute to This Page

Create a character page for: