I've been fortunate to have two great direct managers at the prior companies I've worked at, and one common thread they have is they've both been developers. I think working in the field before you command people who do so helps build empathy and understanding of the problem at hand, as well as how it all ties into the bigger picture. I've heard in the military officers that served in the enlisted ranks before commis…
100% true. The difference is night and day.
Both with their own self confidence to lead a group of enlisted and specifically senior enlisted who in my unit, almost always would have had more front line combat experience than the officers, which meant knowing when to overrule and when to defer to their judgement.
And simply the day to day small and large decisions/choices both during training & deployment were always more informed when backed up with prior enlisted experience.