An interesting article from LinkedIn on the skills of coding.
Learning to Code Yields Diminishing Returns
The premise of the article tackles a number of diverse subjects that are outside the scope of whether learning to code is good advice or not.
Fundamentally learning to code is a good skill to have. It is a skill that if you want to have a coding career must be developed and cultivated.
The mistake is to think that simply having a skill makes you indispensable and guaranteed of gainful employment. Employment is much more complicated than just simply having the correct skills for the position. Relationships, personality, personal drive, politics, geography, and no small amount of luck are all factors that contribute to your employment status.
Whether you utilize the skills in your daily tasks or not the understanding of logical processing is applicable to every aspect of life if you are so inclined.