I think a lot comes from having the experience of doing stand-up comedy. It allows you to figure out the psychology of an audience; what things are funny and not. ↗
I started writing this feature comedy in New York - a Chris Farley vehicle. The script was decent. When I got to LA, I met some new friends in film school and had them read my script and give me notes. ↗