I like to tell young writers there are three things they must avoid: complexity, ambiguity and irony. All three are bad, but irony is the worst.
Humor is iffy, unless it is done broadly in a story that is obviously humorous. Ha-ha, laugh riot is okay. And there's a good chance you won't be taken seriously unless you write seriously.