Wow, you're good at cherry picking... Ignoring things like Barney being probably the fan favorite of the show not despite him "wanting sex" but despite him lying to and manipulating women.
It very much depends on the show you're watching what their stance on (male or female) sexuality is. If you feel one or the other is solely portrayed negatively, maybe you need to broaden your palate. I'm sure you'll be able to find something you like.