The way I started is learning how to code for a project I want to do, so example is learning to game design with unity. But because i went straight to coding in that game engine, a lot of the fundamental was missing but it got me more experience in coding. So, when I took a Comp. sci. class it help understood stuff better which then help me learn more about the fundamentals of programming (because of that classes). And from there you keep doing projects to build your understanding