

If coding is the means to an end they want, they will learn it.
I started learning how to program because I wanted to mod Halo 20y ago. Gaming is often a motivator. I had a co-worker who started in the 80s, whose only option to play games on his C64 was to type up a bunch of BASIC from a magazine. He had to take care not to make any typos, then play the game, and then didn’t have any persistent tape to save it to, so he just lost it all on a reboot. Turns out, if you’re “forced” to type code in all the time, you start to figure out which bits do what, and you start changing it to behave how you want.
“Hacking” could probably work as a motivator, though with great power comes great responsibility.
But yeah, a kid won’t be interested in programming unless they see it as their only option to do what they want to do. PICO8 might be a good entry. Or something like Minecraft modding.
But on closed source drivers, right?