no teacher required to tell you if your prog is working. you get your reward from the computer: joy of creating something.
psychologically seen, to learn that what you are doing creates impact is the very basis of learning.
if you give your child Mastery, Autonomy and Purpose * some tools and an environment to start with * freedom to try and fail without waiting for a teacher to answer questions and * a good reason to learn, after a very short time you will see someone who does not need "extrinsic motivation" and explanations. be prepared for more questions than you can answer.
maybe, the garbage man will still be the garbage man in the end. but possibly see ways to improve his work or at least look forward to his side projects after work.
Probably I remember a kid from my primary school was obsessed with the garbage lorry he knew everything about how it works and now he is a bin man. He makes more than the national average salary finishes work at lunch time and has a state pension something we can only dream of.
Programming isn't the only good job, its easy to dedicated yourself to it and forget that.
I've seen people learn programming for the allure of money and job opportunities, but they just didn't enjoy the learning, debugging, engineering... And just end up quitting the endeavour due to frustration or boredom.
Basically, I wouldn't encourage someone to get into tech, unless they were interested... In the tech!