"You don't look like a programmer! When did you get into computers? That's kinda hot..."
I'd have no problem with that at all, especially I found the woman attractive. As others have said, just flipping the genders in scenarios like that doesn't often work.
And is that really an awful way for guys to hit on you? They're going to do that anyway, and at least this way they're expressing interest in your interests, rather than just staring at your chest.