Remember that the rules about keeping your hands in the home position are for typing long stretches of normal text, i.e., prose. When I’m programming my hands always move up and to the sides as needed, and for most of the keys from 7 to backspace I use the first three fingers (and the left hand for shift, not the left pinky). The pinky goes to those keys only if they come up in prose by accident.
Remember that the rules about keeping your hands in the home position are for typing long stretches of normal text, i.e., prose. When I’m programming my hands always move up and to the sides as needed, and for most of the keys from 7 to backspace I use the first three fingers (and the left hand for shift, not the left pinky). The pinky goes to those keys only if they come up in prose by accident.