If it frustrates you so, why are you trying to do it that way?
It doesn’t matter what or how. You can’t learn anything without motivation.
If this method is not motivating for you, find one that is.
It seems to me that you are just trying to go this route because you somehow calculated that this is the best way.
Lesson in life: The best way is always the way most suitable to you. And in your case it is obviously not by reading.
I wanted to give a generalized answer first because it is the most important lesson in life you can ever learn: Learn how to learn.
For your specific task, programming generally is better-learned hands-on. In fact most things are.
And in your case, it’s obvious. Put the book down and start coding.
And this has been another "Lesson in Life, with L. Spiro"