Popularity depends on what you do better than the average guy and where you do it.
In America (where Hollywood and Sports are kings) if you play football better than 98% of your schoolmates you are likely to be popular. The same does not hold truth for a top programmer within is high school.
In some parts of your continent, yo could be the best soccer player in the neighborhood, it would not matter. The kid who gets the girl is the kid who scores As in school, although that kid is not much worried about girls.