If you're getting teased for being smart, you're doing something wrong. I'm probably the biggest nerd/geek in the school. I spend my free time programming, yet I never get teased (except for friends, because we do it friendly, them teasing me about programming, me teasing them about sports). What a lot of people don't realize is just being smart doesn't get you teased. Sure, smart people often get teased, but that's because they're also bad socially. If you aren't a complete douche, people leave you alone.