Dandelions love direct sunlight, so mowing your grass at the tallest height option on your mower will shade your soil and keep the weeds from getting as many nutrients.
Spraying a pre-emergent herbicide on the grass near the end of winter will also stop dandelions from sprouting, although it can be harmful to good insects.