The other curious thing about John's reaction to all the mess Ted is enduring is how grimly delighted he is when his sidekick suffers. John grins malevolently when Ted hears about Phil, laughs his ass off when he gets divorced and chortles in malicious glee when he learns that Connie is engaged to Greg. The reason for this seems to be fairly simple; as we've seen over the years, Ted has the nasty habit of questioning John's decision to get married to the first woman he dated more than once. While it's true that John makes not-so-funny jokes about wishing he could have changed his mind, he really doesn't like the idea of having whatever he has with Elly questioned; Ted's being pummelled by the mighty fist of ham is thus his well-deserved punishment for not accepting that Hallmark and cheese rule the Patterverse. By that, of course, I mean he's going to spend the next twenty years or so treating a confused man like vermin because he'd rather not admit that he might have made a bad decision in haste.