I still find it amazing that people moan about the Recon (Sniper) class. I play a mix of Recon and Engineer, and there are a few observations I have:
1) As Recon, I'm often killed from assault or engineers running around the map to find 'snipers'. Strangely, those matches are often the ones we win more easily because they're not actually going for the objectives.
2) As Recon, most of my points come from spotting or Mortar strikes. This helps me not be found so much, and is what the class should be doing. It's also not all guns & glory. as often you're watching a point where there's no action.
3) As Engineer, I'm rarely sniped. Probably less-so than as Recon. However, I'm generally using the RPG against vehicles or the repair tool, so I'm likely crouched out of sight trying to sort something.
The only way you're going to be sniped. generally, is running across an open battlefield, or sitting in a window camping (or perhaps you're the unlucky soul who was piloting the Apache until they had a bullet through the head). If you actually play your class role rather than run and gun across the map, you're not that likely to die so quickly.
If you want to moan, try it on those people who don't know how to 'spot', ignore the UAV flying around that's tearing the place up (sniper rifle is great for that), don't drop health or ammo and basically are more interested in K/D ratios (which they blame on 'snipers') than actually completing the objective and helping the team.
Yes, I do shoot people at long range. When they're capturing a flag, when they're stalking one of my team and when they're stupidly standing in the open doing nothing. That's my job. Next time you realise you're being followed because an orange tag appears behind you, you've likely been saved by Recon.