This is an intractable problem with normal sidewalk/streets. Bikes don't belong on the road with cars and they dont belong on sidewalks with pedestrians and they don't belong in between. This is why both drivers and pedestrians hate bikers.
Ideally we have entirely separate paths for bikes. Of course this is infeasible for most established cities. Doesn't mean they are't inherently a problem in these cases though.
Ideally we have entirely separate paths for bikes. Of course this is infeasible for most established cities. Doesn't mean they are't inherently a problem in these cases though.