Sometimes I observe a driver talking on a phone or texting while next to me in the street, and since they're distracted I'm not sure they know I'm there. So sometimes I thump on the car with my fist, just to be sure.
Now, I know some people advocate treating bicyclists no differently than the operators of other vehicles...