Being mindful of your surroundings when you whip out the smartphone is the top way to avoid such problems. I'd also never use a laptop on Muni.
My own pro-tip (as a four-year resident) is learning to ride a bike in the city is an outstanding way to improve your accessibility while avoiding the Muni/parking headache. It's much easier in some neighborhoods than others, but in general, almost any part of the city has routes that avoid hills and high-traffic streets, and you may be shocked at how easily you can get to places that used to seem like a major hassle. Personally, it's made SF an easy and enjoyable place to get around, instead of a constant pain.
For anyone considering it, just do it, but follow a few key tips: avoid riding too close to parked cars (dooring risk); wear a helmet always and use lights at night; consult Google Maps bike directions or the official SF Bike map for ideal routes; ride conscientiously and follow the rules of the road, even if you see others breaking them (e.g. stop at lights/stop signs and yield to pedestrians); don't ride too fast, especially through intersections, since being able to stop quickly can save you from almost any collision; do your first ride sometime when there's very little traffic, like early on a weekend morning; get a practical city bike, not a speed-demon road racer. Cycling with a friend who knows what they're doing is also extremely helpful.
Some people have a bias against cyclists because there are plenty of inconsiderate riders, but that shouldn't prevent you from taking advantage of this super useful and generally safe mode (if you ride safely). If you do take it up, please add to the ranks of considerate riders, and enjoy cutting that multiple-transfer-bus-ride or multiple-parking-ticket car commute out of your daily schedule.
My own pro-tip (as a four-year resident) is learning to ride a bike in the city is an outstanding way to improve your accessibility while avoiding the Muni/parking headache. It's much easier in some neighborhoods than others, but in general, almost any part of the city has routes that avoid hills and high-traffic streets, and you may be shocked at how easily you can get to places that used to seem like a major hassle. Personally, it's made SF an easy and enjoyable place to get around, instead of a constant pain.
For anyone considering it, just do it, but follow a few key tips: avoid riding too close to parked cars (dooring risk); wear a helmet always and use lights at night; consult Google Maps bike directions or the official SF Bike map for ideal routes; ride conscientiously and follow the rules of the road, even if you see others breaking them (e.g. stop at lights/stop signs and yield to pedestrians); don't ride too fast, especially through intersections, since being able to stop quickly can save you from almost any collision; do your first ride sometime when there's very little traffic, like early on a weekend morning; get a practical city bike, not a speed-demon road racer. Cycling with a friend who knows what they're doing is also extremely helpful.
Some people have a bias against cyclists because there are plenty of inconsiderate riders, but that shouldn't prevent you from taking advantage of this super useful and generally safe mode (if you ride safely). If you do take it up, please add to the ranks of considerate riders, and enjoy cutting that multiple-transfer-bus-ride or multiple-parking-ticket car commute out of your daily schedule.