The guidelines don't actually say humor should be avoided. Hacker News is just weirdly priggish because it associates humor with Reddit and Reddit with everything it fears, hates and stands against. So unless it's particularly smart and clever humor (which negates its "Redditness") it'll get stamped out like a cockroach.