Seriously.
Check out some simler frameworks that are geared more strongly towards game development. Even as an experienced programmer, I still gravitate towards the Love2D framework for getting an idea on screen quickly, (for 2D stuff anyway) because it handily masks away all of the libraries and support hardware. So long as I can navigate the Lua programming language, I can have moving characters onscreen responding to keyboard input in about an hour.
Point being here, don't underestimate the value of instant gratification. As much as that sounds like what you're trying to avoid, since that's exactly what YouTube and social media feel like to an outside observer, that instant gratification loop of "change code, run game, see results" is crucial for the early developmental stages. Let your kid learn through experience how fun it can be to program the basics, and then stumble on something more complex that he wants to do organically, or bump into a limit of the framework, and at that point he'll know enough about the tools to be nudged towards tackling the harder stuff.