I'm guessing that you did not read the rules clearly posted at the top of this forum, so don't be surprised if this gets moved to the proper one.
The scenario you posted is not uncommon, and you learned from it. So there is no need for hysteria.
I have had a lot of fun riding around town the past few months, but I am thinking about sticking more to dirt from now on and giving up the commuting. I am trying not to be a huge baby about it, I love riding but I really don't want to get killed by some stupid asshole, and there are plenty of them out there. I feel like it's just a matter of time.
Use the situational awareness you exhibited in the first part of your post and you'll be fine. I'm always wary of dumbasses rear ending me, and that is the hardest area to defend.