while pandering to your audience is bad you _do_ need feedback - so a catch 22. If you have a chance to play with ideas with a couple of other writers/comedians who take the process serious, feedback worth gold because nothing beats bouncing your ideas off one another. the other route is to try to do it all by yourself like Stewart Lee who is imho a comedy god - but it requires insane levels of dedication, self-control and tenacity to get there (alone). Whether you're into comedy or not, Stewart Lee's "Content Provider" (imho) is a must watch for anyone who thinks about digital media (most people who reads HN).
one of my favorite sources on how to constantly be creative (not just in in the space of comedy) is John Cleese and Keith Johnstone's "Impro".