A programming license would be like a hammering license. Instead, make it so you need a license depending on what you want to hammer. So, y can hammer a nail into a plank of wood you own without a license, but if you try to hammer a brain tumour, you'll need to get a license. If you try to hammer a space rocket containing live humans, you'll need a license. If you try to do some high-frequency stock market hammering, you'll need a license. Et cetera.