I am curious how many people the author has taught mathematics to.
It doesn't seem a good idea to jump into writing a textbook teaching mathematics unless one has experience of teaching mathematics.
But the author makes the very point about early failures of programming, due to lack of experience, so perhaps he can supply information about what his pedagogical experience consists of.
Teaching other people is a craft, similar to programming or mathematics, with its own necessities.