Not so sure about this advice. It takes a certain kind of person to be able to pull off a joke to someone they aren't overly familiar with. To try and tell a joke when you aren't overly comfortable chatting may not work so well.
Anytime I'm not familiar with someone, the first thing I'd do would be to introduce myself and then they tell me their name, I'd ask them what they do for a living and so on, take it from there. Keep it simple and be yourself.
Yeah it doesn't work when you meet someone for the first time but with people you know as friends it works well to keep them amused.
Nobody likes the boring monotone person, telling jokes is a good way to bump up your friendships.


