Comedy is not a science, it's art. Therefore there are no rules and it can be very subjective. What one person finds funny another might cringe at.
One thing worth noting is that when analyzing comedy and what is funny, it is almost like it is only visible out of the corner of your eye. As soon as you try and look directly at it and analyze it too much... all of the funniness disappears...