I always park on an end spot, either right next to a curb or at the end of a row where theres extra space on the other side.
If I park right next to the curb, I park like 2 inches or so away, so I'm really close.
If I park at the end of the row, I usually park right along the line.
either of these ways will let me open my door all the way without going over the line. This way I figure unless the other car is a complete moron, it's almost impossible to door ding me.