Check out some of Jane Espenson (tv writer and Buffy alum) and her blog entries on writing different kinds of jokes. Great insight for anyone wanting to write funny.
- Reversing intent of a cliche
- Unexpected analogies
- Again with the grilled cheese
- Silent beats (aka chirping crickets)
- Throw aways
- Repeated words
- Reference jokes
- Sounding written