You try to build somethign complex, encounter a concept you don't understand fully, go to the literature and learn it because you need to know it, it unlocks the next step of building. Obviously you need to start the very basics with Hello World - i.e. if you've never coded before, you should grasp the very basics of how code works and how languages work. However after that, there's no need to spend hundreds of hours doing tutorials. Building a thing is always better because the problems you encounter are real.