Programmers enjoy a rare market where employers compete for hiring a good dev, not the other way around. Unless lots o employers do things so unethical you can't stand working on them, you can just walk away from an unethical boss and spend time digging through numerous invitations from other companies.