How to get along with Traffic.

First advice: obey all traffic laws, of course because it's the law, but it also keeps you more out of the path of cars.

The second is to not assume other drivers see you. Drivers have large blind spots that can easily hide cyclists, and you can get into places another car couldn't so a driver may not be looking there, which segues into the third point.

The third is to ride were you will be visible, that is, where drivers would be looking. Do not ride all the way to the right of the road with the broken pavement and glass (or opening car doors). Not only are you risking flats and crashes, drivers go by as though their mirror had a tremendous attraction to your elbow. Moving in to the left a little bit gives you a better chance that drivers will give you proper space. You have a legal right to the road as well that they do.