In addition to good lighting, you do need to ride defensively. If you are riding within a door width of parked cars, it's a matter of when, not if, you get doored. This is where you need to assert your right to be on the road and position yourself roughly where you'd be if you were driving a car. I know it's tempting to keep over the the side thinking it's safer, but it's not.