How does Spider-man come up with so many witty quips?

With great power comes great response-ability.