I got my driving license about a year but as i don't have a car I only drive when visiting my folks, last time i drove my dad's car I remember stalling it in the middle of a street because suddenly out of nowhere someone (well in fact it was from the perpendicular right street) passed in yellow, well yellow is a way to say because I already had green light so he must had red light, the thing was that I reacted using my left foot to brake and stalled the car almost in the middle of the street, then I couldn't start it because I was too nervous and forgot that I had to rev it for 3 seconds over 3k rpm, well, when that happened to me I realized told my self to never try to pass a yellow light if I'm not already crossing the street.
Good that you didn't have to almost crap your pants to learn that lesson.