Write a smart joke and people want to talk about it and keep the dialogue going. Also, if you can make someone laugh, it's a pronouncement that they like you on some level.