If you take up a hobby just to appear cool then there's every chance you won't stick with it very long.
I'm sure there are many people who have taken up certain hobbies just to impress people and then found them legitimately enjoyable and fulfilling and they would continue to do them even if they became the most uncool thing.
Also since nerds have a tendency to hyper-focus on things in depth they will likely bring their nerd skills to something non nerdy and outdo the non nerds at it.
This is nothing more than the propagation of an unidea that people tolerate because it doesn't make any value judgements about either gender, or something.
The next generation of nerds distanced themselves from this somewhat by wearing heavy metal T shirts, having long hair and tattoos.
This became uncool too, so now we have the "brogrammer" with designer polo shirts and dark glasses.
It's interesting because nerds are regarded as "uncool" but I find it is quite often they are culturally ahead of the curve.
Care to elaborate? You say it like it's obvious to everyone that being into those manuals is a heinous crime, or at least prima facie evidence of humongous douchebagdom in a person.
I'm not justifying the "brogrammer" nonsense, but just arguing that it's a field that does more closely represent all parts of demographics, shedding its traditional nerdly people-like-me basis.
The whole brogrammer meme reminds me a lot of DHH. Whenever you see him speak he is always dressed and groomed well and fashionably , likes to swear a lot and has a keen interest in fast cars.
It also reminds me of the sorts of people who are into PUA manuals.