Here's a little tip thats so simple to do and works a treat! To avoid painting over light switches, or if you're painting a different colour on the walls than the ceiling, use masking tape to cover anything that you don't want painted.
Spending 10 or 15 minutes putting strips of masking tape around doors and light switches, can save hours trying to fix mistakes and allows you to get the job looking great and done in no time.