I have spent all my time learning about syntax, variables, functions, loops, arrays and etc. I have also worked on several projects with the help from learning to code sites, and some I have also made on my own without any guidance. Lately, I came over the following quote which made me rethink the approach I have taken so far:
The biggest mistake I see new programmers make is focusing on learning syntax instead of learning how to solve problems. - V. Anton Spraul
It seems very important to learn problem solving before syntax. I had no idea. I wish somebody made me aware of this sooner. What are the advantages of learning to solve problems before learning a programming language for the first time? Is there any books out there which are good at teaching how to solve problems?