What is a good way to learn basic coding
Oof, I sort of fell off for a bit. Been managing an Unreal project.
The best way to learn basic coding is to practice, but if you're like me a roadmap is useful.
Algorithms by Sedgewick (pdf is easy to fine) is an excellent material for learning basic concepts to intermediate algorithms. Generally it's a good idea to test what you're learning against vastly different programming languages.
Using low level languages like C for practice teaches you how to make your own utilities.
Languages like C++/Python help teach you how to solve problems quickly.
Functional languages like Scheme/Haskell forces you to think in entirely new ways, but that way of thinking is applicable in just about every programming languages.
If you do just one then you'll be at where I would expect basic coding skills to be, do all 3 and you'll be very well off.
After going through Sedgewick's you can use sites like Code Eval for new challenges to gain experience, then from there you could focus into specific subjects. Focus on one subject at a time, look for pdf where possible, many colleges will have their syllabus posted online so you can use that to find out what materials to use. That said, don't rely on course work. It's very hit and miss from different schools, textbooks are amazing material but in my opinion they should be explore in their entirety. Distilling them down definitely devalues them.
Eventually you'll reach a point where programming feels like a very natural action. That said don't be too prideful to look at documentation. We all do it.
But when it comes down to it you gain the most out of practice, practice, practice. If you want subjects that are more general purpose and less niche I would recommend Data Structures, Algorithms, Foundations of Programming Languages, and String Parsing / Finite Automata.