It's so easy, too. To be transgressive by attacking women within an environment where there aren't many powerful ones around. Why not racial humor? I'm sure there are many ways to brag about humiliating different racial groups.
I'm far from a prude, but there are women out there trying to make a living in this world. I don't think it's a lot to ask that people keep this kind of shit at home, even if they think it's funny.
That's just unbelievable.
The right for our "penis jokes" also entitles us to a moral responsibility: be "a bit" sure we can make these jokes to our audience (though I admit I don't check/care for people around whose ears have long reach, but this is another debate), which is why you ought to be a little self-conscious of what you are wearing.
On the other hand, this makes me cringe a bit... I bought this hoodie that says "Cool story bro" (obvious reference to the meme), what if I stumble upon persons who will understand this as me "perpetuating the testosterone bro-culture that is driving women away from tech"?
If we start drawing the line somewhere, how do we know someone else didn't draw it earlier or later to ours?
Sadly you can't even give feedback on what people did wrong because anything that you say can and sometimes will be held against you in a court of law.
I think, knowing what I know now, and feeling confident in who I am as a developer, I'd probably at least ask about it in the interview. I'd say "Why did you choose to wear that shirt today?" Serious question. I'd be interested. Maybe the answer is "Because I don't really want this job" and then it's clear. Maybe it's "Because I don't want to work at a place that gets offended easily" or maybe it's "Because I didn't have any other clean laundry." I cannot think of a valid reason to wear that shirt to an interview, but I'd at least be interested in his reasoning (though he's still not getting the job).
Warning: offensive, but to demonstrate a point...
I once interviewed a guy who decided to wear a t-shirt to the interview that read "Thousands of my potential children died on your daughter's face last night". There were no women there. I was not really even offended (toilet humor is really hard not to giggle at, if for no other reason than I'm still 15 in my head somewhere). I was, however, careful not to let on that I noticed it at all. On the way out, he asked for a tour (he thought he was getting the job). When another coworker commented on his shirt he said "Yeah, I got another one that says 'Swallow it or it goes in your eye'." It was a 5 person company at the time, and none of them were female. Still, he wasn't getting the job; anyone with that much disregard (dare I say arrogance) for other's feelings isn't getting the job.
It's not about having men or ladies or kids present; it's about having a mutual respect for others, and being conservative about what setting they think toilet humor (or any humor) is appropriate.