Why don't pilots learn to code then? They'd like, triple their salary and there would be only upside!
I disagree with the other pilot (but I'm only PPL) on his views about sleeping during boring stages of flight. Say for instance you've piloted badly into a CB, you suffer a freezing on your pitot static systems. The autopilot disengages.
If you were asleep, it might take a while for you to get your act together, co-ordinate to ascertain who has the flight controls and start CRM procedures.
If you were wide awake, thinking how to solve this tricksy problem, you might do a better job as your mind is already warmed up!