Which is the best study approach for practical programming?

Study Approach 1

<1> First I learn technology from books
I read explanations and code examples.
I copy and run code examples on IDE, sometimes I debug code and I take markdown notes.
I take markdown notes about what I learned.

<2> After the learning process I build a practical application by searching my notes and searching on google.If I learn new things in building this project I take notes and create connections with other notes.

Study Approach 2

<1> First I learn technology from books and technical documentation.
I read explanations and code examples
I write code and run code examples on IDE, sometimes I debug code.
I take markdown notes about what I learned.

<2> After the learning process I build a practical application by searching my notes and searching on google.
If I learn new things in building this project I take notes and associate with other notes.

Writing the same code is pointless to me because it is already built on the book there is no reason for typing the same code from the keyboard. My wpm(writing speed) is around 50 wpm Writing codes on the books slows me down. I can easily recall these codes while I building a practical application(Step 2) from my markdown notes because I create good hierarchy and create connections between ideas.

Which is the best approach?
My time is very limited to writing all code examples in the book. Is Study Approach 1 very bad practice for programming?

Hello, my-lord. It’s nice that people are questioning their learning strategies. I tried to learn programming in a different ways (I am still learning). Sometimes I spent time making notes, running code samples and all that jazz, but now I changed my strategy to just read things and apply them immediately. Note taking approach doesn’t work for me. Instead, what I do, I just read the book or documentation and then I work on my own little projects. I feel like the reason why I have not so much success in web development was for that note-taking, reading and less practice phase, so I changed my ways. Maybe it would help you? Instead of making notes, and doing all other jazz, just read and then work on a project? You can always find help on the internet if you get stuck. Hope it helps you somehow.