This is such BS and makes me sigh every time I hear it.
It's not being an ass that gets them laid, it's the other characteristics that an asshole typically has that gets them laid. Things like confidence, not coming off desperate and having experience not just approaching a girl but being able to hold a conversation... and the many more things that increase attraction but these are the basics.
These characteristics in a nice guy will get him laid more than the asshole and he'll have opportunities with girls that see right through the asshole (and some would say these are the more desirable women).
I wish this were true. Well, you're not completely wrong- An outright asshole is getting by on confidence alone. But a guy who is polite but disarmingly arrogant, condescending in subtle ways, is much more desirable than a confident nice guy.
> [...] disarmingly arrogant, condescending in subtle ways [...]
Nice guy equivalent: playful teasing and flirting. Someone eavesdropping might even take it out of context and interpret it as arrogant or condescending but it's just a little game -- not in some "pick up artist" sense; it's ideally very natural. Works for me.
While we can argue all day long about what makes for the most desirable man, I still contend that you can have more (desirable) women want you than you could possibly ever get around to and be a nice guy.
Sure, lots of men ('cause programmers are male, right?) get positive female attention by publicly insulting people who know less about programming and computers.