Apple - What are the most convenient keyboard/keyboard layout for programming?
Most people use QWERTY, just because it is the most popular, but if you’re learning a new layout anyway you might want to try Dvorak.
If you don’t want to learn another alphabetic layout, you can use a tool like Ukelele to make a better programming layout for the special characters while still keeping AZERTY for the rest of the keys.