Getting a parking ticket sucks. So don't park illegally. Getting a ticket for a busted taillight sucks. So don't drive with one. But as John Oliver pointed out on Last Week Tonight, and you probably already know: going through life and avoiding a ticket is almost impossible. The government knows this, and that's why their municipal violations ticketing scheme is a guaranteed moneymaker. And if you're poor it can quickly become a debt prison. Mwahahaha!
The lesson here: don't do anything wrong EVER! Or at least don't get caught.