I am in the process of teaching my kid (10) how to code, we tried all kinds of things, from programmable robots to scratch and nothing worked.
I dont think there is uniform process for every child.
In the end I just started spending 30 minutes every day with her and just coding, explaining and making small useful things.
here I am logging the process: