Hi, i just had my first near miss no more then an hour ago. Im a learner and was on my way home. I was travelling in a straight line around 90kmh (i realise i was 10kmh over my L's speed limit and should have been under). A car pulled out from a service station in front of me and i could see it unfolding about 50-60m away id say. I obviously had to brake quickly and did. I braked more with the front brake then the rear however the wheel locked up but not fully (sort of on, off, on off locking up) and the rear started to step out. I cant be 100% certain as it happened so quickly, im pretty sure i took my foot off the rear brake and braked firmer with the front brake. This seemed to work as the rear wheel came back in line. The accident was avoided and in the heat of the moment i exchanged a few words with the other car when we came to lights (i know its not the right thing to do) From an accident avoidance point of view, i was buffering and in the right side of my lane and i do admit i was 10kmh over the L speed limit and was in the wrong in that perspective. My question being. In that situation, if the rear wheel locks up and/or starts to get away from you, is it best to release the rear brake and put more on the front? Also should i have braked in a different way.