It takes time to learn but the bulk of it is almost muscle-memory or automatic. It's simply a case of doing enough hours before it clicks really.
Never forget that any and all road use is a high risk activity. Your actions determine your own safety and that of others around you. Don't have lots of friends in the car. Don't use the radio and definitely do not ever mess with your phone whilst driving.
If it's dark, heavy traffic, mist, rain, cold or you are on unfamiliar roads, just slow down. Until you have considerable driving experience (i.e. years) I would avoid driving quickly on anything but proper A roads or dual carriageways as you just won't have an adequate grasp of braking performance and how the car behaves in turns when the tyres become really loaded up.
Maintain distance from other vehicles at all times.