A good step in addressing depression is to talk with a licensed clinical mental health professional. Clinical depression is not caused by vocational choice. It is a medical condition. Good luck.
No it was not caused by vocational choice but I believe it contributes in its perpetuation. Since you mentioned it I have done psychotherapy for 2,5 years and have been on antidepressants after two episodes in the past. My question is rather of philosophical nature..
That seems like a healthy perspective on the situation, then. My comment was based on the 'minimum viable advice'. I have no idea about the costs and qualifications required to become a ski instructor, your economic prospects as a programmer, your skill at skiing, and the workforce demands of the ski instructor industry. Those would all play into any logical analysis of the decision.